-
Notifications
You must be signed in to change notification settings - Fork 43
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
yolov3-ocr.cfg does not have down_stride #12
Comments
The python file - libtorch_onnx_tensorrt_yolo |
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
main()
File "Libtorch_yolo_to_onnx.py", line 771, in main
model_def = builder.build_onnx_graph(
File "Libtorch_yolo_to_onnx.py", line 353, in build_onnx_graph
major_node_specs = self._make_onnx_node(layer_name, layer_dict)
File "Libtorch_yolo_to_onnx.py", line 426, in _make_onnx_node
node_creators[layer_type](layer_name, layer_dict)
File "Libtorch_yolo_to_onnx.py", line 729, in _make_yolo_node
down_stride = int(layer_dict['down_stride'])
KeyError: 'down_stride'
many thanks!
-Scott
The text was updated successfully, but these errors were encountered: