NokiMo
Furkan Gözükara
Furkan Gözükara

patreon


Wan 2.1 Text-to-Video T2V & Image-to-Video I2V Tutorial for SwarmUI with CausVid LoRA Extreme Speed

Tutorial Link

https://youtu.be/XNcn845UXdw

Tutorial Info

Wan 2.1 is still the very best local AI video generation model and it just became even more amazing and faster with CausVid LoRA. Now with utilizing ComfyUI backend power inside SwarmUI and my automatic installers to utilize Sage Attention, you can very fast generate very high quality AI videos with Wan 2.1 and CausVid LoRA at just 8 steps.

Tutorial Links

VIDEO CHAPTERS

ABSTRACT

Current video diffusion models achieve impressive generation quality but struggle in interactive applications due to bidirectional attention dependencies. The generation of a single frame requires the model to process the entire sequence, including the future. We address this limitation by adapting a pretrained bidirectional diffusion transformer to an autoregressive transformer that generates frames on-the-fly. To further reduce latency, we extend distribution matching distillation (DMD) to videos, distilling 50-step diffusion model into a 4-step generator. To enable stable and high-quality distillation, we introduce a student initialization scheme based on teacher's ODE trajectories, as well as an asymmetric distillation strategy that supervises a causal student model with a bidirectional teacher. This approach effectively mitigates error accumulation in autoregressive generation, allowing long-duration video synthesis despite training on short clips. Our model achieves a total score of 84.27 on the VBench-Long benchmark, surpassing all previous video generation models. It enables fast streaming generation of high-quality videos at 9.4 FPS on a single GPU thanks to KV caching.

Wan 2.1 Text-to-Video T2V & Image-to-Video I2V Tutorial for SwarmUI with CausVid LoRA Extreme Speed

Comments

i am gonna publish a video about teacache hopefully very soon and regular Wan 2.1 . i searched configs

Furkan Gözükara

Thank you for this, was just thinking few days ago if it works to make video with Wan in SwarmUI with the Comfy back-end, to maximize the GPU and speed of generation, and then this post arrived 😊

Dan

i agree. unfortunately only way is testing all and prefer whichever you like :D

Furkan Gözükara

In your opinion which is best and easiest to use for image to video generation: Framepack, Wan 2.1 I2V - V2V - T2V Advanced Gradio APP V70, or latest SwarmUI with WAN support (this post). So many options I don't know how to keep them separated in my work flow.

Ec Jep

i guess you have to report it here : https://github.com/mcmonkeyprojects/SwarmUI/issues

Furkan Gözükara

Have problem with installing RIFE. Basically it hangs for 2 minutes on fresh install than it closes with timeout error. At next run install button is not visible anymore and following errors show up (as RIFE folder is empty) : 23:20:52.773 [Warning] [ComfyUI-0/STDERR] Traceback (most recent call last): 23:20:52.775 [Warning] [ComfyUI-0/STDERR] File "D:\AI\SwarmUI_Model_Downloader_v39\SwarmUI\dlbackend\comfy\ComfyUI\nodes.py", line 2131, in load_custom_node 23:20:52.776 [Warning] [ComfyUI-0/STDERR] module_spec.loader.exec_module(module) 23:20:52.776 [Warning] [ComfyUI-0/STDERR] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ 23:20:52.777 [Warning] [ComfyUI-0/STDERR] File "", line 1022, in exec_module 23:20:52.778 [Warning] [ComfyUI-0/STDERR] File "", line 1159, in get_code 23:20:52.778 [Warning] [ComfyUI-0/STDERR] File "", line 1217, in get_data 23:20:52.778 [Warning] [ComfyUI-0/STDERR] FileNotFoundError: [Errno 2] No such file or directory: 'D:\\AI\\SwarmUI_Model_Downloader_v39\\SwarmUI\\src\\BuiltinExtensions\\ComfyUIBackend\\DLNodes\\ComfyUI-Frame-Interpolation\\__init__.py'

marcon kun

[Error] Error in websocket handler: System.AggregateException: One or more errors occurred. (Invalid value for parameter Init Image) ---> System.Exception: Invalid value for parameter Init Image ---> System.ArgumentException: Data is empty! (Parameter 'data') at SwarmUI.Utils.Image..ctor(Byte[] data, ImageType type, String extension) in E:\ai\swarmui\SwarmUI\src\Utils\Image.cs:line 79 at SwarmUI.Utils.Image..ctor(String base64, ImageType type, String extension) in E:\ai\swarmui\SwarmUI\src\Utils\Image.cs:line 64 at SwarmUI.Text2Image.T2IParamInput.g__imageFor|55_1(String val) in E:\ai\swarmui\SwarmUI\src\Text2Image\T2IParamInput.cs:line 1316 at SwarmUI.Text2Image.T2IParamInput.Set(T2IParamType param, String val) in E:\ai\swarmui\SwarmUI\src\Text2Image\T2IParamInput.cs:line 1324 at SwarmUI.Text2Image.T2IParamTypes.ApplyParameter(String paramTypeName, String value, T2IParamInput data) in E:\ai\swarmui\SwarmUI\src\Text2Image\T2IParamTypes.cs:line 987 --- End of inner exception stack trace --- at SwarmUI.Text2Image.T2IParamTypes.ApplyParameter(String paramTypeName, String value, T2IParamInput data) in E:\ai\swarmui\SwarmUI\src\Text2Image\T2IParamTypes.cs:line 995 at SwarmUI.Text2Image.T2IPreset.ApplyTo(T2IParamInput user_input) in E:\ai\swarmui\SwarmUI\src\Text2Image\T2IPreset.cs:line 48 at SwarmUI.WebAPI.T2IAPI.RequestToParams(Session session, JObject rawInput) in E:\ai\swarmui\SwarmUI\src\WebAPI\T2IAPI.cs:line 227 at SwarmUI.WebAPI.T2IAPI.GenT2I_Internal(Session session, ValueTuple`4 input, Action`1 output, Boolean isWS) in E:\ai\swarmui\SwarmUI\src\WebAPI\T2IAPI.cs:line 254 --- End of inner exception stack trace ---

Klaus The.

Freshly installed the swarmui and downloaded the WAN modelspack. Imported your presets and loaded model, lora and applied your preset. Sadly, can't generate videos, there always comes the error "Invalid value for parameter Init Image". I chose an image, clicked the "Use closest aspect ratio" but always get the following error, tested in Firefox and Vivaldi(Chromeengine):

Klaus The.


Related Creators