update
Browse files- datid3d_gradio_app.py +3 -2
datid3d_gradio_app.py
CHANGED
@@ -13,7 +13,6 @@ from functools import partial
|
|
13 |
from datetime import datetime
|
14 |
|
15 |
|
16 |
-
|
17 |
plt.rcParams["savefig.bbox"] = 'tight'
|
18 |
|
19 |
def show(imgs):
|
@@ -169,7 +168,9 @@ def TextGuidedImageTo3D(intermediate, img, model_name, num_inversion_steps, trun
|
|
169 |
command = 'ffmpeg '
|
170 |
for _model_name in all_model_names:
|
171 |
command += f'-i test_runs/manip_3D_recon_gradio_{intermediate.input_img_time}/4_manip_result/finetuned___ffhq-{_model_name}.pkl__input_inv.mp4 '
|
172 |
-
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" '
|
|
|
|
|
173 |
command += f" -vcodec libx264 {result_video_pth}"
|
174 |
print()
|
175 |
print(command)
|
|
|
13 |
from datetime import datetime
|
14 |
|
15 |
|
|
|
16 |
plt.rcParams["savefig.bbox"] = 'tight'
|
17 |
|
18 |
def show(imgs):
|
|
|
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 |
+
|
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)
|