-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error compile yolov8 to hef #111
Comments
Hi @Will-UEA, Regards, |
Please consult on the community forum
בתאריך יום ה׳, 18 ביולי 2024, 08:42, מאת omerwer ***@***.***
…:
Hi @Will-UEA <https://github.com/Will-UEA>,
It's difficult to know what's the issue without examining the model and
the command you ran.
First, try to run the optimization process with optimization level of 0
(you can disable the GPU by adding CUDA_VISIBLE_DEVICES=999 before the
command).
In either case, if you can please open a ticket in out ticketing system in
the Hailo website with the relevant info + files (the ONNX you used, for
example), or contact me via email at ***@***.*** with the relevant
info.
Regards,
—
Reply to this email directly, view it on GitHub
<#111 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADBIQYD2QBA5TJVT65SGFCDZM5IT7AVCNFSM6AAAAABLBYUFTWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZVGU2DOOJTGI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I'll try to do that as soon as I get back from work. Once I do it, I'll come back here |
Should I start a thread there? |
The CLI command I was using was: |
Since the past two or three days I have been trying to compile one custom model to hef. I am facing similar issue I have used docker to do the training on my dataset. Sharing the commands below which i have run on the docker
plz note i have renamed it as yolov8s.onnx as i read this somewhere on github ,link to this I exited the docker and then entered the following command Once i do this i get the following error
I have tried using the model directly in pt format on my system (not on pi5); it works without any issue . I am just a beginner so I am not sure what I am doing incorrectly. |
There's a solution in th forum that might help
https://community.hailo.ai/t/problem-with-model-optimization/1648/31?u=nadav
בתאריך שבת, 20 ביולי 2024, 08:56, מאת Armtronix2021 <
***@***.***>:
… Since the past two or three days I have been trying to compile one custom
model to hef. I am facing similar issue
I have followed the procedure as mentioned in the links below
(
https://github.com/hailo-ai/hailo_model_zoo/tree/833ae6175c06dbd6c3fc8faeb23659c9efaa2dbe/training/yolov8
)
(
https://github.com/hailo-ai/hailo-rpi5-examples/blob/main/doc/retraining-example.md#using-yolov8-retraining-docker
)
I have used docker to do the training on my dataset. Sharing the commands
below which i have run on the docker
For Training :
yolo detect train
data=/home/abc/Image_Processing_Code/Image_Processing_MF_Form_Hailo/MF-object-detection-4/data.yaml
model=[yolov8s.pt](http://yolov8s.pt/) name=MF_yolov8s_n epochs=300
batch=16
For Export to ONNX:
yolo export model=/workspace/ultralytics/runs/detect/MF_yolov8s_n/weights/[
best.pt](http://best.pt/) imgsz=640 format=onnx opset=11
Copying the Model to the regular system from the docker :
cp runs/detect/MF_yolov8s_n/weights/best.onnx
/home/abc/Image_Processing_Code/Image_Processing_MF_Form_Hailo/yolov8s.onnx
plz note i have renamed it as yolov8s.onnx as i read this somewhere on
github ,link to this
(#85 <#85>)
(#94 <#94>)
I exited the docker and then entered the following command
"hailomz compile yolov8s --ckpt
/home/abc/Image_Processing_Code/Image_Processing_MF_Form_Hailo/yolov8s.onnx
--calib-path
/home/abc/Image_Processing_Code/Image_Processing_MF_Form_Hailo/MF-object-detection-4/test/images
--hw-arch hailo8l --classes 2 --performance"
Once i do this i get the following error
hailo_model_optimization.acceleras.utils.acceleras_exceptions.NegativeSlopeExponentNonFixable:
Quantization failed in layer yolov8s/conv42 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 have tried using the model directly in pt format on my system (not on
pi5); it works without any issue . I am just a beginner so I am not sure
what I am doing incorrectly.
Any one who can point me in the correct direction would be of gr8 help
attaching copy of error
Complete error.txt
<https://github.com/user-attachments/files/16318989/Complete.error.txt>
—
Reply to this email directly, view it on GitHub
<#111 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADBIQYC26ENCTUNJ6LONMULZNH3YRAVCNFSM6AAAAABLBYUFTWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBQHE2DAOBRGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Good morning, nadaved I did the optimization process by adding that parameter you mentioned. Here are the results I got:
Is it correct? |
I'm trying to compile a custom model trained with YOLOv8s so I can use it on the Raspberry Pi 5. But when it gets to "Starting Layer Noise Analysis," it throws an error. Any idea what could be wrong? I've tried searching but couldn't find anything specific.
The text was updated successfully, but these errors were encountered: