onnx_tensorrt_project
onnx_tensorrt_project copied to clipboard
yolov3-ocr.cfg does not have down_stride
Hi, I tried to transfer yolo3-spp pt file to onnx, and here is the error:
Traceback (most recent call last):
File "Libtorch_yolo_to_onnx.py", line 779, in
many thanks!
-Scott
The python file - libtorch_onnx_tensorrt_yolo
look https://github.com/ttanzhiqiang/onnx_tensorrt_project/blob/main/model/darknet_onnx_tensorrt_yolo/yolov3.cfg
yolov3 and yolov3-spp are different. yolov3-spp does not have that. In what you provide about Libtorch_yolo_to_onnx.py and yolov3-ocr.cfg also have the same issue.
Using netron, view the network. In your yolo Plugin,add down_stride(down_stride = (input / output_feature)).