demobook

ComfyUI: Processing reference video for Mocha

Demo summary

The video shows how to use the Load Video and Image Scale nodes to prepare the reference video frames and prevent RAM overflow.

Step-by-step

  1. Upload your reference video using the Load Video node
  2. Add an Image Scale node to the workflow
  3. Connect the video frames to the Image Scale node to resize them
  4. Assign the output to a variable named 'reference video'

Watch out for

  • You must resize frames before assigning them to a variable if the video is large to prevent RAM overflow

All demos from “Mocha vs Wan2.2 Animate: Best Workflow for PERFECT Character Replacement in ComfyUI

  1. 4:221:26Configuring Mocha Embeds in ComfyUIThe creator demonstrates how to set up the Mocha Embeds node in ComfyUI, connecting the VAE model, reference video, first-frame mask, and character reference images.ComfyUIAI Image Generator
  2. 5:500:25Processing reference video for MochaCurrentThe video shows how to use the Load Video and Image Scale nodes to prepare the reference video frames and prevent RAM overflow.ComfyUIAI Video Editor
  3. 6:150:37Creating a single-frame mask with SAM 2The demo shows how to use the Point Editor and SAM 2 nodes to generate a mask for only the first frame of the video, as required by Mocha.ComfyUIAI Video Editor
  4. 6:520:39Preparing character reference imagesThe creator demonstrates resizing and padding a target character image to match the video aspect ratio using color padding to avoid distortion.ComfyUIAI Expand Image
  5. 8:521:04Replacing a dancing character with MochaA concrete demonstration of replacing a woman dancing in a video with a new character using the Mocha workflow in ComfyUI.ComfyUIVideo to Video
  6. 12:450:58Replacing a human with an animated werewolfThe video demonstrates replacing a human actor with a stylized werewolf character while maintaining consistent textures and movement.ComfyUIVideo to Video
  7. Watch “Mocha vs Wan2.2 Animate: Best Workflow for PERFECT Character Replacement in ComfyUI” →

AI Video Editor

  1. 14:113:23Segmenting video characters with green and red dotsA detailed walkthrough of using the segmentation tool in ComfyUI to define which character to replace by placing positive (green) and negative (red) points.AI Search
  2. 20:540:27Modifying ComfyUI nodes for single video outputThe user demonstrates how to bypass the concatenation node to output only the generated video instead of a side-by-side comparison.AI Search
  3. 5:500:25Processing reference video for MochaCurrentThe video shows how to use the Load Video and Image Scale nodes to prepare the reference video frames and prevent RAM overflow.SOTAI
  4. 6:150:37Creating a single-frame mask with SAM 2The demo shows how to use the Point Editor and SAM 2 nodes to generate a mask for only the first frame of the video, as required by Mocha.SOTAI