{"id":23234337,"url":"https://github.com/rubi-du/ComfyUI-BiRefNet-Super","last_synced_at":"2025-08-19T20:30:55.383Z","repository":{"id":263396656,"uuid":"890159023","full_name":"rubi-du/ComfyUI-BiRefNet-Super","owner":"rubi-du","description":"This repository packages the latest BiRefNet model as a ComfyUI node for use, supporting chunked loading on both CPU and GPU, as well as model caching features.","archived":false,"fork":false,"pushed_at":"2025-05-21T02:21:09.000Z","size":8176,"stargazers_count":9,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-21T03:29:08.041Z","etag":null,"topics":["birefnet","comfyui","onnx","remove-background","removebg","rmbg","segment","segmentation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rubi-du.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-18T04:57:50.000Z","updated_at":"2025-05-21T02:21:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"698e7097-73ab-4725-b10e-fbe9f14e7921","html_url":"https://github.com/rubi-du/ComfyUI-BiRefNet-Super","commit_stats":null,"previous_names":["rubi-du/comfyui-birefnet-lite","rubi-du/comfyui-birefnet-super"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rubi-du/ComfyUI-BiRefNet-Super","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubi-du%2FComfyUI-BiRefNet-Super","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubi-du%2FComfyUI-BiRefNet-Super/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubi-du%2FComfyUI-BiRefNet-Super/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubi-du%2FComfyUI-BiRefNet-Super/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubi-du","download_url":"https://codeload.github.com/rubi-du/ComfyUI-BiRefNet-Super/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubi-du%2FComfyUI-BiRefNet-Super/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271216502,"owners_count":24720483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["birefnet","comfyui","onnx","remove-background","removebg","rmbg","segment","segmentation"],"created_at":"2024-12-19T03:02:20.332Z","updated_at":"2025-08-19T20:30:55.372Z","avatar_url":"https://github.com/rubi-du.png","language":"Python","funding_links":[],"categories":["All Workflows Sorted by GitHub Stars","Workflows (3395) sorted by GitHub Stars"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eComfyUI-BiRefNet-Super\u003c/h1\u003e  \n  \n\u003cp align=\"center\"\u003e  \n    \u003cbr\u003e\u003cfont size=5\u003eEnglish\u003c/font\u003e  | \u003ca href=\"README_CN.md\"\u003e中文\u003c/a\u003e\n\u003c/p\u003e  \n  \n## Introduction  \n  \nThis repository packages the latest BiRefNet model as a ComfyUI node for use, supporting chunked loading on both CPU and GPU, as well as model caching features.\u003cbr\u003e  \n  \n## Features  \nFeature 1: Supports chunked loading on CPU and GPU\u003cbr\u003e  \nWhen CUDA is enabled, specify the `cpu_size` to load part of the model onto the CPU.  \n![slot](./assets/feature1.png)\u003cbr\u003e  \nFeature 2: Model Caching\u003cbr\u003e  \nFeature 3: Multiple Cropping Methods\u003cbr\u003e  \nSupports putalpha, naive, and alpha_matting cropping methods.  \n![slot](./assets/feature2.png)\u003cbr\u003e  \n  \n## News\n- Nov 19, 2024: Add `mask_precision_threshold` parameter to control the accuracy threshold of the mask, default to 0.1\u003cbr\u003e\n- Dec 10, 2024: \n    - Add `BiRefNet_onnx` node to Support `onnx` model \u003cbr\u003e\n    - Modify the name of repository from `ComfyUI-BiRefNet-lite` to `ComfyUI-BiRefNet-Super`\u003cbr\u003e\n## Installation   \n  \n#### Method 1:  \n  \n1. Navigate to the node directory, `ComfyUI/custom_nodes/`  \n2. `git clone https://github.com/rubi-du/ComfyUI-BiRefNet-Super.git`  \n3. `cd ComfyUI-BiRefNet-Super`  \n4. `pip install -r requirements.txt`  \n5. Restart ComfyUI  \n  \n#### Method 2:  \nDirectly download the node source code package, unzip it into the `custom_nodes` directory, and then restart ComfyUI.  \n  \n#### Method 3:  \nInstall via ComfyUI-Manager by searching for \"ComfyUI-BiRefNet-Super\".  \n  \n## Usage  \n\n### BiRefNet_Super | BiRefNet_Lite\n  \nExample workflows are placed in `ComfyUI-BiRefNet-Super/workflow`.\u003cbr/\u003e  \n  \nThere are two options for loading models: one is to automatically download and load a remote model, and the other is to load a local model (in which case you need to set `load_local_model` to true and set `local_model_path` to the local model path under the models/birefnet directory, for example, the BiRefNet folder).\u003cbr/\u003e  \n  \n![](./assets/9e6bf0f9-67a7-41ea-bc4b-d8352e4fac4a.png)  \n___  \n  \n![](./assets/model_path.png)  \n  \n#### Model download links:\u003cbr/\u003e  \nBiRefNet: https://huggingface.co/ZhengPeng7/BiRefNet/tree/main\u003cbr/\u003e  \nBiRefNet_lite-2K: https://huggingface.co/ZhengPeng7/BiRefNet_lite-2K/tree/main\u003cbr/\u003e  \nBiRefNet-portrait: https://huggingface.co/ZhengPeng7/BiRefNet-portrait/tree/main\u003cbr/\u003e  \nBiRefNet-matting: https://huggingface.co/ZhengPeng7/BiRefNet-matting/tree/main\u003cbr/\u003e  \nRMBG-2.0: https://huggingface.co/briaai/RMBG-2.0/tree/main\u003cbr/\u003e  \n  \n___  \nUsage of workflow.json\u003cbr/\u003e  \n  \n![plot](./assets/demo1.png)  \n  \n___  \nUsage of video_workflow.json\u003cbr/\u003e  \n[Workflow Address](./workflow/video_workflow.json) \n\n### BiRefNet_onnx\nExample workflows are placed in [workflow](./workflow/workflow-onnx.json).\u003cbr/\u003e\n\nPlace the model file in `ComfyUI/models/birefnet`.\u003cbr/\u003e\n\nModel file name should be one of the following:\n- birefnet-general.onnx\n- birefnet-general-lite.onnx\n- birefnet-portrait.onnx\n- birefnet_massive.onnx\n- birefnet-hrsod.onnx\n- birefnet-dis.onnx\n- birefnet-cod.onnx\n\n\n![plot](./assets/demo2.png)  \n\n#### Model download links:\u003cbr/\u003e  \nbirefnet-genernal: https://github.com/danielgatis/rembg/releases/download/v0.0.0/BiRefNet-general-epoch_244.onnx\u003cbr/\u003e\nbirefnet-genernal-lite: https://github.com/danielgatis/rembg/releases/download/v0.0.0/BiRefNet-general-bb_swin_v1_tiny-epoch_232.onnx\u003cbr/\u003e \nbirefnet-portrait: https://github.com/danielgatis/rembg/releases/download/v0.0.0/BiRefNet-portrait-epoch_150.onnx \u003cbr/\u003e \nbirefnet_massive: https://github.com/danielgatis/rembg/releases/download/v0.0.0/BiRefNet-massive-TR_DIS5K_TR_TEs-epoch_420.onnx\u003cbr/\u003e \nbirefnet-hrsod: https://github.com/danielgatis/rembg/releases/download/v0.0.0/BiRefNet-HRSOD_DHU-epoch_115.onnx \u003cbr/\u003e \nbirefnet-dis: https://github.com/danielgatis/rembg/releases/download/v0.0.0/BiRefNet-DIS-epoch_590.onnx \u003cbr/\u003e \nbirefnet-cod: https://github.com/danielgatis/rembg/releases/download/v0.0.0/BiRefNet-COD-epoch_125.onnx \u003cbr/\u003e \n\n  \n## Acknowledgments  \n  \nThanks to all the authors of the BiRefNet repository [ZhengPeng7/BiRefNet](https://github.com/zhengpeng7/birefnet).  \n  \nSome code was referenced from [MoonHugo/ComfyUI-BiRefNet-Hugo](https://github.com/MoonHugo/ComfyUI-BiRefNet-Hugo). Thanks!\n\nSome code was referenced from [danielgatis/rembg](https://github.com/danielgatis/rembg). Thanks!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubi-du%2FComfyUI-BiRefNet-Super","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubi-du%2FComfyUI-BiRefNet-Super","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubi-du%2FComfyUI-BiRefNet-Super/lists"}