SinFusion: Training Diffusion Models on a Single Image or Video