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

Error when using different image sizes after loading model! #74

Closed
KhanhDinhDuy opened this issue May 9, 2020 · 3 comments
Closed

Error when using different image sizes after loading model! #74

KhanhDinhDuy opened this issue May 9, 2020 · 3 comments

Comments

@KhanhDinhDuy
Copy link

Hello, I am facing an issue of getting wrong result when using your demo.py file in this folder "prj-python". Firstly, I load the model. After that, I check the results with different image sizes in a folder. The first image is ok, but then I only get very bad results with other images that have different sizes with the first one.
Please help me with this problem.
Thank you

@ywlife
Copy link
Member

ywlife commented May 10, 2020

If image sizes is different, we must load the model with the different sizes.
Or you can refactor code of preprocess.

@KhanhDinhDuy
Copy link
Author

Thanks you!!!!

@xuguozhi
Copy link

before inference, add resize will be ok

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