mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-24 18:28:10 +00:00
Update sd_video.py
This commit is contained in:
@@ -185,7 +185,7 @@ class SDVideoPipeline(SDImagePipeline):
|
|||||||
if self.motion_modules is None:
|
if self.motion_modules is None:
|
||||||
noise = self.generate_noise((1, 4, height//8, width//8), seed=seed, device="cpu", dtype=self.torch_dtype).repeat(num_frames, 1, 1, 1)
|
noise = self.generate_noise((1, 4, height//8, width//8), seed=seed, device="cpu", dtype=self.torch_dtype).repeat(num_frames, 1, 1, 1)
|
||||||
else:
|
else:
|
||||||
noise = self.generate_noise((1, 4, height//8, width//8), seed=seed, device="cpu", dtype=self.torch_dtype)
|
noise = self.generate_noise((num_frames, 4, height//8, width//8), seed=seed, device="cpu", dtype=self.torch_dtype)
|
||||||
if input_frames is None or denoising_strength == 1.0:
|
if input_frames is None or denoising_strength == 1.0:
|
||||||
latents = noise
|
latents = noise
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user