r/StableDiffusion • u/Naruwashi • 11d ago
Question - Help Is there a way to refine multiple faces simultaneously in a MiniMax video workflow?
I've been looking for a ComfyUI workflow that can refine faces in MiniMax-generated videos, but so far, everything I've come across focuses on detecting and fixing only one face at a time.
What I'm looking for is a workflow that automatically detects whether a video contains one or multiple faces and then refines all detected faces simultaneously in a single pass, rather than requiring me to select or process each face individually.
Is something like this possible? Has anyone managed to achieve this, or knows of a workflow or combination of nodes that can handle multiple face refinements automatically?
Any suggestions would be appreciated!
1
u/Varingian-Varangian 11d ago
Alisson's character_swap LoRA can detect and replace multiple faces / identities, as long as you prompt for it. It's not perfect, but it's pretty impressive.
https://huggingface.co/Alissonerdx/Minimax-H3-ComfyUI/blob/main/loras/minimax_h3_character_swap_v1.1_ref2va_fro.safetensors
1
u/TheLastLL 10d ago
you can do it in one pass if you stop thinking per face. run a bbox detector that returns every face per frame (the face_yolov8m bbox model in impact pack does that), combine all the boxes into one mask, grow and feather it a bit, then do a single masked low denoise pass over the whole clip. one mask with every face in it = all of them refined at once.
two things bit me doing this: the mask flickers when a face drops out of detection for a frame or two, so smooth it over 3-5 frames before using it. and keep denoise around 0.2-0.3, higher and the faces start drifting toward each other.