Spaces:
Running
Running
Update generate.py
Browse files- generate.py +1 -1
generate.py
CHANGED
@@ -27,7 +27,7 @@ if torch.cuda.is_available():
|
|
27 |
torch.backends.cudnn.deterministic = True
|
28 |
|
29 |
# Run WAN 2.1 - 14B Model
|
30 |
-
command = f"python
|
31 |
|
32 |
process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
33 |
stdout, stderr = process.communicate()
|
|
|
27 |
torch.backends.cudnn.deterministic = True
|
28 |
|
29 |
# Run WAN 2.1 - 14B Model
|
30 |
+
command = f"python generate.py --task {args.task} --size {args.size} --frame_num {args.frame_num} --sample_steps {args.sample_steps} --ckpt_dir {args.ckpt_dir} --offload_model {args.offload_model} --prompt \"{args.prompt}\""
|
31 |
|
32 |
process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
33 |
stdout, stderr = process.communicate()
|