Using export_tflite.py file I was able to convert the model into .tflite and interpret the model results using Python.
To Optimize the size of tflite file I added converter.optimizations = [tf.lite.Optimize.OPTIMIZE_FOR_SIZE] line to the export_tflite.py file, Now my tflite file is ~6MB, but when I try to load this file using tf.lite.Interpreter(model_path='nsfw_compresed.tflite') for Interpretation I get the following error
ValueError: Didn't find op for builtin opcode 'CONV_2D' version '5'
Registration failed.
Please help me hear to resolve the issue
Tensorflow version == '1.14.0'
Using export_tflite.py file I was able to convert the model into .tflite and interpret the model results using Python.
To Optimize the size of tflite file I added
converter.optimizations = [tf.lite.Optimize.OPTIMIZE_FOR_SIZE]
line to the export_tflite.py file, Now my tflite file is ~6MB, but when I try to load this file using tf.lite.Interpreter(model_path='nsfw_compresed.tflite') for Interpretation I get the following errorValueError: Didn't find op for builtin opcode 'CONV_2D' version '5' Registration failed.
Please help me hear to resolve the issue Tensorflow version == '1.14.0'