Open ryangsookim opened 10 months ago
Hi @ryangsookim,
You mentioned that the model is pre-trained. If you mean that you haven't re-trained the model, then you don't have to go through the compilation process. You can instead download an already compiled model here.
If you have re-trained the model, it is important to notice that the calibration dataset does not need to contain the entire training set. For yolov5m_wo_spp, we use a calibration dataset with size 4000. The error you are facing could be related to using too many images that are not encoded as a tfrecord. Please try again with a folder containing 4000 images and let us know how it goes.
Hi @nina-vilela
I'm reaching out to you regarding a persistent error I'm encountering while training and compiling a custom YOLOv5 model. I'm currently using the HAILO-APPLICATION-CODE-EXAMPLES to test model compilation, but I've encountered an incompatibility.
Here's the issue:
The compiled HEF model's output layer is named "yolov5_nms_postprocess" with dimensions (80, 5, 80). However, the "yolo_general_inference.py" script within the HAILO-APPLICATION-CODE-EXAMPLES seems to expect a different output structure, leading to incompatibility.
I'd appreciate your assistance with the following:
Reference Python Code for Testing: Could you please provide reference Python code that demonstrates how to test a compiled model with an output layer named "nms_postprocess"?
Compilation Workflow for yolov7.hef: Could you clarify the compilation workflow used to create the "yolov7.hef" model that's compatible with "yolo_general_inference.py"? This would help me understand the expected model structure.
Thank you for your time and expertise.
@ryangsookim
I would just like to confirm that your first problem is fixed. You could successfully compile yolov5m_wo_spp, right?
For your other questions, since it does not relate to the ModelZoo, we would be happy to assist you through our ticketing system instead. Please open a ticket here.
@nina-vilela
My first problem was fixed.
Are there any method for creating a calib.tfrecord file from a custom YOLO dataset, specifically without utilizing an instances.json file. ??
@ryangsookim
You can use this script.
We couldn't find a ticket for your issue with the yolo_general_inference example. Please let us know if you need any help with permissions for opening one.
@nina-vilela Hello, May I ask if this script is directly invoked? What is the format of the dataset I need to prepare before calling it? Images and labels? What is the format of the tags? I'm a little vague about that
@pcycccccc you can find reference for how to use this script in the following data documentation
Hi,
I'm encountering errors when attempting to compile pretrained yolov5m_wo_spp.onnx using hailomz. Here are the details:
Command:
Error Messages:
What's causing these errors, and how can I resolve them?