Stable-Hair: Real-World Hair Transfer via Diffusion Model
In the workflow, it is the simplest replacement without pasting back the original image. The complete process is: crop the avatar area containing hair ->generate a bald head ->migrate the reference image hair ->paste the result image back to the original image
- The width and height of the images for generating bald heads and transferring hair need to be multiples of 8, the two cropped image should be same size, and they should be front facing photos
- Choose the SD1.5 model
- Manual
cd custom_nodes
git clone https://github.com/lldacing/ComfyUI_StableHair_ll.git
cd ComfyUI_StableHair_ll
# restart ComfyUI
From HuggingFace download all files to ComfyUI/models/diffusers/StableHair
directory.
Suggest using huggingface-cli to download
# Start the command line in the ComfyUI/models directory and execute the following command
huggingface-cli download lldacing/StableHair --local-dir StableHair
The directory structure is as follows:
ComfyUI
└─models
└─diffusers
└─StableHair
└─hair_encoder_model.bin
└─hair_adapter_model.bin
└─hair_controlnet_model.bin
└─hair_bald_model.bin
Original Project Xiaojiu-z/Stable-Hair