update
Browse files- datid3d_gradio_app.py +3 -4
datid3d_gradio_app.py
CHANGED
@@ -168,9 +168,8 @@ def TextGuidedImageTo3D(intermediate, img, model_name, num_inversion_steps, trun
|
|
168 |
command = 'ffmpeg '
|
169 |
for _model_name in all_model_names:
|
170 |
command += f'-i test_runs/manip_3D_recon_gradio_{intermediate.input_img_time}/4_manip_result/finetuned___ffhq-{_model_name}.pkl__input_inv.mp4 '
|
171 |
-
|
172 |
-
|
173 |
-
command += '-filter_complex "[v0][v1][v2][v3][v4][v5][v6][v7][v8][v9][v10][v11]concat=n=12:v=1:a=0[output]"'
|
174 |
command += f" -vcodec libx264 {result_video_pth}"
|
175 |
print()
|
176 |
print(command)
|
@@ -275,7 +274,7 @@ if __name__ == '__main__':
|
|
275 |
|
276 |
t_model_name = gr.Radio(["super_mario", "lego", "neanderthal", "orc",
|
277 |
"pixar", "skeleton", "stone_golem","tekken",
|
278 |
-
"greek_statue", "yoda", "zombie", "elf"
|
279 |
label="Model fine-tuned through DATID-3D",
|
280 |
value="super_mario", interactive=True)
|
281 |
with gr.Accordion("Advanced Options", open=False):
|
|
|
168 |
command = 'ffmpeg '
|
169 |
for _model_name in all_model_names:
|
170 |
command += f'-i test_runs/manip_3D_recon_gradio_{intermediate.input_img_time}/4_manip_result/finetuned___ffhq-{_model_name}.pkl__input_inv.mp4 '
|
171 |
+
command += '-filter_complex "[0:v]scale=2*iw:-1[v0];[1:v]scale=2*iw:-1[v1];[2:v]scale=2*iw:-1[v2];[3:v]scale=2*iw:-1[v3];[4:v]scale=2*iw:-1[v4];[5:v]scale=2*iw:-1[v5];[6:v]scale=2*iw:-1[v6];[7:v]scale=2*iw:-1[v7];[8:v]scale=2*iw:-1[v8];[9:v]scale=2*iw:-1[v9];[10:v]scale=2*iw:-1[v10];[11:v]scale=2*iw:-1[v11];[v0][v1][v2][v3][v4][v5][v6][v7][v8][v9][v10][v11]xstack=inputs=12:layout=0_0|w0_0|w0+w1_0|w0+w1+w2_0|0_h0|w4_h0|w4+w5_h0|w4+w5+w6_h0|0_h0+h4|w8_h0+h4|w8+w9_h0+h4|w8+w9+w10_h0+h4" '
|
172 |
+
# command += '-filter_complex "[v0][v1][v2][v3][v4][v5][v6][v7][v8][v9][v10][v11]concat=n=12:v=1:a=0[output]"'
|
|
|
173 |
command += f" -vcodec libx264 {result_video_pth}"
|
174 |
print()
|
175 |
print(command)
|
|
|
274 |
|
275 |
t_model_name = gr.Radio(["super_mario", "lego", "neanderthal", "orc",
|
276 |
"pixar", "skeleton", "stone_golem","tekken",
|
277 |
+
"greek_statue", "yoda", "zombie", "elf"],# "all"],
|
278 |
label="Model fine-tuned through DATID-3D",
|
279 |
value="super_mario", interactive=True)
|
280 |
with gr.Accordion("Advanced Options", open=False):
|