WAN 2.2 💠 T2V / I2V / S2V / T2I🔹4-6 steps🔹Loop 🔹SVI Video extend 🔹WanVideoWrapper Workflow🔹K3NK

NOTICE: IF YOU ARE NEW TO COMFYUI, I DONT RECOMMEND STARTING WITH THIS WORKFLOW, IS AN ALL IN ONE WORKFLOW YOU WILL GET CONFUSED.
I UPDATED v2.3, YOU CAN CHOOSE IF YOU WANT RES4LYF OR WVW SIGMA SPLITTING

Since v1.8 im using subgraphs, you need latest comfyui with the latest frontend updates, also probably you will need to update Comfyui Manager.
For me was: setting nightly vers on the manager then update confy from the manager too.
* i allways leave the image overlay enabled, it will error if you dont have an image on it, sorry :S
v2.0

You can choose whether to merge with the loras or not, change the lora connection from the model loader to the set loras node, after that uncheck merge_loras
The toggled i added for radial sage, requieres Sage Attention to be installed, if you dont have it you should unplug the conexion i made to the attention type on the model loaders..
Be sure to update WanVideoWrapper nodes ..

The workflow works just fine with Wan2.1 if you bypass first sampler and model loader
This workflow is included with all my uploads as metadata, drag and drop a vid to comfyui.
I run a 4090 locally

You can use it as other modes if you activate this option for enabling the required nodes.

Make sure you load the correct models on the model loaders

Kijai's WanVideoWrapper Node
Wan2.2 Kijai's models
Lightx2v LoRa needed for lower steps (faster generations)
Wan22-Lightning Lightx2v alternative, newer and better in some scenarios
NSFW Clip Vision (not really needed in wan2.2)
RES4LYF Nodes
MMAUDIO
https://huggingface.co/Kijai/MMAudio_safetensors/tree/main
once installed replace nodes.py file in the mmaudio node folder with this one: https://github.com/phazei/ComfyUI-MMAudio/blob/master/nodes.py
WAN 2.2 💠 T2V / I2V
MMAUDIO NSFW
https://huggingface.co/phazei/NSFW_MMaudio (download and rename it to "mmaudio_nsfw_large_44k_v2_fp16.safetensors")
BOYONODES
K3NK IMAGE GRAB

Description
Float list node swapped with floatCFG node so it is more dynamic, based on the actual steps
Added vrgamedevgirl node for colormatch, KJNodes one will mess the loop coz the first imput is ref_image instead of the actual image.. so it cannot by bypassed..
Added double sampler for fully featured wan2.2 T2I Subgraph
FAQ
Comments (28)
I had one successful generation but am now getting this:
Error during sampling: list index out of range
!!! Exception during processing !!! list index out of range
You changed shift or steps number? Try restarting comfy or unhook the float list from the fast lora strength, that's causing it, it shouldn't, but sometimes happens, idk really why.. since the float lists are based on the steps divided by 2..
@K3NK yep. thx for the help. Disconnecting the float list from the lora strength fixed it.
This is just a bit of speculation but I'd guess it's related to a node that the 'steps' are connected to which takes an int as an argument and divides by 2. If you put in an odd number of steps, it... will give you a result that's not predictable. I'm not sure if it does cast to a float (doubt) or returns a rounded result but that's probably what's going on.
had to mute the overlay section to not produce static videos
also could you give us an advice on how to automate your WF when processing batch image with multi prompts
hey, can someone explain what the overlay image (after firm grain) section is doing?
after muting that section i could finally make combo videos with audio while keeping the current index in sync, super helpful
is there a way to make the workflow run in one pass so it only combines smoothly without errors, good for automation
do you plan to add a way to use pre written sequenced prompts, maybe even with combined florence
thanks a lot for your work, this workflow is a great base for others like m0no1 to build on 🙏
I always get the following error: 'NoneType' object has no attribute 'lower'
can someone please help me?
Check the LORAs. I had the alternate lightning model to change there.
are you getting that error from the text encoder node? I was missing the umt5_xxl_fp16 file and got the same error, adding it fixed it.
Thanks for the tips, but as soon as I do that, I get other errors. Unfortunately, I can't get it to work :(
@Delatsche did you remove the loras i had? you might have a lora that is not found in the lora loader list. im sorry im too lazy to clean everything up before uploading
Multi PNG extend nodes need delimiter changed to / below where the path to save pngs is. And also just below it there is concatenate node with \0 should be /0 so it works on operating systems that don't suck.
works great i just switched torch compile off and enabled sageattention
You can use torch compile and sage attention at the same time.
I'm getting a loop error as well when trying to do a basic I2V: "Loop (2944,2643,2834,2911,2904,2846,2845,2451,795,557,254,246,244,236,1977,2599,2005) - not submitting workflow"
Any idea how to fix this?
Those are node IDs, but I have no idea which one, have you enabled nodes via toggles or manually?
same error
@K3NK same error here
Please help, how can i Change CFG in this workflow , Like change of ~3.5 for high-noise sampling and 5-7 for low noise sampling
When I generate videos around 10 seconds, right at around 5 seconds, he pulls out, and they start over. It's so weird. And if I put in the prompt that he shouldn't take it out, it still happens. It's as if there's no point in generating 10 seconds since it's doing the same thing in 5 second blocks.
wish somebody would add this on RunPod, I can't get it orking on there
I am able to run this and the results look great (wan2.2) excepppt there is like an afterimage of the subject on all the I2V's, it starts after about a second, its like there are two videos playing on top of eachother but one is faded out
thats the CFG 🤣
brahh the only cfg value I see is on the low noise sampler and its at 1 lmao
ah I figured it out, the high noise sampler cfg was connected to the create cfg scheduler which was bypassed so it was using the steps value of '4' for cfg lmao jeeez buddy following these wires is ROUGH but the results are great. Thanks!
@bobthebuildor yeah that node helps with the movement, but in some cases can produce extra noise depending on the lora, the resolution and the quality of the source image in i2v
so I have the same issue, I have temporarily removed the link to the schedu
le float list and reverted the CFG on the first sampler to 1 but I'm still getting ghosting. Any other advice?
@4crap301if you bypass the float cfg list it should run at 1.00 or set 1.00 on both inputs at the float CFG






