feat: initial project setup

This commit is contained in:
2026-10-08 09:46:47 +08:00
commit 5833a303bc
65 changed files with 11628 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
"""BiRefNet WebUI —— 基于 ComfyUI 节点 comfyui_birefnet_ll 的网页版抠图工具。
模块划分:
compat.py 定位 ComfyUI 节点目录、注入 folder_paths 垫片、导入模型类
fsutil.py 与推理无关的小工具(图片后缀、文件名清洗、最终尺寸换算)
imageops.py 图像预处理与后处理(纯 numpy / PIL / torch)
batch.py 目录批量抠图:路径校验、目录扫描、输出命名
engine.py 模型扫描、加载缓存与推理
server.py HTTP 服务、REST API、任务队列
"""
__version__ = "1.0.0"
APP_NAME = "BiRefNet WebUI"