mirror of
https://git.datalinker.icu/ali-vilab/TeaCache
synced 2026-05-02 22:11:20 +08:00
Update utils.py
This commit is contained in:
parent
21ea48e71a
commit
c8cb932dc9
@ -10,8 +10,7 @@ def generate_func(pipeline, prompt_list, output_dir, loop: int = 5, kwargs: dict
|
|||||||
kwargs["verbose"] = False
|
kwargs["verbose"] = False
|
||||||
for prompt in tqdm.tqdm(prompt_list):
|
for prompt in tqdm.tqdm(prompt_list):
|
||||||
for l in range(loop):
|
for l in range(loop):
|
||||||
set_seed(l)
|
video = pipeline.generate(prompt, seed=l, **kwargs).video[0]
|
||||||
video = pipeline.generate(prompt, **kwargs).video[0]
|
|
||||||
pipeline.save_video(video, os.path.join(output_dir, f"{prompt}-{l}.mp4"))
|
pipeline.save_video(video, os.path.join(output_dir, f"{prompt}-{l}.mp4"))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user