Update app2.py
Browse files
app2.py
CHANGED
|
@@ -22,7 +22,7 @@ def add_new_image(prompt,image):
|
|
| 22 |
video_path: null
|
| 23 |
width: {width}"""
|
| 24 |
print(img_settings)
|
| 25 |
-
with open ("/content/MuseV/configs/tasks/example.yaml","r+") as configs:
|
| 26 |
configs.write(img_settings)
|
| 27 |
configs.truncate()
|
| 28 |
configs.seek(0)
|
|
@@ -45,8 +45,7 @@ def add_new_video(video):
|
|
| 45 |
with open ("/content/MuseV/configs/tasks/example.yaml","r+") as configs:
|
| 46 |
configs.write(img_settings)
|
| 47 |
configs.truncate()
|
| 48 |
-
configs.seek(0)
|
| 49 |
-
|
| 50 |
|
| 51 |
def run(frames,fps):
|
| 52 |
#subprocess.run(["python", "./MuseV/text2video.py", "--sd_model_name", "majicmixRealv6Fp16", "--unet_model_name", "musev", "-test_data_path", "./MuseV/configs/tasks/example.yaml", "--n_batch", "1", "--target_datas", "image", "--vae_model_path", "./MuseV/checkpoints/vae/sd-vae-ft-mse", "--motion_speed", "5.0", "--time_size", "12", "--fps", "12"])
|
|
|
|
| 22 |
video_path: null
|
| 23 |
width: {width}"""
|
| 24 |
print(img_settings)
|
| 25 |
+
with open ("/content/MuseV/MiseV/configs/tasks/example.yaml","r+") as configs:
|
| 26 |
configs.write(img_settings)
|
| 27 |
configs.truncate()
|
| 28 |
configs.seek(0)
|
|
|
|
| 45 |
with open ("/content/MuseV/configs/tasks/example.yaml","r+") as configs:
|
| 46 |
configs.write(img_settings)
|
| 47 |
configs.truncate()
|
| 48 |
+
configs.seek(0)
|
|
|
|
| 49 |
|
| 50 |
def run(frames,fps):
|
| 51 |
#subprocess.run(["python", "./MuseV/text2video.py", "--sd_model_name", "majicmixRealv6Fp16", "--unet_model_name", "musev", "-test_data_path", "./MuseV/configs/tasks/example.yaml", "--n_batch", "1", "--target_datas", "image", "--vae_model_path", "./MuseV/checkpoints/vae/sd-vae-ft-mse", "--motion_speed", "5.0", "--time_size", "12", "--fps", "12"])
|