Hello, I need that model to run the license plate recognition demo, it seems to be missing from the model zoo page.
I tried to compile it using hailomz, but there doesnt seem to be any info on how to download the calibration images.
Commands I tried to run:
hailomz compile tiny_yolov4_license_plates --har tiny_yolov4_license_plates.har --hw-arch hailo8l
Start run for network tiny_yolov4_license_plates …
Initializing the hailo8l runner…
Preparing calibration data…
Traceback (most recent call last):
File “/mnt/ext/home/jribeiro/Dev/hailo_zoo/bin/hailomz”, line 33, in
sys.exit(load_entry_point(‘hailo-model-zoo’, ‘console_scripts’, ‘hailomz’)())
File “/mnt/ext/home/jribeiro/Dev/hailo_model_zoo/hailo_model_zoo/main.py”, line 122, in main
run(args)
File “/mnt/ext/home/jribeiro/Dev/hailo_model_zoo/hailo_model_zoo/main.py”, line 111, in run
return handlersargs.command
File “/mnt/ext/home/jribeiro/Dev/hailo_model_zoo/hailo_model_zoo/main_driver.py”, line 250, in compile
_ensure_optimized(runner, logger, args, network_info)
File “/mnt/ext/home/jribeiro/Dev/hailo_model_zoo/hailo_model_zoo/main_driver.py”, line 88, in _ensure_optimized
calib_feed_callback = prepare_calibration_data(
File “/mnt/ext/home/jribeiro/Dev/hailo_model_zoo/hailo_model_zoo/core/main_utils.py”, line 280, in prepare_calibration_data
calib_feed_callback = make_calibset_callback(network_info, preproc_callback, calib_path)
File “/mnt/ext/home/jribeiro/Dev/hailo_model_zoo/hailo_model_zoo/core/main_utils.py”, line 239, in make_calibset_callback
raise ValueError("Optimization requires calibration data, please modify YAML or use --calib-path "+str(dataset_name))
ValueError: Optimization requires calibration data, please modify YAML or use --calib-path license_plates
In addition to what @omria said, I would like to add some more info about the calibration dataset. It should consist of at least 64 instances (without label) that represent well what will be used for inference.
If you have re-trained the model, use a few instances from your train set.
But please note that if you are trying to use the tiny_yolov4_license_plates trained by Hailo, you can download the already compiled model from here.
It is what Im trying to do, but the precompiled model is for the hailo8, I need it for the hailo8l. Is a download link available for that? I want to test the precompiled models before training may own with my countrys license plates.
How can I get this model to run on the rpi?
python basic_pipelines/detection.py --labels-json resources/barcode-labels.json --hef resources/tiny_yolov4_license_plates.hef --input resources/detection0.mp4
This doesn’t seem to work!
Error message: “could not link videoconvert0 to hailonet0”