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