重现步骤
根据 YOLO大作战 训练部署模型
使用模型转换脚本工具时报错
python to_kmodel.py --target k230 --model ../../runs/detect/train/weights/best.onnx --dataset ../test --input_width 320 --input_height 320 --ptq_option 0
期待结果和实际结果
软硬件版本信息
windows11
anaconda3
Python 3.10.16
dotnet 7.0.410
nncase 2.9.0
错误日志
Traceback (most recent call last):
File "D:\workspace\repo\ultralytics\test_yolov8\detect\to_kmodel.py", line 7, in <module>
import nncase
File "D:\software\anaconda3\envs\pytorch\lib\site-packages\nncase\__init__.py", line 34, in <module>
import _nncase
ImportError: DLL load failed while importing _nncase: 找不到指定的模块。
尝试解决过程
补充材料