caizhongang / SMPLer-X

Official Code for "SMPLer-X: Scaling Up Expressive Human Pose and Shape Estimation"

Home Page:https://caizhongang.github.io/projects/SMPLer-X/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NameError: name 'main' is not defined. Did you mean: 'min'?

mmmmmminChi opened this issue · comments

Hi, while I was trying the hugging face branch on my local pc, it shows up an Error: "NameError: name 'main' is not defined. Did you mean: 'min'?", This really confused me, wondering if anyone faced this problem before? Thanks.
main-min

And if I used the command down below after spliting test_video.mp4 into pictures, it showed nothing (no any error or output informations). I cannot even know what to do with this, please help me. Thanks.

python main/inference.py --num_gpus 1 --exp_name output/demo_inference_test_video --pretrained_model /home/mitchell/SMPLer-X-huggingface/pretrained_models/smpler_x_h32 --agora_benchmark agora_model --img_path /home/mitchell/SMPLer-X-huggingface/demo/images/test_video --start 1 --end 527 --output_folder /home/mitchell/SMPLer-X-huggingface/demo/results/test_video/img --show_verts --show_bbox --save_mesh

Hi, this branch is designed for mmcv>=2.0.0 and gradio use, if you want to inference with this branch, you should look into the application.

The script in main/inference.py only creates the inferencer, which you need call that to inference.