hello,
i was wondering if someone can help.
I downloaded UTKFace dataset and trained an Age model using the same.
The output was tensorflow.keras model in h5 format.
I did a an inferencing test and it was working with web camera.
Now I converted the h5 model to onnx format using onnxmltools using onnxmltools.convert_keras(keras_model, target_opset=12)
I then converted the ONNX model to blob file from https://blobconverter.luxonis.com/ website using following paramters;
--data_type=FP16 --mean_values=[127.5,127.5,127.5] --scale_values=[255,255,255] -- input_shape=[-1,200,200,3]
The blob conversion was successful.
I then downloaded gen2-age-gender detection demo and replaced the "age-gender-recognition-retail-0013" model with my blob file.
recognition_nn.setBlobPath(str(Path("model.blob").resolve().absolute()))
when i run the main.py, i get following error;
Creating Color Camera...
OAK-D detected, app will display spatial coordiantes
Creating recognition Neural Network...
Traceback (most recent call last):
File "main.py", line 181, in <module>
device.startPipeline(create_pipeline(stereo))
File "main.py", line 170, in create_pipeline
recognition_nn.setBlobPath(nnPath)
IndexError: invalid map<K, T> key
can anyone help me how to resolve this error.
thanks