I am trying to import a MobileNetV2 with the TIDL import tool
The model is created with the following python code:
import tensorflow as tf test_model = tf.keras.applications.MobileNetV2() saved_model_dir="keras_mobilenet" tf.keras.models.save_model(test_model,"./"+saved_model_dir) # Convert the model converter = tf.lite.TFLiteConverter.from_saved_model(saved_model_dir) # path to the SavedModel directory tflite_model = converter.convert() # Save the model. with open('model_06_28.tflite', 'wb') as f: f.write(tflite_model)
And I try to import it with the following configuration file:
modelType = 3
numParamBits = 12
quantizationStyle = 1
inputNetFile = "/home/pierrickrauby/models/models_06_28/model_06_28.tflite"
outputNetFile = "/home/pierrickrauby/models/models_06_28/model_06_28.bin"
outputParamsFile = "/home/pierrickrauby/models/models_06_28/model_06_28_"
inDataNorm = 1
inMean = 128 128 128
inScale = 0.0078125 0.0078125 0.0078125
resizeWidth = 256
resizeHeight = 256
inWidth = 224
inHeight = 224
inNumChannels = 3
sampleInData = ../../test/test.png
postProcType = 1
tidlStatsTool = "/home/pierrickrauby/ti-processor-sdk-linux-am57xx-evm-06.03.00.106/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/eve_test_dl_algo_ref.out"
Note that I successfully import the MobileNetV2 model from provided on this page(software-dl.ti.com/.../md_tidl_models_info.html ) with the same configuration file.
The import fails with the following error message :
Pad Layer is not supported by TIDL
But the PAD layer is supposed to be supported(https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/06_02_00_21/exports/docs/tidl_j7_01_01_00_10/ti_dl/docs/user_guide_html/md_tidl_layers_info.html) , does any one knows how to solve that ?