-
Notifications
You must be signed in to change notification settings - Fork 25
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
long picture detection wrong #58
Comments
Can you send the test images and the model so I can test to find the issue and try to fix it ? |
Of course https://drive.google.com/file/d/1gp6wucf_sNBLBEQu2lI4oxXr9MKWt5gw/view?usp=drive_link this is the shared link Also invated you as collaborator to team, incase this link not work 😁 |
is this a yolov8 or yolov5? |
i found out its yolov5, in detect.py did you use the same model torch script like the one in the app? |
yes, exactly, you can run |
running the model doest even run and outputs
|
Saw this issue ultralytics/ultralytics#2465, which might provide infomation helped @guotao |
Thanks for repling, I found this may help ,would you have a try? And also , I have upload a model exported without argument --optimize, you can have a try if above method not work, thanks。 |
Does the models exported work and detect the image like how you want?? On detect.py Since I think the exporting to torch script reduces accuracy by small factor, which is why I think it's the problem |
these were result on detect.py and on pytorch_lite, there were big difference。 |
The point is I followed the official java example , and both of my implementations give me the same results, this is why I am thinking it's a model problem that's all, Sorry If I was not able to help, will check it again when I got time |
can you check again using the last version, some stuff was changed and i dont know if the problem is still there or not |
Hello, I use yolov5 for long picture detection like this :
when I use python (detect.py), the result is right:
while in mobile device,I use
_objectModel.getImagePrediction
and then_objectModel.renderBoxesOnImage
, the result is wrong,This is the result in example code, just change the model and label files,and also change "nc" config in
PytorchLite.loadObjectDetectionModel
function callFor nomal size image, for example 600* 400, the result is fine, Is there any config can fix this issue? thanks 。
The text was updated successfully, but these errors were encountered: