Skip to content

Commit 3ebce70

Browse files
committed
Add ext argument for model file in demo.py
1 parent 7308bf2 commit 3ebce70

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/demo.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ def main(model_folder, model_type='smplx', ext='npz',
6161
help='The type of model to load')
6262
parser.add_argument('--gender', type=str, default='neutral',
6363
help='The gender of the model')
64+
parser.add_argument('--ext', type=str, default='npz',
65+
help='Which extension to use for loading')
6466
parser.add_argument('--plot-joints', default=False,
6567
type=lambda arg: arg.lower() in ['true', '1'],
6668
help='The path to the model folder')
@@ -75,6 +77,8 @@ def main(model_folder, model_type='smplx', ext='npz',
7577
plot_joints = args.plot_joints
7678
use_face_contour = args.use_face_contour
7779
gender = args.gender
80+
ext = args.ext
7881

79-
main(model_folder, model_type, gender=gender, plot_joints=plot_joints,
82+
main(model_folder, model_type, ext=ext,
83+
gender=gender, plot_joints=plot_joints,
8084
use_face_contour=use_face_contour)

0 commit comments

Comments
 (0)