the yolov5 model performance runned by DJL is poor #3378
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Are you using our model zoo model? Our model zoo won't be able to detect Chinese word. How you convert your model? Can you share your model and code for both java and Python? |
Beta Was this translation helpful? Give feedback.
-
Most likely this is related to You might need to check if the Pipeline is matching what you are using in the python code. Can you share your model and python code? |
Beta Was this translation helpful? Give feedback.
-
The current Yolov5Translator resize the image to 640x640, but You can manually pad your image to 640x640, and you will get the same result. I created a PR to add a
|
Beta Was this translation helpful? Give feedback.
@zhangkai253
The current Yolov5Translator resize the image to 640x640, but
detect.py
pad the image to 640x640, this causing detection quality reduced.You can manually pad your image to 640x640, and you will get the same result.
I created a PR to add a
CenterFit
image operation to solve this issue: #3425Once this PR is merged you can use the follow code to get the result: