A portrait that speaks: HuMo
Lesson "video-speech", in the group Video of the lesson list. Steps: 16.
Consent first
Only someone who agrees may be voiced this way, with their own voice or a voice you have permission for. Obtain permission for the source material and follow local law. For adult (18+) use, obtain consent and follow local law. See Content rules.
What you will be able to do
A person from an image says the words of a sound file, with ComfyUI's own nodes, no pack.
What you need
- It goes on from Video from a picture. The card says so; it is a hint, not a lock.
- Model files the lesson checks:
- for
unet_nameof Load Diffusion Model: a file whose name hashumo; - for
lora_nameof LoraLoaderModelOnly: a file whose name haslightx2v; - for
clip_nameof Load CLIP: a file whose name hasumt5; - for
vae_nameof Load VAE: a file whose name haswan_2.1_vae; - for
audio_encoder_nameof Audio Encoder Loader: a file whose name haswhisper.
- for
- Nodes: Load Diffusion Model, LoraLoaderModelOnly, ModelSamplingSD3, Load CLIP, Load VAE, CLIP Text Encode (Prompt), Load Audio, Audio Encoder Loader, Audio Encoder Encode, Load Image, WanHuMoImageToVideo, KSampler, VAE Decode / VAE Decode (Tiled), Create Video, Save Video.
- The app downloads and installs nothing. The step texts below say which files and folders, and which ComfyUI template names them.
The steps
The words of each step, as the lesson shows them. Node names are in bold.
Before you start (reading)
Only someone who agrees may be voiced this way, with their own voice or a voice you have permission for. Obtain permission for the source material and follow local law. For adult (18+) use, obtain consent and follow local law. Exclude anyone under 18 or who appears underage; label synthetic depictions so they do not mislead others. The lessons teach technique in factual, non-graphic terms.
HuMo draws a person from a reference image and moves the lips with the sound. The sound goes into the clip as its track.
What it costs: the HuMo 17B model, about 17 GB in
fp8, inmodels/diffusion_models; the lightx2v speed-up LoRA inmodels/loras; the Whisper audio encoder inmodels/audio_encoders;umt5_xxlandwan_2.1_vae. Plan on a card with 16 GB or more, or a long run with parts moved to system memory. The clip is about four seconds.If the canvas already holds another graph, start from an empty one: "File ▸ New project".
Load the model
Add a Load Diffusion Model node and choose the
humo_17Bfile inunet_name.If the file you need is not in the list, your ComfyUI does not have it. The app downloads nothing. The easiest way is to open, in ComfyUI itself, the "HuMo Video Generation" template: it shows which files are missing and where to put them. Then choose "Sync ▸ Sync now" in this app's menu, and the files appear in the lists.
Add the speed-up LoRA
Add a LoraLoaderModelOnly node and connect the
MODELoutput of Load Diffusion Model to itsmodelinput. Choose thelightx2vfile inlora_nameand leavestrength_modelat 1.With it, 6 steps and
cfg1 are enough, as in the template; without it the model needs far more steps.Set the shift
Add a ModelSamplingSD3 node and connect the output of LoraLoaderModelOnly to its
modelinput. Setshiftto 8.Load the text encoder
Add a Load CLIP node. Choose the
umt5_xxlfile inclip_nameand settypetowan.The text encoder turns the prompt into what the model reads. The
fp8version of the file takes half the memory of the full one and is what the templates use.Load the VAE
Add a Load VAE node and choose
wan_2.1_vaeinvae_name. HuMo is built on Wan 2.1 and uses its VAE.Describe the scene
Add two CLIP Text Encode (Prompt) nodes and connect the
CLIPoutput of Load CLIP to theclipinput of each. In thetextfield of one, describe who speaks, where and how: calmly, smiling, looking at the camera. What is said comes from the sound, not from the prompt.Load the voice
Add three nodes: Load Audio, Audio Encoder Loader and Audio Encoder Encode.
- In Load Audio choose the sound file from the
inputfolder. - In
audio_encoder_nameof Audio Encoder Loader choose the Whisper file (whisper_large_v3). - Connect the output of Audio Encoder Loader to the
audio_encoderinput of Audio Encoder Encode, and the sound to itsaudioinput.
A clean recording of one voice, without music, works best.
- In Load Audio choose the sound file from the
Load the portrait
Add a Load Image node and choose the image of the person in
image. A face seen from the front, well lit, mouth closed or slightly open.Bring it together
Add a WanHuMoImageToVideo node and connect to it the two prompts, the VAE, the output of Audio Encoder Encode to audio_encoder_output and the portrait to ref_image.
Set width and height to 640 and length to 97: at 25 fps that is about four seconds.
- Add the sampler
Add a KSampler node. Its model input takes the output of ModelSamplingSD3; positive, negative and latent_image take the three outputs of WanHuMoImageToVideo.
- Set up the sampler
Set steps to 6 and cfg to 1. The speed-up LoRA is made for these numbers; a higher cfg with it burns the picture.
- Turn the result into frames
Add a VAE Decode node. Connect the sampler's output to its samples input and the output of Load VAE to its vae input.
The sampler gives the clip in compressed form, the latent. This node unfolds it into frames.
- Make the clip with its sound
Add Create Video and Save Video. The frames go into images, the output of Load Audio into audio, and the clip into the video input of Save Video. Set fps to 25.
HuMo draws 25 fps; with another number the lips miss the words.
- When the lips miss the words (reading)
- The sound is longer than the clip: only the first four seconds are spoken. Cut the sound or make the clip longer, 97 frames per four seconds.
- The face changes: use a sharper portrait, closer to the camera.
- The mouth barely moves: the voice is quiet or has music under it.
- The graph is ready (reading)
Save the graph with "File ▸ Save workflow for ComfyUI…", open the file in ComfyUI and run it there. This app runs nothing in ComfyUI itself.
What the lesson checks
A reading step is done when you press Got it, next. A doing step ticks itself off when the canvas holds:
- Step 2, Load the model:
- a Load Diffusion Model node.
unet_nameof Load Diffusion Model holds a file whose name hashumo(capitals, dots and dashes do not matter).
- Step 3, Add the speed-up LoRA:
- a LoraLoaderModelOnly node.
MODELof Load Diffusion Model intomodelof LoraLoaderModelOnly.lora_nameof LoraLoaderModelOnly holds a file whose name haslightx2v(capitals, dots and dashes do not matter).strength_modelof LoraLoaderModelOnly is from 0.5 to 1; Do this for me sets 1.
- Step 4, Set the shift:
- a ModelSamplingSD3 node.
MODELof LoraLoaderModelOnly intomodelof ModelSamplingSD3 (a LoraLoaderModelOnly or EasyCache in between is accepted).shiftof ModelSamplingSD3 is from 5 to 8; Do this for me sets 8.
- Step 5, Load the text encoder:
- a Load CLIP node.
clip_nameof Load CLIP holds a file whose name hasumt5(capitals, dots and dashes do not matter).typeof Load CLIP iswan.
- Step 6, Load the VAE:
- a Load VAE node.
vae_nameof Load VAE holds a file whose name haswan_2.1_vae(capitals, dots and dashes do not matter).
- Step 7, Describe the scene:
- a CLIP Text Encode (Prompt) node.
- a CLIP Text Encode (Prompt) node.
CLIPof Load CLIP intoclipof CLIP Text Encode (Prompt) (prompt).CLIPof Load CLIP intoclipof CLIP Text Encode (Prompt) (negative prompt).textof CLIP Text Encode (Prompt) (prompt) holds at least 3 characters.
- Step 8, Load the voice:
- a Load Audio node.
- a Audio Encoder Loader node.
- a Audio Encoder Encode node.
AUDIO_ENCODERof Audio Encoder Loader intoaudio_encoderof Audio Encoder Encode.AUDIOof Load Audio intoaudioof Audio Encoder Encode.audioof Load Audio: a value is chosen.audio_encoder_nameof Audio Encoder Loader holds a file whose name haswhisper(capitals, dots and dashes do not matter).
- Step 9, Load the portrait:
- a Load Image node.
imageof Load Image: a value is chosen.
- Step 10, Bring it together:
- a WanHuMoImageToVideo node.
CONDITIONINGof CLIP Text Encode (Prompt) (prompt) intopositiveof WanHuMoImageToVideo.CONDITIONINGof CLIP Text Encode (Prompt) (negative prompt) intonegativeof WanHuMoImageToVideo.VAEof Load VAE intovaeof WanHuMoImageToVideo.AUDIO_ENCODER_OUTPUTof Audio Encoder Encode intoaudio_encoder_outputof WanHuMoImageToVideo.IMAGEof Load Image intoref_imageof WanHuMoImageToVideo (a Upscale Image or Upscale Image By or ImageFromBatch or ImageResizeKJv2 or Resize Image or GetImageRangeFromBatch or ResizeImageMaskNode in between is accepted).widthof WanHuMoImageToVideo is from 480 to 1280; Do this for me sets 640.heightof WanHuMoImageToVideo is from 480 to 1280; Do this for me sets 640.lengthof WanHuMoImageToVideo is from 25 to 97; Do this for me sets 97.
- Step 11, Add the sampler:
- a KSampler node.
MODELof ModelSamplingSD3 intomodelof KSampler (a LoraLoaderModelOnly or EasyCache in between is accepted).positiveof WanHuMoImageToVideo intopositiveof KSampler.negativeof WanHuMoImageToVideo intonegativeof KSampler.latentof WanHuMoImageToVideo intolatent_imageof KSampler.
- Step 12, Set up the sampler:
stepsof KSampler is from 4 to 10; Do this for me sets 6.cfgof KSampler is1.
- Step 13, Turn the result into frames:
- a VAE Decode or VAE Decode (Tiled) node.
LATENTof KSampler intosamplesof VAE Decode or VAE Decode (Tiled).VAEof Load VAE intovaeof VAE Decode or VAE Decode (Tiled).
- Step 14, Make the clip with its sound:
- a Create Video node.
- a Save Video node.
IMAGEof VAE Decode or VAE Decode (Tiled) intoimagesof Create Video.AUDIOof Load Audio intoaudioof Create Video.VIDEOof Create Video intovideoof Save Video.fpsof Create Video is25.