根据yolo大作战,安装完一系列环境,仍然不能把onnx转换成kmodel

Viewed 257

期待结果和实际结果

软硬件版本信息

错误日志

尝试解决过程

补充材料

2 Answers

那个*是要你自己替换成对应的版本的

放错图片了,那个问题已经解决,目前是这样的best.onnx" --dataset ../test --input_width 320 --input_height 320 --ptq_option 0
warn: Nncase.Hosting.PluginLoader[0]
NNCASE_PLUGIN_PATH is not set.
to_kmodel.py:25: DeprecationWarning: mapping.TENSOR_TYPE_TO_NP_TYPE is now deprecated and will be removed in a future release.To silence this warning, please use helper.tensor_dtype_to_np_dtype instead.
input_dict['dtype'] = onnx.mapping.TENSOR_TYPE_TO_NP_TYPE[onnx_type.elem_type]
WARNING: The argument input_shapes is deprecated. Please use overwrite_input_shapes and/or test_input_shapes
instead. An error will be raised in the future.
Unhandled exception. System.Collections.Generic.KeyNotFoundException: The given key 'k230' was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Nncase.Targets.TargetProvider.GetTarget(String name)
at Nncase.CompilerServicesProvider.GetTarget(String name)
at Nncase.Compiler.Interop.CApi.TargetCreate(Byte* targetNamePtr, UIntPtr targetNameLength)

请问上面图片的问题是怎么解决的呢

这个模型转换只能使用python3.7。需要把自己原来的python版本环境变量后移