commit
Browse files
app.py
CHANGED
@@ -54,15 +54,15 @@ def process(inputfiles, input_path='demo'):
|
|
54 |
imgs_path = temp_dir
|
55 |
output_path = f'./results/{input_path}/output'
|
56 |
rearranged_path = f'{output_path}_rearranged'
|
57 |
-
cmd(f"python dynamic_predictor/launch.py --mode=eval_pose_custom \
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
|
67 |
|
68 |
|
|
|
54 |
imgs_path = temp_dir
|
55 |
output_path = f'./results/{input_path}/output'
|
56 |
rearranged_path = f'{output_path}_rearranged'
|
57 |
+
# cmd(f"python dynamic_predictor/launch.py --mode=eval_pose_custom \
|
58 |
+
# --pretrained=Kai422kx/das3r \
|
59 |
+
# --dir_path={imgs_path} \
|
60 |
+
# --output_dir={output_path} \
|
61 |
+
# --use_pred_mask ")
|
62 |
+
dynamic_predictor_main(pretrained='Kai422kx/das3r', dir_path=imgs_path, output_dir=output_path, use_pred_mask=True, n_iter=150)
|
63 |
+
rearrange_main(output_dir=output_path, rearranged_path = rearranged_path)
|
64 |
+
train_main(s = rearranged_path, m = rearranged_path, iter = 2000)
|
65 |
+
render_main(s = rearranged_path, m = rearranged_path, iter = 2000, get_video = True)
|
66 |
|
67 |
|
68 |
|