Hello all,
I'm trying to generate NEW model artifact (FOR LISTED SUPPORT MODEL IN TIDL MODEL ZOO ITEM #8 )using the run_python_examples.sh script from edgeai-tidl-tools repo (https://github.com/TexasInstruments/edgeai-tidl-tools/blob/master/scripts/run_python_examples.sh) in order to use the generated tflite delegate. Even though I am able to generate the artifact, I observed wrong results when running the inference. Below the details.
1. I added the following in the script https://github.com/TexasInstruments/edgeai-tidl-tools/blob/master/examples/osrt_python/common_utils.py to add the model source and other parameters for the generation.
'od-tfl-ssd_mobilenet_v1_1_default_1' : {
'model_path' : os.path.join(models_base_path,'ssd_mobilenet_v1_1_default_1.tflite'),
'source' : {'model_url': 'tfhub.dev/.../1, 'opt': True},
'mean': [127.5, 127.5, 127.5],
'std' : [1/127.5, 1/127.5, 1/127.5],
'num_images' : numImages,
'num_classes': 91,
'model_type': 'od',
'session_name' : 'tflitert',
'od_type' : 'HasDetectionPostProcLayer'
},
Note: The model url is obtained from LISTED SUPPORT MODEL IN TIDL MODEL ZOO ITEM #8 link (tfhub) and has same parameter as the model od-tfl-ssd_mobilenet_v2_300_float already included in python examples.
Reference: TI Deep Learning Product User Guide: TIDL-RT Model Zoo
2. I also added the highlighted change in https://github.com/TexasInstruments/edgeai-tidl-tools/blob/master/examples/osrt_python/tfl/tflrt_delegate.py#L221
models = ['cl-tfl-mobilenet_v1_1.0_224', 'ss-tfl-deeplabv3_mnv2_ade20k_float', 'od-tfl-ssd_mobilenet_v2_300_float', 'od-tfl-ssd_mobilenet_v1_1_default_1']
EXPECTED RESULT (similar to py_out_od-tfl-ssd_mobilenet_v2_300_float_ADE_val_00001801.jpg):
OBTAINED RESULT (py_out_od-tfl-ssd_mobilenet_v1_1_default_1_ADE_val_00001801.jpg):

Here console output log:
run_python_examples NEW ARTIFACT console output.txt
***HOW CAN I PROPERLY GENERATE NEW MODEL ARTIFACT USING THE SCRIPTS FROM edgeai-tidl-tools REPO?
Thanks in advance!
