Update app.py
Browse files
app.py
CHANGED
@@ -97,9 +97,11 @@ def run(duration=240):
|
|
97 |
#subprocess.run(["python", "./MuseV/text2video.py", "--sd_model_name", "majicmixRealv6Fp16", "--unet_model_name", "musev_referencenet", "--referencenet_model_name", "musev_referencenet", "--ip_adapter_model_name", "musev_referencenet", "-test_data_path", "./MuseV/configs/tasks/example.yaml", "--output_dir", "./MuseV", "--n_batch", "1", "--target_datas", "jinkesi2", "--vision_clip_extractor_class_name", "ImageClipVisionFeatureExtractor", "--vision_clip_model_path", "./MuseV/checkpoints/IP-Adapter/models/image_encoder", "--motion_speed", "5.0", "--vae_model_path", "./MuseV/checkpoints/vae/sd-vae-ft-mse", "--time_size", "120", "--fps", "24"])
|
98 |
return "./output.mp4"
|
99 |
|
100 |
-
|
|
|
101 |
subprocess.run(["python", "./MuseV/video2video.py", "--sd_model_name", "fantasticmix_v10", "--unet_model_name", "musev", "-test_data_path", "./MuseV/configs/tasks/example.yaml", "--output_dir", "./output", "--n_batch", "1", "--controlnet_name", "dwpose_body_hand", "--which2video" "\"video_middle\"", "--target_datas", "dance1", "--fps 12", "--time_size 12"])
|
102 |
-
|
|
|
103 |
with gr.Blocks() as demo:
|
104 |
title = gr.Markdown("""# MuseV Image2Vid & Vid2Vid """)
|
105 |
subtitle1 = gr.Markdown("""Image2Vid""")
|
|
|
97 |
#subprocess.run(["python", "./MuseV/text2video.py", "--sd_model_name", "majicmixRealv6Fp16", "--unet_model_name", "musev_referencenet", "--referencenet_model_name", "musev_referencenet", "--ip_adapter_model_name", "musev_referencenet", "-test_data_path", "./MuseV/configs/tasks/example.yaml", "--output_dir", "./MuseV", "--n_batch", "1", "--target_datas", "jinkesi2", "--vision_clip_extractor_class_name", "ImageClipVisionFeatureExtractor", "--vision_clip_model_path", "./MuseV/checkpoints/IP-Adapter/models/image_encoder", "--motion_speed", "5.0", "--vae_model_path", "./MuseV/checkpoints/vae/sd-vae-ft-mse", "--time_size", "120", "--fps", "24"])
|
98 |
return "./output.mp4"
|
99 |
|
100 |
+
@spaces.GPU
|
101 |
+
def run_video(duration=240):
|
102 |
subprocess.run(["python", "./MuseV/video2video.py", "--sd_model_name", "fantasticmix_v10", "--unet_model_name", "musev", "-test_data_path", "./MuseV/configs/tasks/example.yaml", "--output_dir", "./output", "--n_batch", "1", "--controlnet_name", "dwpose_body_hand", "--which2video" "\"video_middle\"", "--target_datas", "dance1", "--fps 12", "--time_size 12"])
|
103 |
+
return "./output.mp4"
|
104 |
+
|
105 |
with gr.Blocks() as demo:
|
106 |
title = gr.Markdown("""# MuseV Image2Vid & Vid2Vid """)
|
107 |
subtitle1 = gr.Markdown("""Image2Vid""")
|