-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support old models(birefnet code from hash 2b47f82c1100b7daebd5ab24a7…
…904a5052576dfe), weight model
- Loading branch information
刘雪峰
committed
Sep 13, 2024
1 parent
8ba3553
commit 28e3ce7
Showing
32 changed files
with
2,924 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
[English](README.md) | ||
## 预览 | ||
 | ||
 | ||
|
||
## 安装 | ||
|
||
- 手动安装 | ||
```shell | ||
cd custom_nodes | ||
git clone https://github.com/lldacing/ComfyUI_BiRefNet_ll.git | ||
cd ComfyUI_BiRefNet_ll | ||
pip install -r requirements.txt | ||
# restart ComfyUI | ||
``` | ||
- ComfyUI管理器搜索安装 | ||
|
||
|
||
## 模型 | ||
|
||
### 最新的模型: | ||
|
||
- General: 用于一般用例的预训练模型。 | ||
- General-Lite: 用于一般用例的轻量级预训练模型。 | ||
- Portrait: 人物肖像预训练模型。 | ||
- DIS: 一种用于二分图像分割(DIS)的预训练模型。 | ||
- HRSOD: 一种用于高分辨率显著目标检测(HRSOD)的预训练模型。 | ||
- COD: 一种用于隐蔽目标检测(COD)的预训练模型。 | ||
- DIS-TR_TEs: 具有大量数据集的预训练模型。 | ||
|
||
模型文件放在`models/BiRefNet`(当使用AutoDownloadBiRefNetModel时,如果第一次运行时文件夹不存在,则会自动下载. | ||
|
||
也可以手动下载模型: | ||
- [General](https://huggingface.co/ZhengPeng7/BiRefNet/resolve/main/model.safetensors) ➔ `model.safetensors` 重命名为 `General.safetensors` | ||
- [General-Lite](https://huggingface.co/ZhengPeng7/BiRefNet_T/resolve/main/model.safetensors) ➔ `model.safetensors` 重命名为 `General-Lite.safetensors` | ||
- [Portrait](https://huggingface.co/ZhengPeng7/BiRefNet-portrait/resolve/main/model.safetensors) ➔ `model.safetensors` 重命名为 `Portrait.safetensors` | ||
- [DIS](https://huggingface.co/ZhengPeng7/BiRefNet-DIS5K/resolve/main/model.safetensors) ➔ `model.safetensors` 重命名为 `DIS.safetensors` | ||
- [HRSOD](https://huggingface.co/ZhengPeng7/BiRefNet-HRSOD/resolve/main/model.safetensors) ➔ `model.safetensors` 重命名为 `HRSOD.safetensors` | ||
- [COD](https://huggingface.co/ZhengPeng7/BiRefNet-COD/resolve/main/model.safetensors) ➔ `model.safetensors` 重命名为 `COD.safetensors` | ||
- [DIS-TR_TEs](https://huggingface.co/ZhengPeng7/BiRefNet-DIS5K-TR_TEs/resolve/main/model.safetensors) ➔ `model.safetensors` 重命名为 `DIS-TR_TEs.safetensors` | ||
|
||
|
||
GitHub上的模型: | ||
[BiRefNet Releases](https://github.com/ZhengPeng7/BiRefNet/releases) | ||
|
||
### 旧模型: | ||
- [BiRefNet-DIS_ep580.pth](https://huggingface.co/ViperYX/BiRefNet/resolve/main/BiRefNet-DIS_ep580.pth) | ||
- [BiRefNet-ep480.pth](https://huggingface.co/ViperYX/BiRefNet/resolve/main/BiRefNet-ep480.pth) | ||
|
||
## 权重模型(非必须) | ||
下载放在`models/BiRefNet` | ||
- [swin_large_patch4_window12_384_22kto1k.pth](https://huggingface.co/ViperYX/BiRefNet/resolve/main/swin_large_patch4_window12_384_22kto1k.pth) | ||
- [swin_tiny_patch4_window7_224_22kto1k_finetune.pth](https://drive.google.com/drive/folders/1cmce_emsS8A5ha5XT2c_CZiJzlLM81ms), just General-Lite model | ||
|
||
|
||
## 节点 | ||
- AutoDownloadBiRefNetModel | ||
- 自动下载模型到 `models/BiRefNet`,不支持权重 | ||
- LoadRembgByBiRefNetModel | ||
- 从 `models/BiRefNet` 和 在extra YAML 文件中通过`birefnet`配置的路径中选择模型 | ||
- 支持 [BiRefNet Releases](https://github.com/ZhengPeng7/BiRefNet/releases) 中的新模型 和 老的模型[BiRefNet-DIS_ep580.pth](https://huggingface.co/ViperYX/BiRefNet/resolve/main/BiRefNet-DIS_ep580.pth) 与 [BiRefNet-ep480.pth](https://huggingface.co/ViperYX/BiRefNet/resolve/main/BiRefNet-ep480.pth) | ||
- 参数use_weight设为True时, 需要下载权重模型,General-Lite模型使用[swin_tiny_patch4_window7_224_22kto1k_finetune.pth](https://drive.google.com/drive/folders/1cmce_emsS8A5ha5XT2c_CZiJzlLM81ms),其它模型使用 [swin_large_patch4_window12_384_22kto1k.pth](https://huggingface.co/ViperYX/BiRefNet/resolve/main/swin_large_patch4_window12_384_22kto1k.pth) | ||
- RembgByBiRefNet | ||
|
||
## 感谢 | ||
|
||
[BiRefNet](https://github.com/zhengpeng7/birefnet) | ||
|
||
[dimitribarbot/sd-webui-birefnet](https://github.com/dimitribarbot/sd-webui-birefnet) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.