GroupID: Multi-Person Portrait Generator with SDXL & FaceID & InstantID
5.0
0 reviewsDescription
This workflow enables creative transformation of group photos while maintaining individual control over each person's appearance and preserving facial similarity. The process combines regional prompting with face refinement technology.
Steps:
1. Initial Segmentation Upload your group photo and run the process until the segmentation model identifies each person. The model will select people in random order and show their sequence. At this point, interrupt the process to prepare individual prompts.
2. Prompt Setup Based on the segmentation order, create:
- Individual prompts for each person, separated by semicolons (;)
- Global positive prompt describing overall composition, style, and background
- Global negative prompt for the entire image
3. Base Generation
The system generates an initial image incorporating:
- Regional prompting (different prompts for specific areas)
- Individual character transformations
- Global composition settings
Note: At this stage, facial similarity is not yet preserved
4. Upscale and Refine (Optional) Upscaling and refining the base image to enhance overall quality
5. Face Integration Final stage redraws facial areas using InstantID and FaceID technology, maintaining similarity with the original photo's subjects
Performance Metrics (NVIDIA RTX 3060 12GB) (for the image with 5 persons above):
- Full generation process (including upscale): ~5 minutes
- Generation without upscale: ~2.45 minutes
- Note: These times don't include initial model loading. Actual performance may vary depending on your hardware configuration and the number of people in the input image.
Required Additional Models:
- Base Checkpoint:
- DreamShaper XL - SFW Lightning DPM++ SDE
https://civitai.com/models/112902?modelVersionId=355868
- ControlNet:
- xinsir/controlnet-union-sdxl-1.0 promax
https://huggingface.co/xinsir/controlnet-union-sdxl-1.0/tree/main
- Segmentation Model:
- Anzhc Head+Hair seg medium no dill
https://huggingface.co/Anzhc/Anzhcs_YOLOs/tree/main
Standard Models Required:
- InstantID
- FaceID Portrait
Feedback Welcome!
I'm actively developing this workflow and would greatly appreciate your feedback, suggestions for improvements, or creative ideas for new features. Feel free to share your results and recommendations for making GroupID even better!
Note: This workflow is optimized for photographic inputs with real people. For best results, follow the steps in order and ensure all required models are properly installed.
Discussion
(No comments yet)
Loading...
Reviews
No reviews yet
Versions (1)
- latest (8 months ago)
Node Details
Primitive Nodes (157)
GODMT_ListGetByIndex (5)
GODMT_SplitString (1)
Get resolution [Crystools] (5)
Image Comparer (rgthree) (2)
ImageCropByMaskAndResize (1)
Note (52)
Reroute (79)
Seed (rgthree) (1)
SetUnionControlNetType (5)
easy forLoopEnd (2)
easy forLoopStart (2)
easy mathInt (2)
Custom Nodes (83)
- DeepTranslatorTextNode (3)
- List Length (2)
ComfyUI
- PreviewImage (7)
- InvertMask (3)
- ConditioningSetAreaStrength (1)
- CLIPTextEncode (5)
- ConditioningSetMask (1)
- ConditioningSetTimestepRange (1)
- ConditioningCombine (1)
- KSampler (2)
- ControlNetApplyAdvanced (5)
- EmptyLatentImage (1)
- ControlNetLoader (2)
- UpscaleModelLoader (1)
- VAEDecode (2)
- SetLatentNoiseMask (1)
- VAEEncode (1)
- CLIPVisionLoader (1)
- SaveImage (1)
- CheckpointLoaderSimple (1)
- LoadImage (1)
- easy showAnything (6)
- MaskPreview+ (1)
- SegmDetectorSEGS (2)
- SEGSPreview (2)
- ImpactSEGSToMaskList (2)
- BitwiseAndMask (1)
- UltralyticsDetectorProvider (2)
- InstantIDModelLoader (1)
- InstantIDFaceAnalysis (1)
- ApplyInstantID (1)
- InpaintPreprocessor (4)
- DepthAnythingPreprocessor (1)
- LineArtPreprocessor (1)
- TilePreprocessor (1)
- OpenposePreprocessor (1)
- IPAdapterUnifiedLoaderFaceID (1)
- IPAdapterInsightFaceLoader (1)
- IPAdapterFaceID (1)
- InpaintCrop (1)
- InpaintStitch (1)
- PreviewMask_ (1)
- ImageResizeKJ (1)
- ResizeMask (1)
- GrowMaskWithBlur (1)
- String Literal (3)
- UltimateSDUpscale (1)
Model Details
Checkpoints (1)
SDXL\dreamshaperXL_sfwLightningDPMSDE.safetensors
LoRAs (0)