SinFusion: Training Diffusion Models on a Single Image or Video

Yaniv Nikankin,Niv Haim,Michal Irani
2023-06-19
Abstract:Diffusion models exhibited tremendous progress in image and video generation, exceeding GANs in quality and diversity. However, they are usually trained on very large datasets and are not naturally adapted to manipulate a given input image or video. In this paper we show how this can be resolved by training a diffusion model on a single input image or video. Our image/video-specific diffusion model (SinFusion) learns the appearance and dynamics of the single image or video, while utilizing the conditioning capabilities of diffusion models. It can solve a wide array of image/video-specific manipulation tasks. In particular, our model can learn from few frames the motion and dynamics of a single input video. It can then generate diverse new video samples of the same dynamic scene, extrapolate short videos into long ones (both forward and backward in time) and perform video upsampling. Most of these tasks are not realizable by current video-specific generation methods.
Computer Vision and Pattern Recognition,Machine Learning
What problem does this paper attempt to address?
The problem this paper attempts to address is how to train a Diffusion Model on a single image or video, enabling it to generate new image or video samples and perform various editing and manipulation tasks. Specifically, existing diffusion models typically require large-scale datasets for training and are not naturally suited for manipulating a given input image or video. This paper proposes a method to train a diffusion model on a single input image or video, achieving the following goals: 1. **Generate new image or video samples**: Generate new samples that have a similar appearance and dynamics to the original input image or video. 2. **Video extrapolation**: Generate longer videos from short videos, including both forward and backward in time. 3. **Video super-resolution**: Increase the frame rate of a video by generating new frames between the original frames. Most of these tasks are beyond the capabilities of existing video generation methods. By training a diffusion model on a single image or video, the proposed method can better capture and generalize the motion and dynamic characteristics of the input data.