-
Notifications
You must be signed in to change notification settings - Fork 993
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
在执行tools/optimize/yolov5s-opt.py时报错 #1176
Comments
+1 cmd:python3 yolov5s-opt.py --input yolov5s.v5.onnx --output yolov5s.v5.opt.onnx --in_tensor 167 --out_tensor 397,458,519 --verbose ---- Tengine YOLOv5 Optimize Tool ---- Input model : yolov5s.v5.onnx |
把onnx模型用https://netron.app/ 可视化,看这三个输出的代号,然后替换掉out_tensor的参数值 |
在对yolov5转的onnx模型进行优化时报错,请问是不是预训练模型更新了,优化的代码没有更新?
---- Tengine YOLOv5 Optimize Tool ----
Input model : yolov5s.v4.onnx
Output model : yolov5s.v4.opt.onnx
Input tensor : 167
Output tensor : 381,420,459
[Quant Tools Info]: Step 0, load original onnx model from yolov5s.v4.onnx.
256
[Quant Tools Info]: Step 1, Remove the focus and postprocess nodes.
Traceback (most recent call last):
File "yolov5s-opt.py", line 222, in
main()
File "yolov5s-opt.py", line 184, in main
new_nodes = cut_focus_output(old_node, in_tensor, out_tensor)
File "yolov5s-opt.py", line 82, in cut_focus_output
output_pass[node_dict[out_name[i]]] = 2
KeyError: '381'
The text was updated successfully, but these errors were encountered: