1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-29 07:22:12 +03:00

Update examples/cogvideo/train_cogvideox_lora.py

Co-authored-by: YiYi Xu <yixu310@gmail.com>
This commit is contained in:
Aryan
2024-09-12 13:04:31 +05:30
committed by GitHub
parent 8f7ee5a7d1
commit 7e9e25cf6c

View File

@@ -1306,7 +1306,7 @@ def main(args):
)
# Sample noise that will be added to the latents
noise = torch.rand_like(model_input)
noise = torch.randn_like(model_input)
batch_size, num_frames, num_channels, height, width = model_input.shape
# Sample a random timestep for each image