Extension for generating person masks in image editing workflows
Top 78.4% on sourcepulse
This project provides extensions for Automatic1111 and ComfyUI to automatically generate segmentation masks for various human body parts (background, hair, body, face, clothes) within an image-to-image workflow. It leverages Google's Multi-class selfie segmentation model, offering a streamlined way to isolate and manipulate specific elements of a person in generated images.
How It Works
The extension utilizes Google's Multi-class selfie segmentation model to perform pixel-level classification of human subjects. It generates distinct masks for background, hair, body, face, and clothes. A recent refinement feature adds a bounding box around detected masks, crops the image to that area, and re-runs segmentation for improved accuracy, particularly on distant subjects or high-resolution images.
Quick Start & Requirements
git clone https://github.com/djbielejeski/a-person-mask-generator
into custom_nodes
folder, then pip install -r requirements.txt
.https://github.com/djbielejeski/a-person-mask-generator.git
.Highlighted Details
Maintenance & Community
The project has seen recent updates, including ComfyUI compatibility fixes and mask refinement features. There are no explicit links to community channels or roadmaps provided in the README.
Licensing & Compatibility
The repository does not explicitly state a license. Compatibility for commercial use or closed-source linking is not specified.
Limitations & Caveats
The project does not specify a license, which may impact commercial use. There are no explicit benchmarks or performance metrics provided.
3 weeks ago
Inactive