Home Creators Posts Import Register Favorites Logout

Downloads

Content

Video - https://youtu.be/vWTnlEspiOg

MoCha Overview

Another week, another model and this time it's MoCha. A bit like WAN Animate, only without the need for a pose/depth/canny video. All it needs is a single image (ideally closely matching the first frame of the video) and that's it!

You can change the face, the clothing, the background... whatever you decide to try :)

The downside? This one is pretty VRAM heavy as even with block swap at 40 it'll chew through 12+GB VRAM for an 81 frame 480p video generation, so 16GB VRAM+ is recommended!

Seems to handle longer videos (81+ frames) pretty well in most cases, though I didn't test past 10s. The longer the video, the more VRAM you'll need :|

Tested with the context node also, but that didn't seem to work too well... do let me know if you get any better success using that!

Workflow Information

The workflow features various sections including:

Qwen Image Edit built-in for easy "first frame" editing

Prompt-based masking

Video Super Resolution (optional)

Full workflow screenshot example

This workflow has Qwen Image Edit "built in" so you'll need those models too in order to use that option. It's a cut-down version of the one from https://www.patreon.com/posts/qwen-image-edit-140305178 which uses only the masked image.

Torch Compile can be bypassed or removed if you're using MS Windows and haven't installed triton - it's purely for a small performance boost.

Masking is prompt based this time, which makes things a bit easier!

Note that while the masking works great for Qwen, MoCha can sometimes ignore the masked area and change other stuff!

There are various options available, but note that you do need to have at least 1 reference image (either via Load Ref1 image, or via Qwen Image Edit):

Ref2 is for an optional face image to help maintain the face similarity... but as to how well it works... that's another matter. For the most part it did seem OK with a single image anyway, but some faces would change a little.

As for custom nodes, it's much the same as Wan Animate, and FlashVSR actually has a few options available.

The "NoVSR" version is the same workflow, simply without the VSR option as... well... I wasn't super impressed with the version I tested as it seemed to over-sharpen a lot of things! I can also be a bit of a hassle installing the custom node, so just go with the NoVSR option to skip it altogether.

The one I tested was FlashVSR Ultra Fast - as shown below:

However do note that installing via ComfyUI Manager may not be the best idea for this particular node due to the fixed versions in it's "requirements.txt" file.

There's nothing in there that I didn't have installed already, so in my case a simple git clone of the repo was all that was required.

If you do need to "pip install -r requirements.txt" then you may like to remove the first few lines from the file first. The fixed versions for pytorch and numpy could mess things up, and simply removing the files saves changing anything you have in your environment already. Yes, I like to have the latest versions installed rather than specific things from a random custom node ;)

You will then also need to make a "FlashVSR" directory in ComfyUI/models and download the various files into it.

The other FlashVSR options I haven't tested, but their "requirements.txt" files don't seem to have fixed versions and may or may not be better!

Files

Comments

Brian Monarch

Awesome! What are the pros and cons between this and Wan 2.2 Animate? Does one have better realism? Thanks!

Joshua Holmes

Hey, thank you so much for the workflow. Im trying to use a REF1 image with background, but for some reason the output video uses the background from the video itself, instead of the image. Any idea, on what Im doing wrong?

dwinchester

i always get the message can't import SAge Attentio, no module name sage attention

dwinchester

one question how lon can last a video ?

Max Schreck

I have the problem that a 3-second clip is always generated, even though the original video is 10 seconds or longer, for example. Is there any way to influence the length of the created video?

Story pec

hi i got this error message, can you help me? FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\r\\AppData\\Local\\Temp\\torchinductor_r\\triton\\0\\OUZNMN5NWD6LUNFWYB5D6RXRWFVTAQLWS3AZ3NNCQ4ZH5KL4VWFQ\\tmp.pid_1440_ef6b9aba-8341-41f2-bdf1-3884e06aa143\\triton_poi_fused__scaled_dot_product_cudnn_attention_add_cat_mul_select_transpose_view_9.source' Set TORCHDYNAMO_VERBOSE=1 for the internal stack trace (please do this especially if you're reporting a bug to PyTorch). For even more developer context, set TORCH_LOGS="+dynamo"