mirror of
https://github.com/THUDM/CogVideo.git
synced 2025-04-05 19:41:59 +08:00
Merge pull request #465 from DefTruth/main
[Bug] fix parallel rand device & set dynamic cfg
This commit is contained in:
commit
075fad4dae
@ -78,8 +78,9 @@ def main():
|
||||
num_frames=input_config.num_frames,
|
||||
prompt=input_config.prompt,
|
||||
num_inference_steps=input_config.num_inference_steps,
|
||||
generator=torch.Generator(device="cuda").manual_seed(input_config.seed),
|
||||
generator=torch.Generator().manual_seed(input_config.seed),
|
||||
guidance_scale=6,
|
||||
use_dynamic_cfg=True,
|
||||
).frames[0]
|
||||
|
||||
end_time = time.time()
|
||||
|
Loading…
x
Reference in New Issue
Block a user