Which Khadas SBC do you use?
**Delete this line and post your answer here.**
Which system do you use? Android, Ubuntu, OOWOW or others?
Ubuntu
Which version of system do you use? Khadas official images, self built images, or others?
Khadas official images
Please describe your issue below:
I try to convert yolov5s.pt to yolov5s.nb with the command:
./convert --model-name yolov5s --platform pytorch --model /home/liudongbo/A311d/NPU/aml/aml_npu_sdk/acuity-toolkit/python/yolov5/yolov5s.pt --input-size-list '3,640,640' --mean-values '103.94 116.78 123.68 0.01700102' --quantized-dtype asymmetric_affine --source-files ./data/dataset/dataset0.txt --kboard VIM3 --print-level 1
However , it failed and return as below:
--+ KSNN Convert tools v1.3 +--
Start import model ...
2023-04-11 15:23:20.510531: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'libcudart.so.10.1'; dlerror: libcudart.so.10.1: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /home/liudongbo/A311d/NPU/aml/aml_npu_sdk/acuity-toolkit/bin/acuitylib:/tmp/_MEIqyRsDl
2023-04-11 15:23:20.510558: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
I Namespace(config=None, import='pytorch', input_size_list='3,640,640', inputs=None, model='/home/liudongbo/A311d/NPU/aml/aml_npu_sdk/acuity-toolkit/python/yolov5/yolov5s.pt', output_data='Model.data', output_model='Model.json', outputs=None, size_with_batch=None, which='import')
I Start importing pytorch...
[3534633] Failed to execute script pegasus
Traceback (most recent call last):
File "pegasus.py", line 131, in <module>
File "pegasus.py", line 112, in main
File "acuitylib/app/importer/commands.py", line 294, in execute
File "acuitylib/vsi_nn.py", line 242, in load_pytorch_by_onnx_backend
File "acuitylib/onnx_ir/frontend/pytorch_frontend/pytorch_frontend.py", line 45, in __init__
File "torch/jit/__init__.py", line 228, in load
RuntimeError: [enforce fail at inline_container.cc:208] . file not found: archive/constants.pkl
What can i do next ? could anybody help me please ?
Post a console log of your issue below:
**Delete this line and post your log here.**