Spaces:
Running
Running
Update generate.py
Browse files- generate.py +1 -1
generate.py
CHANGED
@@ -43,7 +43,7 @@ if torch.cuda.is_available():
|
|
43 |
|
44 |
# Command to run the model generation
|
45 |
offload_model_value = "True" if args.offload_model else "False"
|
46 |
-
command = f"python generate.py --task t2v-1.3B --size
|
47 |
|
48 |
# Run the model
|
49 |
process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
|
|
43 |
|
44 |
# Command to run the model generation
|
45 |
offload_model_value = "True" if args.offload_model else "False"
|
46 |
+
command = f"python generate.py --task t2v-1.3B --size 480832 --frame_num 1 --ckpt_dir ./Wan2.1-T2V-1.3B --offload_model True --t5_cpu --sample_shift 8 --sample_guide_scale 6 --prompt \"{args.prompt}\""
|
47 |
|
48 |
# Run the model
|
49 |
process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|