You literally saved me, Your explanation is too the point and very accurate
@Catapultti2 ай бұрын
Thanks! This video and the full tutorial on the website help a lot.
@cytrontech2 ай бұрын
You're welcome!
@freek36202 ай бұрын
Hi is it possible to also make a tutorial for the instance segmentation? I cant figure out how to run it
@HagerKhaled-l4f9 күн бұрын
Thanks for this useful video I have a question , is it possible to work on Rasp berry pi5 if my project includes object detection using deep learning and we will make the robot walk autonomously using GPS and sensor fusion Is one raspberry pi will be enough or not?
@cytrontech7 күн бұрын
It is possible to run this project on Raspberry Pi 5, but you may need to optimise code and consider using an external processor.
@username_69482 ай бұрын
Amazing video - Could you please please make a tutorial about running custom PyTorch modal on hailo ai kit? Thanks
@cytrontechАй бұрын
You need to export the pytorch file (PT) to ONNX then convert it to .HEF to deploy the model on hailo ai kit
@jomtom1408Ай бұрын
following the instruction I got this error in compiling to hef : hailo_model_optimization.acceleras.utils.acceleras_exceptions.NegativeSlopeExponentNonFixable: Quantization failed in layer yolov8s/conv42 due to unsupported required slope. Desired shift is 9.0, but op has only 8 data bits. This error raises when the data or weight range are not balanced. Mostly happens when using random calibration-set/weights, the calibration-set is not normalized properly or batch-normalization was not used during training.
@cytrontechАй бұрын
try to change your -calib-path to validation image folder (e.g -calib-path valid/images)on this command: hailomz compile yolov8s --ckpt=cybest.onnx --hw-arch hailo8l --calib-path train/images --classes 2 --performance or you can try optimizing the model before compiling 1. hailomz optimize --hw-arch hailo8l --ckpt best.onnx yolov8s 2. hailomz compile --hw-arch hailo8l --har yolov8s.har --calib-path train/images
@JirayuVijjakajohnАй бұрын
Do I need to have at least 16GB of RAM to do this?
@ameralahmad35638 күн бұрын
can I convert any Yolo model? for example Yolov5s or Yolov8m, another question, can Raspberry Pi 5 8GB + Hailo 26 TOP operate AI models as Yolov5,8,11 m and L with 15 FPS or more?
@cytrontechКүн бұрын
Hey, thanks for your questions! 1. Yes, you can convert models like YOLOv5s or YOLOv8m for the Hailo 8L. Just export them to ONNX and then convert to HEF using the Hailo SDK. Some tweaks might be needed based on the model. 2. We haven’t tested that exact setup yet. Even with the increased computational power (13 TOPS to 26 TOPS), the results might vary since larger models like YOLOv8m or YOLOv8l add more processing load compared to smaller ones like YOLOv8s.
@docdav05Ай бұрын
please provide how to install hailo sw suite
@natarajans66918 күн бұрын
Can i use Waveshare IMX219 camera instead of pi cam 3? Will it require any modifications in code? Also can i run the code without the accelerator?
@cytrontech15 күн бұрын
Yes, it is possible to use the Waveshare IMX219 camera for video input. However, running the code requires the Hailo accelerator
@Papst-rj4lt11 күн бұрын
Hey, thanks for the video! My resources only include three files, and none of them contains libyolo_hailortpp_postprocess.so. In your case, it seems to be libyolo_hailortpp_post.so, but I couldn't find it in the repository, not even in older versions. I’m trying to run detection on a downloaded video, but I keep encountering this error: Could not load lib /local/workspace/hailo-rpi5-examples/basic_pipelines/../resources/libyolo_hailortpp_postprocess.so: cannot open shared object file: No such file or directory Cannot load symbol: /opt/hailo/tappas/lib/x86_64-linux-gnu/gstreamer-1.0/libgsthailotools.so: undefined symbol: filter Segmentation fault (core dumped) Do you have any idea or solution for this issue? I should mention that I’m running the Hailo Suite in Docker. Thanks a lot for your help!
@cytrontechКүн бұрын
Hi, thanks for watching the tutorial! The error likely comes from a missing or misplaced library file (libyolo_hailortpp_postprocess.so). Here's what you can try: Ensure you’re using the latest version of the SDK and examples repository. If it’s missing, re-clone the repository or check an older version.
@wk4637Ай бұрын
Hi, please can you assist me? I have this error when converting onnx to hef (9:45): This CPU does not support `avx` instructions, and they are needed to run Tensorflow. It is recommended to run the Dataflow Compiler on another host. Another option is to compile Tensorflow from sources without `avx` instructions. Illegal instruction (core dumped)
@cytrontechАй бұрын
Care to share your computer setup? Specifically, what CPU are you using? This will help us confirm if it supports AVX instructions or not.
@wk4637Ай бұрын
@@cytrontech Hi thanks for replying. I've managed to move on from that stage but am facing another issue now. When running the command (at 9:48), I received an error stating: "The layer yolov8n/conv41 doesn't have one output layer" I'm using the yolov8n model with a single class output. Can you assist in verifying the packages version. Package versions: Python: 3.8.10 hailo-dataflow-compiler: 3.29.0 hailo-model-zoo: 2.13.0 ultralytics: 8.3.15 onnx: 1.12.0
@francoisnoelle40672 ай бұрын
Appreciate this!
@sosome12 ай бұрын
Wow. thank you for taking the time making this video. I will try it out. I have an NVMe ssd connected to PCIe connector. Is it possible to connect both AI kit and nvme ssd to the PCIe connector at the same time?
@cytrontech2 ай бұрын
It’s generally not possible to connect both the Hailo AI Kit and an NVMe SSD directly to the same PCIe connector at the same time because the Raspberry Pi typically has only one PCIe lane available, which can be used by either the AI accelerator or the NVMe SSD, but not both simultaneously. However, here are some potential alternatives: Use a USB-to-NVMe Adapter: You can connect the NVMe SSD via a USB 3.0 adapter to the Raspberry Pi, freeing up the PCIe lane for the Hailo AI kit. Waveshare PCIe to 2-CH M.2 HAT+: This HAT allows you to connect two M.2 devices to the Raspberry Pi via a single PCIe slot. We haven’t tested this setup, but according to the Waveshare wiki, it should work, though with reduced performance due to the limited bandwidth of the single PCIe lane. www.waveshare.com/wiki/PCIe_TO_2-CH_M.2_HAT+#FAQ
@saitmetinyurdakul5092Ай бұрын
hello sir i have this error when converting onnx to hef can you assist me please: hailo_sdk_client.tools.core_postprocess.nms_postprocess.NMSConfigPostprocessException: The layer yolov8s/conv41 doesn't have one output layer
what if I want to do something with the detections of the model, how can I use python to run the model and process the outputs?
@cytrontech15 күн бұрын
You can check out this tutorial we created, where we demonstrate how to use the model's detections to trigger actions like turning on an LED, sounding an alarm, or performing other tasks when a specific object is detected. It’s a hands-on project that should give you a clear idea of how to process model outputs in Python. my.cytron.io/tutorial/raspberry-pi-ai-kit-human-notification-with-comput
@rohanmazumder92 ай бұрын
Can't we do it with just the onnx files? I don't have the training data only the models.
@cytrontech2 ай бұрын
Yes, it's possible to work with just the ONNX model files without needing the original training data. You can directly convert the ONNX file to HEF.
@rohanmazumder92 ай бұрын
@@cytrontech any links on how to do it
@HarshitGautam-bj3lcАй бұрын
@@cytrontech Can you guide me how to do so as i don't have training data with me kindly help.
@cytrontechАй бұрын
@@HarshitGautam-bj3lc you can follow this tutorial : my.cytron.io/tutorial/raspberry-pi-ai-kit-onnx-to-hef-conversion
@cytrontechАй бұрын
@@rohanmazumder9 here : my.cytron.io/tutorial/raspberry-pi-ai-kit-onnx-to-hef-conversion
@saitmetinyurdakul5092Ай бұрын
Hello, thank you for the video. How many fps did you get?
@cytrontechАй бұрын
avg 30fps
@gregorymoore76172 ай бұрын
Thank you very much for the video! I am getting stuck on compiling the .ONNX model to .HEF using HailoDFC. I get errors about the IR version being too high and when I downgrade it to 8, then the error is about Opset being too high (is 19, needs to be 17). Has anyone else run in to this?
@cytrontech2 ай бұрын
This issue typically arises due to version mismatches between the ONNX file and the Hailo SDK, particularly with the Intermediate Representation (IR) and Opset versions. You may try to simplify the model using onnx-simplifier.
@freek36202 ай бұрын
When exporting the model from pt to onnx, you can declare the opset version Model.export(format="onnx", opset=17)
@Prashant-wj9jkАй бұрын
Sir how to use onnx simplifire
@HarshitGautam-bj3lcАй бұрын
Simply use "pip install --upgrade onnx" this command in the environment and you will be good to go
@wk4637Ай бұрын
Hi, I'm currently facing a similar problem of ir_version being too high. Can you share how did you downgrade the version to 8? TIA
@TasosManolidisАй бұрын
when i try to run the Custom training came error TypeError: unhashable type: 'numpy.ndarray' you know how to fix that?
@cytrontechАй бұрын
Ensure your dataset is correctly formatted, and check the data.yaml file to confirm it’s correctly referencing the paths to your training, validation, and test sets. Are you exporting the dataset in YOLOv8 format?
@TasosManolidisАй бұрын
@@cytrontech i fint it the problem is here !pip install albumentations==1.4
@cytrontechАй бұрын
@@TasosManolidis you can join our forum here : forum.cytron.io/
@SrujanLakkam2 ай бұрын
Could you please help me I am getting this error. raise NegativeSlopeExponentNonFixable( hailo_model_optimization.acceleras.utils.acceleras_exceptions.NegativeSlopeExponentNonFixable: Quantization failed in layer yolov8m/conv83 due to unsupported required slope. Desired shift is 14.0, but op has only 8 data bits. This error raises when the data or weight range are not balanced. Mostly happens when using random calibration-set/weights, the calibration-set is not normalized properly or batch-normalization was not used during training. I followed your tutorial as it is. Kindly help me. Thanks.
@cytrontech2 ай бұрын
hi you can check full tutorial here : my.cytron.io/tutorial/raspberry-pi-ai-kit-custom-object-detection-with-h?r=1
@cytrontechАй бұрын
Try to modify the .alls file by adding this line quantization_param([conv42, conv53, conv63], force_range_out=[0.0, 1.0]) You can refer to hailo forum discussion. community.hailo.ai/t/problem-with-model-optimization/1648
@SrujanLakkamАй бұрын
@@cytrontech thank you so much for your response.
@SrujanLakkamАй бұрын
@@cytrontech could you please help me I am getting below error. raise NMSConfigPostprocessException(f"The layer {encoded_layer.name} doesn't have one output layer") hailo_sdk_client.tools.core_postprocess.nms_postprocess.NMSConfigPostprocessException: The layer yolov8s/conv41 doesn't have one output layer.
@cytrontechАй бұрын
@@SrujanLakkam you can join our forum here : forum.cytron.io/