I have a question about developing a custom model

I’m currently working on Tutorial-of-AI-Kit-with-Raspberry-Pi-From-Zero-to-Hero/articles/Chapter 5 - Custom Model Development and Deployment.
I want to connect Google Drive to Colab and use Google Drive.


Save to har model

hailo_model_har_name = f"/content/drive/My Drive/models/{onnx_model_name}_hailo_model.har"

runner.save_har(hailo_model_har_name)
[info] Saved HAR to: /content/drive/My Drive/models/yolov11n_hailo_model.har

The above code successfully saves the model to Google Drive.

Use hailo command to parse the model

!hailo visualizer /content/drive/My Drive/models/{onnx_model_name}_hailo_model.har

[info] Current Time: 05:26:32, 11/17/24
[info] CPU: Architecture: x86_64, Model: Intel(R) Xeon(R) CPU @ 2.20GHz, Number Of Cores: 2, Utilization: 3.5%
[info] Memory: Total: 12GB, Available: 10GB
[info] System info: OS: Linux, Kernel: 6.1.85+
[info] Hailo DFC Version: 3.28.0
[info] HailoRT Version: Not Installed
[info] PCIe: No Hailo PCIe device was found
[info] Running hailo visualizer /content/drive/My Drive/models/yolov11n_hailo_model.har
usage: hailo [-h] [–version]
{analyze-noise,compiler,params-csv,parser,profiler,optimize,tb,visualizer,tutorial,har,join,har-onnx-rt,runtime-profiler,dfc-studio,help}

hailo: error: unrecognized arguments: Drive/models/yolov11n_hailo_model.har

However, the above code doesn’t seem to be able to retrieve files from Google Drive.
We are looking for the cause and solution.

It looks like there is a space character in your path. Therefore the command parser sees the second part of the path to your har file as a separate argument.

Use path without spaces or use double quotes around them. This should solve this issue.

1 Like

Thanks for your reply. I’ll try again as you suggested. Have a nice day.