Causal-Forcing icon indicating copy to clipboard operation
Causal-Forcing copied to clipboard

Community integration: ComfyUI nodes for the Causal Forcing++ frame-wise 2-step model (official checkpoints)

Open hiroki-abe-58 opened this issue 2 months ago • 1 comments

Hi, thank you for releasing Causal Forcing / Causal Forcing++ with code and checkpoints.

I made an unofficial ComfyUI integration and wanted to let you know, in case it is useful for users who work in ComfyUI: https://github.com/hiroki-abe-58/ComfyUI-CausalForcing (Apache-2.0, not affiliated with your group)

What it does:

  • runs causal-forcing++/framewise-2step.pt and framewise/causal_forcing.pt from zhuhz22/Causal-Forcing (generator_ema, as in the README's --use_ema commands) with the official configs and this repository's inference pipeline (pinned at da3ddf1, imported unmodified) in a separate Python environment (WSL2/Linux);
  • text-to-video and frame-wise image-to-video (first frame prepared and encoded as in inference.py), 832x480, 81 frames;
  • reports the generator calls actually run per video (65 for the 2-step model including the 4-step first frame, 105 for the 4-step model).

Check against your script: for one prompt with seed 101, the official python inference.py --config_path configs/causal_forcing_dmd_framewise_2step.yaml ... --use_ema --seed 101 (and the same with the 4-step frame-wise config) gave the same initial noise, the same latents and the same 8-bit frames as the ComfyUI node, on an RTX 5090. On that machine the 2-step generator took 7.05 s per 81-frame video vs 10.97 s for the 4-step model (a different setup from your paper's latency measurements). Details and the videos: https://github.com/hiroki-abe-58/ComfyUI-CausalForcing/releases/tag/v0.1.0 . The 1-step and chunk-wise models were not run yet.

To reproduce: install the node, set up the runtime as in docs/SETUP.md (this repository at da3ddf1, Wan2.1-T2V-1.3B, the checkpoints), register it in causalforcing.runtimes.json, then load workflows/causalforcing_2step_vs_4step.json.

If you think a link would help users, would you be open to a small README PR adding it (e.g. under a community section)? No problem at all if not; feel free to close this issue.

hiroki-abe-58 avatar Oct 02 '26 16:10 hiroki-abe-58

Certainly, we really appreciate your effort!

Image

zhuhz22 avatar Oct 03 '26 04:10 zhuhz22