lldacing d00491937b Merge pull request #5 from ComfyNodePRs/update-publish-yaml
Update Github Action for Publishing to Comfy Registry
2025-03-31 17:16:21 +08:00
2024-11-30 12:51:41 +08:00
2024-11-30 12:51:41 +08:00
2024-12-01 19:57:39 +08:00
2024-11-30 12:51:41 +08:00
2024-11-30 12:51:41 +08:00
2024-11-30 12:51:41 +08:00
2024-12-01 19:57:39 +08:00
2024-11-30 12:51:41 +08:00
2024-11-30 12:51:41 +08:00

中文文档

Stable-Hair: Real-World Hair Transfer via Diffusion Model

Preview

save api extended

Workflow example

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

tips:

  • 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

Install

  • Manual
    cd custom_nodes
    git clone https://github.com/lldacing/ComfyUI_StableHair_ll.git
    cd ComfyUI_StableHair_ll
    # restart ComfyUI

Model

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

Thanks

Original Project Xiaojiu-z/Stable-Hair

S
Description
No description provided
Readme Apache-2.0
2.3 MiB
Languages
Python 100%