huggingface / diffusers

đŸ¤— Diffusers: State-of-the-art diffusion models for image and audio generation in PyTorch and FLAX.
https://huggingface.co/docs/diffusers
Apache License 2.0
26.4k stars 5.43k forks source link

FIFO-Diffusion: Generating Infinite Videos from Text without Training through Rolling Video Denoising #8274

Open clarencechen opened 6 months ago

clarencechen commented 6 months ago

Model/Pipeline/Scheduler description

The authors propose a novel inference technique based on a pretrained diffusion model for text-conditional video generation. Their approach, called FIFO-Diffusion, is conceptually capable of generating infinitely long videos without training. This is achieved by iteratively performing diagonal denoising, which concurrently processes a series of consecutive frames with increasing noise levels in a queue. Specifically, at each denoising step, this method dequeues a fully denoised frame at the head while enqueuing a new random noise frame at the tail.

However, diagonal denoising is a double-edged sword, as the frames near the tail can take advantage of cleaner ones by forward reference, but such a strategy induces the discrepancy between training and inference. To reduce this gap, the authors introduce latent partitioning to reduce the training-inference gap, and lookahead denoising to leverage the benefit of forward referencing.

The authors demonstrate promising results on existing pretrained text-to-video generation models such as VideoCrafter, OpenSora Plan, and ZeroScope.

Open source status

Provide useful links for the implementation

Project Page: https://jjihwan.github.io/projects/FIFO-Diffusion Code: https://github.com/jjihwan/FIFO-Diffusion_public Arxiv: https://arxiv.org/abs/2405.11473 Contact: @jjihwan

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

a-r-r-o-w commented 1 month ago

Based on our testing, we found FIFO diffusion to be much slower in comparison to alternative methods for generating longer videos (in single GPU inference cases - which is what Diffusers focuses on). Due to this reason, we will not be able to support this in core diffusers. Community pipelines would be nice to have though! cc @yiyixuxu

0x-74 commented 1 month ago

hey gonna work on this this week!