CivArchive
    Wan 2.1 seamless loop workflow (i2v) - v1.1
    NSFW

    EDIT: tutorial video added to the examples of the 1.0 version, take a look.

    This is an i2v test workflow to generate seamless (or close) video using flow-two ComfyUI-WanStartEndFramesNative.

    It's not perfect. if you got better solution for seamless loop, i'm aware.

    details in the workflow.

    help: RuntimeError: output with shape [1, 14850, 5120] doesn't match the broadcast shape [2, 14850, 5120]

    it's pretty rare but sometime a random error can pop, can't find why, it's totally random.

    solution: increase or reduce the video length to the next or previous step and re-run.

    Description

    change the ksampler to custom sampler allowing split sigmas and other stuffs.

    add a lot of notes to detail what do what in the workflow.

    reorganize the workflow.

    FAQ

    Comments (26)

    PetrKApr 13, 2025
    CivitAI

    When trying to open the workflow there is an error "Missing Node Types" "LoadImageWithsub". What kind of node is that? I tried to install all missing custom nodes but this issue still persists. I also tried to replace it, but since I do not know exactly what node it is I still get errors. Pls could you help me out? If you reply with wat node it is, it would be enough. I tried to replace it with node "Load Image (With Subfolder)" but it still fails. Thx

    ekafalain
    Author
    Apr 13, 2025

    oopsie, so sorry, this is a custom node i've made, you'll can't find it. i forgot to remove it before upload :/ i will correct this. you can replace it by a classic load image node without issue, be sure to connect image and mask to the "image crop by mask node" and bypass this node if you don't use it (read the note). thank for your comment !

    ekafalain
    Author
    Apr 13, 2025

    ressource updated, workflow is named v1.11 instead of v1.1, thx again.

    PetrKApr 14, 2025

    Hello, thank you for the info! I am sorry, ComfyUI is quiet new for me and I am a noob. Trying to get into it tho, but since every workflow is different I have hard time to figure it out. I tried to apply the changes and got the new workflow you provided. But Now I am stuck at error "No module named sageattention". With log ModuleNotFoundError: No module named 'sageattention' . Last time I tried to install this, and upade everything it completely messed up my other workflows. Is there a way to easily fix this? Thank you for any info.

    PetrKApr 14, 2025

    I kept trying to install the SageAttention, did all that pip stuff in CMD line but no luck :(. Pls if you have any workflow to follow, I will love to read it. But so far I just found tons of forms with people having the same issues but no solutions. At least those that were provided did not work. Any kind of help will be greatly appreciated. Your workflow is really epic!

    ekafalain
    Author
    Apr 14, 2025

    @PetrK did you try to just remove the sage attention node ? (2nd column, 4th row). it's just an improvement, the workflow can work without this node. if you're new to python and comfy, be ready, this kind of things happens sometimes and can ruin your day. (catz, an other user did a fun vid about this https://civitai.com/images/33318142). i'm affraid they're nothing more i can do for you except maybe cheer you up. comfyui is really awesome and deserve some nervous breakdown sometimes. when you have an issue, the first thing to do is to look at the issues (closed and open) on the github of the problematic node and search for the same error than yours.

    PetrKApr 14, 2025

    @ekafalain Thank you for the quick reply! Would it be possible to buy a simplified workflow from you for Buzz? I have already spent three evenings trying to figure this out, but always failed. Now I am reinstalling everything from scratch cause I probably broke something with all the random updating of python. I have ton of Buzz, but not much time on my hands. If you were ok with it, I would send you a Buzz amount and you in exchange would upload a special version of this workflow that is just the basics with no improvements.

    ekafalain
    Author
    Apr 14, 2025

    @PetrK you can try to use the v1.0 of the workflow, he's lighter but a little slower, he's perfect for a beginner. i can do a special workflow, trying to use the maximum of standard nodes in place of custom nodes but i must remove a lot of improvement things and the generation time will be longer.

    ekafalain
    Author
    Apr 14, 2025

    @PetrK try this, i remove a lot of things and try to keep a maximum of basics comfy nodes to avoid errors but be warned, without the improvement, it's really rough for the computer, i'm not even sure it can run on a middle-end machine and gen time is something like 3x/4x longer for the same input image. from 2 mins gen to 7 mins gens). https://www.mediafire.com/file/r3d62ghm7uxefmj/test_petrk.json/file

    PetrKApr 15, 2025

    @ekafalain Thank you so much!!! I will give it a shot tomorrow. Got stuck at work today.

    PetrKApr 18, 2025

    @ekafalain Hello! Sorry for the longer reply. So I installed completely separate ComfyUI dedicated only to your workflow and finally got it running! Now I am trying to figure out how to get the best results. Pls do you have a suggestion on the length of video? So that there is biggest chance for good loop? I am using the 45 value, but still struggle to loop it as well as your videos. There is always something slightly off. Anyway, thank you again for all your support. I really appreciate it. Right after I send this reply I will send you the promised buzz. You deserve it!

    dominic1336756Apr 14, 2025
    CivitAI

    Not working for me...

    SamplerCustomAdvanced

    HunyuanVideo.forward() missing 1 required positional argument: 'y'

    ekafalain
    Author
    Apr 14, 2025

    i wonder why it say "HunyuanVideo". it's a wan 2.1 workflow, did you use the good model or maybe you try an hunyuan lora?

    dominic1336756Apr 14, 2025

    @ekafalain i use your workflow dude...i try to update custom nodes and comfyui...i know than its a wan21 workflow, its only the message of the error ...

    ekafalain
    Author
    Apr 14, 2025

    sorry, i must ask :D. never seen this error before and i don't have any feedback about it, be sure to use the version 1.0.5 of WanStartEndFramesNative. if the error persist it's maybe a dependency issue. You can try the 1.0 version of the workflow, he use a standard ksampler instead of custom sampler. to be sure the error come from the custom sampler.

    dominic1336756Apr 14, 2025

    @ekafalain hummm seems to working now...but i dont understand how to use it

    ekafalain
    Author
    Apr 14, 2025· 1 reaction

    @dominic1336756 good ! what part you don't understand ? i detail the principle in the "eechizero" and "catz" comments and i've add a tutorial video in the examples image of the v1.0.

    dominic1336756Apr 14, 2025

    @ekafalain its for creating loop right? not extended videos?

    ekafalain
    Author
    Apr 14, 2025· 1 reaction

    @dominic1336756 yep, creating a perfect loop, like in the examples vids, no extended vid at all.

    EechiZeroApr 14, 2025· 1 reaction
    CivitAI

    The new version gives me better results. maybe would need to replace the current LoRA loader with a stackable one to arrange multiple LoRAs in an orderly manner.

    ekafalain
    Author
    Apr 14, 2025

    glad to hear that, the split sigmas feature is really powerful. i take note, i try some things to try to optimize this workflow to the bones, if you have others idea, i'm aware.

    EechiZeroApr 16, 2025

    @ekafalain It seems there's a step accelerator called OptimalSteps by bebebe666. People talked about it on r/StableDiffusion on Reddit, but it doesn't seem to work for I2V yet. If they make it compatible, it might allow faster generations by using fewer steps.

    ekafalain
    Author
    Apr 16, 2025

    @EechiZero i will take a look, thanks, i actually try to automize the loop process with some ideas others user submitted to me to reduce the manual process. that's my priority. in parrallel i try to increase the resolution without ruin the quality and keeping a low generation time. thank you for your ideas. have a nice day.

    OarebtApr 14, 2025
    CivitAI

    I mostly started with video AI stuff and I like a lot the notes in the workflow to explain how some things work, greatly appreciated.

    As a random idea, it is pretty fun to generate multiple loop with sightly different motion and combine them all together creating a big loop with more diversity :)

    ekafalain
    Author
    Apr 14, 2025

    i'm glad it's useful.

    yeah, i've try this but for now the second loop can't get any information or context from the first one so the transition between the two loops is totally random, sometime will be great, but most of the time , this will be strange and not natural. so i don'try with this workflow for now, but it's in project, my idea was to generate a short third vid to do a natural transition between the two major loops. but i have doubt this will work well. i'll test soon. have fun with this workflow and thanks for your feedback.

    gss3Apr 15, 2025· 2 reactions
    CivitAI

    Very clever! Took me a minute to wrap my head around it, but I'm glad I took the time to really study this workflow. Well done.

    Workflows
    Wan Video

    Looks like we don't have an active mirror for this file right now.

    CivArchive is a community-maintained index — we catalog mirrors that volunteers upload to HuggingFace, torrents, and other public hosts. Looks like no one has uploaded a copy of this file yet.

    Some files do get recovered over time through contributions. If you're looking for this one, feel free to ask in Discord, or help preserve it if you have a copy.

    Details

    Downloads
    921
    Platform
    CivitAI
    Platform Status
    Deleted
    Created
    4/13/2025
    Updated
    4/22/2026
    Deleted
    4/16/2026

    Files

    wan21SeamlessLoop_v11.zip

    Mirrors

    CivitAI (1 mirrors)