Update app.py
Browse files
app.py
CHANGED
@@ -69,12 +69,9 @@ def add_new_image(image):
|
|
69 |
configs.seek(0)
|
70 |
|
71 |
def add_new_video(video):
|
72 |
-
|
73 |
-
height = image.height
|
74 |
-
width = image.width
|
75 |
lr = 1.0
|
76 |
ip_img = "${.condition_images}"
|
77 |
-
image.save("./img.png")
|
78 |
img_settings = f"""- name: "dance2"
|
79 |
prompt: "(best quality), ((masterpiece)), (highres), illustration, original, extremely detailed wallpaper"
|
80 |
video_path: ./MuseV/data/source_video/video1_girl_poseseq.mp4
|
@@ -99,7 +96,7 @@ def run(duration=240):
|
|
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:
|
|
|
69 |
configs.seek(0)
|
70 |
|
71 |
def add_new_video(video):
|
72 |
+
print(video)
|
|
|
|
|
73 |
lr = 1.0
|
74 |
ip_img = "${.condition_images}"
|
|
|
75 |
img_settings = f"""- name: "dance2"
|
76 |
prompt: "(best quality), ((masterpiece)), (highres), illustration, original, extremely detailed wallpaper"
|
77 |
video_path: ./MuseV/data/source_video/video1_girl_poseseq.mp4
|
|
|
96 |
|
97 |
@spaces.GPU
|
98 |
def run_video(duration=240):
|
99 |
+
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"])
|
100 |
return "./output.mp4"
|
101 |
|
102 |
with gr.Blocks() as demo:
|