microsoft / onnxruntime

ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator
https://onnxruntime.ai
MIT License
14.24k stars 2.87k forks source link

[onnxruntime] - session.run return negative number #8104

Open huyhoangle86 opened 3 years ago

huyhoangle86 commented 3 years ago

Hi, I converted my Scaled YOLOv4 csp pytorch model which trained on custom datasets to Darknet using this function (https://github.com/WongKinYiu/ScaledYOLOv4/blob/yolov4-csp/models/models.py#L647) from that convert Darket weight to ONNX using this repo(https://github.com/linghu8812/tensorrt_inference/tree/master/Yolov4) Finally I got Scaled YOLOv4 csp ONNX version. Then I started inference the onnx model but when I execute session.run it gives me negative result as in the pic bellow which strongly affected performance of model causes detect bouding boxes to be incorrect. what do you think?

image

System information

huyhoangle86 commented 3 years ago

helppp

faxu commented 3 years ago

Can you share your converted ONNX model that you're running?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale due to inactivity and will be closed in 7 days if no further activity occurs. If further support is needed, please provide an update and/or more details.