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

help #19

Open
731076467 opened this issue Aug 10, 2022 · 3 comments
Open

help #19

731076467 opened this issue Aug 10, 2022 · 3 comments

Comments

@731076467
Copy link

Hello, I have tested the coco test image, but what should I do if I want to test my own image and want to get its key points to see the effect?

@jxhnx
Copy link

jxhnx commented Aug 10, 2022

I wrote a quick addition to test a directory with custom images, you can find it here: https://github.com/random9v2/litepose/tree/test_img_dir

You will have to install natsort via conda/pip. For running the code, choose your image directory and run it, e.g., with:

python valid.py --cfg experiments/crowd_pose/mobilenet/mobile.yaml --superconfig mobile_configs/search-XS.json TEST.MODEL_FILE checkpoints/LitePose-Auto-XS_crowd.pth.tar DATASET.DATASET_TEST image_dir DATASET.ROOT dataset/my_img/ PRINT_FREQ 1

@731076467
Copy link
Author

I wrote a quick addition to test a directory with custom images, you can find it here: https://github.com/random9v2/litepose/tree/test_img_dir

You will have to install natsort via conda/pip. For running the code, choose your image directory and run it, e.g., with:

python valid.py --cfg experiments/crowd_pose/mobilenet/mobile.yaml --superconfig mobile_configs/search-XS.json TEST.MODEL_FILE checkpoints/LitePose-Auto-XS_crowd.pth.tar DATASET.DATASET_TEST image_dir DATASET.ROOT dataset/my_img/ PRINT_FREQ 1

Although I wrote one myself, thank you very much for your help!

@luojianp
Copy link

luojianp commented Feb 24, 2023

I wrote a quick addition to test a directory with custom images, you can find it here: https://github.com/random9v2/litepose/tree/test_img_dir
You will have to install natsort via conda/pip. For running the code, choose your image directory and run it, e.g., with:

python valid.py --cfg experiments/crowd_pose/mobilenet/mobile.yaml --superconfig mobile_configs/search-XS.json TEST.MODEL_FILE checkpoints/LitePose-Auto-XS_crowd.pth.tar DATASET.DATASET_TEST image_dir DATASET.ROOT dataset/my_img/ PRINT_FREQ 1

Although I wrote one myself, thank you very much for your help!

I have the same problem and if I want to test my own image. Do you have the correct inference code? thanks

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

3 participants