- 收藏
- 点赞
- 分享
- 举报
使用rknn_toolkit_v1.7.3将yolov5的onnx转rknn报错
========== parser_config ==========
NPU_VERSION: 1
RK_device_platform: RV1109
input_example: [{‘in_0’: ‘./../../../../../datasets/COCO/val1/coil2_67.jpg’}] …
pre_compile: online
core_mask: 1
config:
target_platform: RV1109
quantized_dtype: asymmetric_affine-u8
quantized_algorithm: normal
optimization_level: 3
mean_values: [[0, 0, 0]]
std_values: [[255, 255, 255]]
mmse_epoch: 3
do_sparse_network: True
output_optimize: 0
batch_size: 100
quantize_input_node: False
merge_dequant_layer_and_output_node: False
force_builtin_perm: False
reorder_channel: 0 1 2
export_rknn:
export_path: ./model_cvt/RV1109_1126/best_RV1109_1126_u8.rknn
verbose: False
dataset: ./../../../../../datasets/COCO/VOC_dataset_1.txt
quantize: True
build:
do_quantization: True
dataset: ./../../../../../datasets/COCO/VOC_dataset_1.txt
model_framework: onnx
load:
model: ./best.onnx
inputs:
in_0:
shape: [3, 640, 640]
mean_values: [0, 0, 0]
std_values: [255, 255, 255]
img_type: RGB
outputs:
export_pre_compile_path: ./model_cvt/RV1109_1126/best_RV1109_1126_u8_precompile.rknn
—-> Create RKNN object
—-> Seting RKNN config
—-> Loading onnx model
W Call onnx.optimizer.optimize fail, skip optimize
W Please confirm that your onnx opsetversion <= 11 (current opsetverison = 12)!!!
E Calc node Conv : /model.0/conv/conv/Conv output shape fail
E Catch exception when loading onnx model: ./best.onnx!
E Traceback (most recent call last):
E File “rknn/base/RKNNlib/onnx_ir/onnx_numpy_backend/shape_inference.py”, line 65, in rknn.base.RKNNlib.onnx_ir.onnx_numpy_backend.shape_inference.infer_shape
E File “rknn/base/RKNNlib/onnx_ir/onnx_numpy_backend/ops/conv.py”, line 49, in rknn.base.RKNNlib.onnx_ir.onnx_numpy_backend.ops.conv.Conv
E ModuleNotFoundError: No module named ‘torch’
E During handling of the above exception, another exception occurred:
E Traceback (most recent call last):
E File “rknn/base/RKNNlib/app/importer/import_onnx.py”, line 118, in rknn.base.RKNNlib.app.importer.import_onnx.Importonnx.run
E File “rknn/base/RKNNlib/converter/convert_onnx.py”, line 115, in rknn.base.RKNNlib.converter.convert_onnx.convert_onnx.__init
E File “rknn/base/RKNNlib/converter/convert_onnx.py”, line 1161, in rknn.base.RKNNlib.converter.convert_onnx.convert_onnx._shape_inference
E File “rknn/base/RKNNlib/onnx_ir/onnx_numpy_backend/shape_inference.py”, line 70, in rknn.base.RKNNlib.onnx_ir.onnx_numpy_backend.shape_inference.infer_shape
E File “rknn/api/rknn_log.py”, line 323, in rknn.api.rknn_log.RKNNLog.e
E ValueError: Calc node Conv : /model.0/conv/conv/Conv output shape fail
E Please feedback the detailed log file
E You can also check github issues: https://github.com/rockchip-linux/rknn-toolkit/issues
—-> Building
Traceback (most recent call last):
File “../../../../../common/rknn_converter/rknn_convert.py”, line 79, in
convert(config_dict, args)
File “../../../../../common/rknn_converter/rknn_convert.py”, line 19, in convert
rknn = cp.convert()
File “/home/hjh/Downloads/rknn_model_zoo/common/rknn_converter/phase.py”, line 111, in convert
rknn.build(**model_config_dict[‘build’])
File “/home/hjh/Downloads/software/Anaconda3/envs/rknn_py36/lib/python3.6/site-packages/rknn/api/rknn.py”, line 262, in build
inputs = self.rknn_base.net.get_input_layers()
AttributeError: ‘NoneType’ object has no attribute ‘get_input_layers’
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
-
2022-10-17 16:07:54
-
2023-09-01 14:45:48
-
2022-07-08 08:50:54
-
2023-12-27 14:40:55
-
2023-07-20 17:40:06
-
2023-02-21 15:19:44
-
2023-09-01 11:15:55
-
2024-06-26 15:37:13
-
2024-03-02 14:58:21
-
2024-07-29 21:31:26
-
2023-05-29 10:39:26
-
2023-11-13 15:00:23
-
2023-12-06 10:07:19
-
2023-11-21 11:16:09
-
2023-06-29 10:19:23
-
2022-10-24 14:22:12
-
2024-01-17 11:16:28
-
2024-02-19 14:27:37
-
2023-07-18 10:10:17
-
5Hi3516CV610 如何使用SD卡升级固件
-
5cat /dev/logmpp 报错 <3>[ vi] [func]:vi_send_frame_node [line]:99 [info]:vi pic queue is full!
-
50如何获取vpss chn的图像修改后发送至vo
-
5FPGA通过Bt1120传YUV422数据过来,vi接收不到数据——3516dv500
-
50SS928 运行PQtools 拼接 推到设备里有一半画面会异常
-
53536AV100的sample_vdec输出到CVBS显示
-
10海思板子mpp怎么在vi阶段改变视频数据尺寸
-
10HI3559AV100 多摄像头同步模式
-
9海思ss928单路摄像头vio中加入opencv处理并显示
-
10EB-RV1126-BC-191板子运行自己编码的程序
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明