{"id":26328099,"url":"https://github.com/KytraScript/ComfyUI_MatAnyone_Kytra","last_synced_at":"2025-03-15T21:01:45.772Z","repository":{"id":281559086,"uuid":"945639139","full_name":"KytraScript/ComfyUI_MatAnyone_Kytra","owner":"KytraScript","description":"Kytra's MatAnyone implementation for use in ComfyUI","archived":false,"fork":false,"pushed_at":"2025-03-09T23:11:43.000Z","size":52,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T23:18:06.751Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KytraScript.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-03-09T21:50:20.000Z","updated_at":"2025-03-09T23:11:47.000Z","dependencies_parsed_at":"2025-03-09T23:18:08.895Z","dependency_job_id":"ddf2a3a2-94d5-442b-84ef-7065495b5e50","html_url":"https://github.com/KytraScript/ComfyUI_MatAnyone_Kytra","commit_stats":null,"previous_names":["kytrascript/comfyui_matanyone_kytra"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KytraScript%2FComfyUI_MatAnyone_Kytra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KytraScript%2FComfyUI_MatAnyone_Kytra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KytraScript%2FComfyUI_MatAnyone_Kytra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KytraScript%2FComfyUI_MatAnyone_Kytra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KytraScript","download_url":"https://codeload.github.com/KytraScript/ComfyUI_MatAnyone_Kytra/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243790982,"owners_count":20348379,"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","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":[],"created_at":"2025-03-15T21:01:19.189Z","updated_at":"2025-03-15T21:01:45.767Z","avatar_url":"https://github.com/KytraScript.png","language":"Python","readme":"# Kytra's MatAnyone implementation for ComfyUI\n\nThis is a ComfyUI node for [MatAnyone](https://github.com/pq-yang/MatAnyone), a state-of-the-art video matting model that can remove backgrounds from videos using just a single mask for the first frame for enhanced/guided video matting. \n\n## How To Use:\n\nMatAnyone only requires that you provide the first single frame alpha mask (solid white for the subject against a solid black background for the stuff you don't want in the final output).\nMy example workflow uses the Rembg+ Session nodes from Comfy Essentials to automatically create the first frame alpha mask for you. The dance video example and the anime example videos below both used that method. Alternatively, you can provide the first frame alpha mask yourself and bypass those nodes. It's really that simple. Check the workflow directory in this repo for the example workflow.\n\n## Installation\n\n1. Clone this repository into your ComfyUI custom_nodes folder:\n```bash\ncd ComfyUI/custom_nodes\ngit clone https://github.com/KytraScript/ComfyUI_MatAnyone_Kytra.git\n```\n\n2. Install pip requirements\n```bash\ncd ComfyUI/custom_nodes/ComfyUI_MatAnyone_Kytra\npip install -r requirements.txt\n```\n\n\n3. The model weights are automatically downloaded during your first run from:\nhttps://huggingface.co/Mothersuperior/ComfyUI_MatAnyone_Kytra and they will \nbe placed in the ComfyUI_MatAnyone_Kytra/model folder\n\nOutdoor Lighting dance example:\n\nhttps://github.com/user-attachments/assets/bb6daad3-dccc-4201-8334-ccb2e520eb2e\n\nRealism with low light:\n\nhttps://github.com/user-attachments/assets/2ca7dcb9-d1be-4c15-82ca-d337d719f479\n\nAnime using an AI created animation:\n\nhttps://github.com/user-attachments/assets/dddde8ec-4312-43a8-9b0f-77ef00c16100\n\nBlue car against a blue sky:\n\nhttps://github.com/user-attachments/assets/8ac00e53-8ff2-496c-8119-4d10f51292aa\n\n\n### Parameters\n\n- **video_frames**: Video image batch (example workflow uses VHS Video Loader)\n- **mask**: First frame mask (subject rgb(255,255,255))\n- **warmup_frames**: Number of warmup iterations (default: 10)\n- **erode_kernel**: Erosion kernel size (default: 10)\n- **dilate_kernel**: Dilation kernel size (default: 10)\n- **bg_red** \u0026 **bg_green** \u0026 **bg_blue**: Set values for background color for composite video output\n\n## Example Workflow\n\n- Provided in the repository 'workflow' directory\n\n## Credits\n\n- Original MatAnyone implementation: [https://github.com/pq-yang/MatAnyone](https://github.com/pq-yang/MatAnyone)\n- Paper: [MatAnyone: Prompting Any Object for Open-world Matting](https://arxiv.org/abs/2401.05228)\n\n## License\n\nThis project is licensed under the same license as the original MatAnyone project. \n","funding_links":[],"categories":["All Workflows Sorted by GitHub Stars","Workflows (3395) sorted by GitHub Stars"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKytraScript%2FComfyUI_MatAnyone_Kytra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKytraScript%2FComfyUI_MatAnyone_Kytra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKytraScript%2FComfyUI_MatAnyone_Kytra/lists"}