My first question is, what should be the format of the files in the dataset specified by calib-set-path? Will jpg files work?
Second, when I used the command “hailo optimize mymodel.har --calib-set-path /home/me/datasets/my_test2” (with jpg files), I got this error: File “/home/tuanjie.tong/hailo/hailo_ven/lib/python3.8/site-packages/hailo_model_optimization/acceleras/utils/dataset_util.py”, line 250, in data_to_dataset
raise ValueError(“Couldn’t detect CalibrationDataType”)
ValueError: Couldn’t detect CalibrationDataType.
What is the cause?
I just started to learn Hailo related stuff, please bear with me. Thanks!
TT
For the second question, I realized I provided a wrong path. However, with the correct path, I got another error (StopIteration):
File “/home/tuanjie.tong/hailo/hailo_ven/lib/python3.8/site-packages/hailo_model_optimization/acceleras/utils/dataset_util.py”, line 210, in npy_dir_to_dataset
sample_file = next(iter(glob.iglob(glob_path)))
StopIteration.
Can anyone help me? Thanks!
Hi @TT2024,
You always hae the option to do --help
to get more info on the different options of the tool. In this case the calib-set-path
expects to get an npy array.
Thanks for the information!