Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mmmmmminChi opened this issue May 1, 2024 · 2 comments
Open

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

mmmmmminChi opened this issue May 1, 2024 · 2 comments

Comments

@mmmmmminChi
Copy link

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

@mmmmmminChi
Copy link
Author

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

@Wei-Chen-hub
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants