yolov5s detect转kmodel遇到问题

Viewed 414

我的环境:
python 3.10

(nncase) F:\Download>dotnet --version
7.0.410
报错:
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)

4 Answers

应该是没有装nncase-kpu

试了一下,确实是没转kpu的包,转成了,谢谢

加上 --target k230 试试

有点奇怪,明天帮你看一下

加了也不行捏 (nncase) D:\YOLOV_items\yolov5\test_yolov5\detect>python to_kmodel.py --model D:\YOLOV_items\yolov5-master\yolov5-master\runs\train\rescure_6\weights\best.onnx --dataset C:\Users\user\Desktop\dataset\test\images --input_width 640 --input_height 640 --target k230

Unhandled exception. System.Collections.Generic.KeyNotFoundException: The

请问转换代码是从哪里获取的?是否改过代码?把转换代码发过来