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

Human Pose estimation-001 model input size mismatch #3908

Closed
Ai-econ opened this issue Feb 7, 2024 · 5 comments
Closed

Human Pose estimation-001 model input size mismatch #3908

Ai-econ opened this issue Feb 7, 2024 · 5 comments
Assignees

Comments

@Ai-econ
Copy link

Ai-econ commented Feb 7, 2024

Model input size mentioned in accuracy-check yaml file was not aligned with model input size mentioned in Readme.
What is actual model input size for the accuracy so that we able to achieve 42% map and is it AP 0.5 or AP 0.5-0.95

Accuracy-check yaml: [https://github.com/openvinotoolkit/open_model_zoo/blob/270dcb5d995b7b5f1db2c08c0db3283a78393e42/models/intel/human-pose-estimation-0001/accuracy-check.yml#L17]

README:[https://github.com/openvinotoolkit/open_model_zoo/blob/270dcb5d995b7b5f1db2c08c0db3283a78393e42/models/intel/human-pose-estimation-0001/README.md?plain=1#L28]

@Wovchena
Copy link
Collaborator

Wovchena commented Feb 7, 2024

The size specified in accuracy-check.yml is actual model input size for the accuracy so that we able to achieve 42% map. README.md states the shape that you get after the model is converted. That's a common "technique" when shape for inference doesn't match the shape for accuracy.

@Ai-econ
Copy link
Author

Ai-econ commented Feb 7, 2024

Thanks a lot for quick response

@Ai-econ Ai-econ closed this as completed Feb 7, 2024
@eaidova
Copy link
Collaborator

eaidova commented Feb 7, 2024

@Ai-econ for achieving accurate results model required preserving aspect ratio of input image, during accruacy validation model input was reshaped according provided preprocessing rules

@Ai-econ Ai-econ reopened this Feb 7, 2024
@Ai-econ
Copy link
Author

Ai-econ commented Feb 7, 2024

@eaidova Where i can find preprocessing rules or guidelines so we can follow the same

If i am not wrong, model was trained with higher resolution which results in good accuracy. However if we deploy the model with lower resolution just by converting model input shape will leads to decrease my accuracy and issue in extracting features right ?

@eaidova
Copy link
Collaborator

eaidova commented Feb 8, 2024

@Ai-econ they provided in accuracy checker config preprocessing section. Image resized with preserving aspect ratio, where height size will be 368 and width resized according to these rules

def scale_width(dst_width, dst_height, image_width, image_height,):
and then if image height or width not divisible to 8, it will be additionally padded.

To sum up, resolution used for accuracy evaluation will depends from image size and it is bigger then provided by default (in model, default height - 256, while in accuracy - 368).

@eaidova eaidova closed this as completed Feb 28, 2024
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