android-demo-app icon indicating copy to clipboard operation
android-demo-app copied to clipboard

getting bad prediction with torchlite model (torchscript.ptl) when compared to pytorch model (.pt)....

Open Heena-S-Patel opened this issue 2 years ago • 3 comments

I have imaplemented yolov3 model on custom dataset...When I test my model with .pt, it runs accurately on python script with detect.py file....However, when I converted it to torchscript.ptl format and run it in this project it provides wrong prediction...Also. this project doesn't support to run .pt file ...It's my kind request to provide solution for it...

Heena-S-Patel avatar May 18 '22 11:05 Heena-S-Patel

Can anyone please give solution to my issue...?

Heena-S-Patel avatar May 19 '22 05:05 Heena-S-Patel

Same problem, detect.py ok. The result on ”ObjectDetection App“ very bad after converted by export.py.

geekli avatar Jul 01 '22 16:07 geekli

I found the reason, because I set wrong value to mOutputColumn. It should be 4+1+classes.size() private static int mOutputColumn = 9+5; // left, top, right, bottom, score and xxx class probability

geekli avatar Jul 01 '22 23:07 geekli