├── .github └── workflows │ └── publish.yml ├── .gitignore ├── LICENSE ├── README.md ├── README_CN.md ├── __init__.py ├── birefnet ├── __init__.py ├── config.py ├── dataset.py ├── image_proc.py ├── models │ ├── __init__.py │ ├── backbones │ │ ├── __init__.py │ │ ├── build_backbone.py │ │ ├── pvt_v2.py │ │ └── swin_v1.py │ ├── birefnet.py │ ├── modules │ │ ├── __init__.py │ │ ├── aspp.py │ │ ├── decoder_blocks.py │ │ ├── deform_conv.py │ │ ├── lateral_blocks.py │ │ ├── prompt_encoder.py │ │ └── utils.py │ └── refinement │ │ ├── __init__.py │ │ ├── refiner.py │ │ └── stem_layer.py └── utils.py ├── birefnetNode.py ├── birefnet_old ├── __init__.py ├── config.py ├── dataset.py ├── models │ ├── backbones │ │ ├── __init__.py │ │ ├── build_backbone.py │ │ ├── pvt_v2.py │ │ └── swin_v1.py │ ├── birefnet.py │ ├── modules │ │ ├── __init__.py │ │ ├── aspp.py │ │ ├── attentions.py │ │ ├── decoder_blocks.py │ │ ├── deform_conv.py │ │ ├── ing.py │ │ ├── lateral_blocks.py │ │ ├── mlp.py │ │ └── utils.py │ └── refinement │ │ ├── __init__.py │ │ ├── refiner.py │ │ └── stem_layer.py ├── preproc.py └── utils.py ├── doc ├── base.png └── video.gif ├── example └── workflow_base.png ├── pyproject.toml ├── requirements.txt └── util.py /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/README.md -------------------------------------------------------------------------------- /README_CN.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/README_CN.md -------------------------------------------------------------------------------- /__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/__init__.py -------------------------------------------------------------------------------- /birefnet/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /birefnet/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet/config.py -------------------------------------------------------------------------------- /birefnet/dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet/dataset.py -------------------------------------------------------------------------------- /birefnet/image_proc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet/image_proc.py -------------------------------------------------------------------------------- /birefnet/models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /birefnet/models/backbones/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /birefnet/models/backbones/build_backbone.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet/models/backbones/build_backbone.py -------------------------------------------------------------------------------- /birefnet/models/backbones/pvt_v2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet/models/backbones/pvt_v2.py -------------------------------------------------------------------------------- /birefnet/models/backbones/swin_v1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet/models/backbones/swin_v1.py -------------------------------------------------------------------------------- /birefnet/models/birefnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet/models/birefnet.py -------------------------------------------------------------------------------- /birefnet/models/modules/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /birefnet/models/modules/aspp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet/models/modules/aspp.py -------------------------------------------------------------------------------- /birefnet/models/modules/decoder_blocks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet/models/modules/decoder_blocks.py -------------------------------------------------------------------------------- /birefnet/models/modules/deform_conv.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet/models/modules/deform_conv.py -------------------------------------------------------------------------------- /birefnet/models/modules/lateral_blocks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet/models/modules/lateral_blocks.py -------------------------------------------------------------------------------- /birefnet/models/modules/prompt_encoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet/models/modules/prompt_encoder.py -------------------------------------------------------------------------------- /birefnet/models/modules/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet/models/modules/utils.py -------------------------------------------------------------------------------- /birefnet/models/refinement/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /birefnet/models/refinement/refiner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet/models/refinement/refiner.py -------------------------------------------------------------------------------- /birefnet/models/refinement/stem_layer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet/models/refinement/stem_layer.py -------------------------------------------------------------------------------- /birefnet/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet/utils.py -------------------------------------------------------------------------------- /birefnetNode.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnetNode.py -------------------------------------------------------------------------------- /birefnet_old/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /birefnet_old/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet_old/config.py -------------------------------------------------------------------------------- /birefnet_old/dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet_old/dataset.py -------------------------------------------------------------------------------- /birefnet_old/models/backbones/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /birefnet_old/models/backbones/build_backbone.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet_old/models/backbones/build_backbone.py -------------------------------------------------------------------------------- /birefnet_old/models/backbones/pvt_v2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet_old/models/backbones/pvt_v2.py -------------------------------------------------------------------------------- /birefnet_old/models/backbones/swin_v1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet_old/models/backbones/swin_v1.py -------------------------------------------------------------------------------- /birefnet_old/models/birefnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet_old/models/birefnet.py -------------------------------------------------------------------------------- /birefnet_old/models/modules/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /birefnet_old/models/modules/aspp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet_old/models/modules/aspp.py -------------------------------------------------------------------------------- /birefnet_old/models/modules/attentions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet_old/models/modules/attentions.py -------------------------------------------------------------------------------- /birefnet_old/models/modules/decoder_blocks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet_old/models/modules/decoder_blocks.py -------------------------------------------------------------------------------- /birefnet_old/models/modules/deform_conv.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet_old/models/modules/deform_conv.py -------------------------------------------------------------------------------- /birefnet_old/models/modules/ing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet_old/models/modules/ing.py -------------------------------------------------------------------------------- /birefnet_old/models/modules/lateral_blocks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet_old/models/modules/lateral_blocks.py -------------------------------------------------------------------------------- /birefnet_old/models/modules/mlp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet_old/models/modules/mlp.py -------------------------------------------------------------------------------- /birefnet_old/models/modules/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet_old/models/modules/utils.py -------------------------------------------------------------------------------- /birefnet_old/models/refinement/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /birefnet_old/models/refinement/refiner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet_old/models/refinement/refiner.py -------------------------------------------------------------------------------- /birefnet_old/models/refinement/stem_layer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet_old/models/refinement/stem_layer.py -------------------------------------------------------------------------------- /birefnet_old/preproc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet_old/preproc.py -------------------------------------------------------------------------------- /birefnet_old/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/birefnet_old/utils.py -------------------------------------------------------------------------------- /doc/base.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/doc/base.png -------------------------------------------------------------------------------- /doc/video.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/doc/video.gif -------------------------------------------------------------------------------- /example/workflow_base.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/example/workflow_base.png -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | numpy 2 | opencv-python 3 | timm -------------------------------------------------------------------------------- /util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lldacing/ComfyUI_BiRefNet_ll/HEAD/util.py --------------------------------------------------------------------------------