Closed YeziXuannao closed 2 years ago
Hi @YeziXuannao ,
please provide these:
Hi @Iffa-Meah , I've solved the problem, Thanks for your attention!
@YeziXuannao Hi, I came to the same problem yolov5 FP32 works well but It can detection nothing after INT8 could you tell me what the solution is ? thanks
@YeziXuannao Hi, I came to the same problem yolov5 FP32 works well but It can detection nothing after INT8 could you tell me what the solution is ? thanks
Hi, @goodtogood My problem is I convert the model by myself instead of using the export.py in the yolov5 project. The pytorch compatibility not worked correctly. It can't recognize the class Detect and the class Model. So the value of inplace attribute is incorrect. You can find the compatible operation in the 100 line of the yolov5/models/experimental.py Hope that can help you!
@YeziXuannao thanks for your information! I will take a look. my problem is a little different from yours. the score is very very low after INT8 but not zero. DefaultQuantization was used. but yolox works well after quantization in same way. currently I did not find what the problem is
@YeziXuannao Hi, I came to the same problem yolov5 FP32 works well but It can detection nothing after INT8 could you tell me what the solution is ? thanks
Hi, @goodtogood My problem is I convert the model by myself instead of using the export.py in the yolov5 project. The pytorch compatibility not worked correctly. It can't recognize the class Detect and the class Model. So the value of inplace attribute is incorrect. You can find the compatible operation in the 100 line of the yolov5/models/experimental.py Hope that can help you!
Hi @YeziXuannao , I've run into the same quantization issue where detection area is 0(height and width of the bounding box is 0). In my case, I first converted the yolov5s.pt model to .onnx file using torch apis as documented here. This gives me an onnx model that I then convert to FP32 OpenVINO IRs using model optimizer. Until this point, the detections are fine. Once I quantize these IRs, I dont get the detections at all.
Did you follow the same approach as mine? At what point you had to use export.py that solved your issue ? As I am aware, export.py can get onnx as well as openvino IRs as output
嗨,@Iffa-米亚,我已经解决了这个问题,感谢您的关注!
嗨,你好!你是怎么解决openvino转换成int8后有问题的?我转换成int8后map是0
System information (version)
Detailed description
Hello, there. I have an openvino model to recongnize person body and it worked quite nice. Now I want to quantize the openvino model to int8. And I'm experiencing a problem. The int8 model can't find any person body!(height and width of the bounding box is 0) I tried command line interface and PTOT API, there is no one worked. I searched a lot of information, but came up empty. Is there anyone could help me?
Steps to reproduce
PTOT API code
Command line
Use the command
pot -c /ye/yolov5s.json
yolov5s.jsonconfiguration.yaml