Error when using different image sizes after loading model!
KhanhDinhDuy opened this issue · 3 comments
KhanhDinhDuy commented
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 commented
If image sizes is different, we must load the model with the different sizes.
Or you can refactor code of preprocess.
KhanhDinhDuy commented
Thanks you!!!!
xuguozhi commented
before inference, add resize will be ok