求助大佬,我在电脑pc训练好了YOLOv8模型并且成功转换到了onnx格式,但是在虚拟机上转换到hef格式却经常报错,现在有一个问题它提示缺少了一个文件,但是我完全是按照官方的文档去安装的,并且重新安装了几次,还是报错pi@AYAKA:~$ hailomz compile yolov8s --ckpt=best.onnx --hw-arch hailo8 --calib-path /home/pi/train_fail/test/images/ --cl
asses 6 --performance
[warning] Cannot use graphviz, so no visualizations will be created
Start run for network yolov8s …
Initializing the hailo8 runner…
[info] Translation started on ONNX model yolov8s
[info] Restored ONNX model yolov8s (completion time: 00:00:00.30)
[info] Extracted ONNXRuntime meta-data for Hailo model (completion time: 00:00:00.87)
[info] Simplified ONNX model for a parsing retry attempt (completion time: 00:00:01.56)
[info] According to recommendations, retrying parsing with end node names: [‘/model.22/Concat_3’].
[info] Translation started on ONNX model yolov8s
[info] Restored ONNX model yolov8s (completion time: 00:00:00.13)
[info] Extracted ONNXRuntime meta-data for Hailo model (completion time: 00:00:00.74)
[info] NMS structure of yolov8 (or equivalent architecture) was detected.
[info] In order to use HailoRT post-processing capabilities, these end node names should be used: /model.22/cv2.0/cv2.0.2/Conv /model.22/cv3.0/cv3.0.2/Conv /model.22/cv2.1/cv2.1.2/Conv /model.22/cv3.1/cv3.1.2/Conv /model.22/cv2.2/cv2.2.2/Conv /model.22/cv3.2/cv3.2.2/Conv.
[info] Start nodes mapped from original model: ‘images’: ‘yolov8s/input_layer1’.
[info] End nodes mapped from original model: ‘/model.22/Concat_3’.
[info] Translation completed on ONNX model yolov8s (completion time: 00:00:01.07)
[info] Translation started on ONNX model yolov8s
[info] Restored ONNX model yolov8s (completion time: 00:00:00.10)
[info] Extracted ONNXRuntime meta-data for Hailo model (completion time: 00:00:00.68)
[info] NMS structure of yolov8 (or equivalent architecture) was detected.
[info] In order to use HailoRT post-processing capabilities, these end node names should be used: /model.22/cv2.0/cv2.0.2/Conv /model.22/cv3.0/cv3.0.2/Conv /model.22/cv2.1/cv2.1.2/Conv /model.22/cv3.1/cv3.1.2/Conv /model.22/cv2.2/cv2.2.2/Conv /model.22/cv3.2/cv3.2.2/Conv.
[info] Start nodes mapped from original model: ‘images’: ‘yolov8s/input_layer1’.
[info] End nodes mapped from original model: ‘/model.22/cv2.0/cv2.0.2/Conv’, ‘/model.22/cv3.0/cv3.0.2/Conv’, ‘/model.22/cv2.1/cv2.1.2/Conv’, ‘/model.22/cv3.1/cv3.1.2/Conv’, ‘/model.22/cv2.2/cv2.2.2/Conv’, ‘/model.22/cv3.2/cv3.2.2/Conv’.
[info] Translation completed on ONNX model yolov8s (completion time: 00:00:00.99)
[info] Appending model script commands to yolov8s from string
[info] Added nms postprocess command to model script.
[info] Saved HAR to: /home/pi/yolov8s.har
Using generic alls script found in /home/pi/.local/lib/python3.10/site-packages/hailo_model_zoo/cfg/alls/generic/yolov8s.alls because there is no specific hardware alls
Preparing calibration data…
[info] Loading model script commands to yolov8s from /home/pi/.local/lib/python3.10/site-packages/hailo_model_zoo/cfg/alls/generic/yolov8s.alls
Traceback (most recent call last):
File “/home/pi/.local/bin/hailomz”, line 8, in
sys.exit(main())
File “/home/pi/.local/lib/python3.10/site-packages/hailo_model_zoo/main.py”, line 122, in main
run(args)
File “/home/pi/.local/lib/python3.10/site-packages/hailo_model_zoo/main.py”, line 111, in run
return handlersargs.command
File “/home/pi/.local/lib/python3.10/site-packages/hailo_model_zoo/main_driver.py”, line 250, in compile
runner = _ensure_optimized(runner, logger, args, network_info)
File “/home/pi/.local/lib/python3.10/site-packages/hailo_model_zoo/main_driver.py”, line 91, in _ensure_optimized
optimize_model(
File “/home/pi/.local/lib/python3.10/site-packages/hailo_model_zoo/core/main_utils.py”, line 351, in optimize_model
optimize_full_precision_model(runner, calib_feed_callback, logger, model_script, resize, input_conversion, classes)
File “/home/pi/.local/lib/python3.10/site-packages/hailo_model_zoo/core/main_utils.py”, line 319, in optimize_full_precision_model
_handle_classes_argument(runner, logger, classes)
File “/home/pi/.local/lib/python3.10/site-packages/hailo_model_zoo/core/main_utils.py”, line 293, in _handle_classes_argument
with open(orig_path, “r”) as f:
FileNotFoundError: [Errno 2] No such file or directory: ‘/home/pi/.local/lib/python3.10/site-packages/hailo_model_zoo/cfg/alls/generic/../../postprocess_config/yolov8s_nms_config.json’
这些是错误原因,希望有大佬帮我看一下