mdietrichstein / tensorflow-open_nsfw

Tensorflow Implementation of Yahoo's Open NSFW Model
Other
430 stars 136 forks source link

ValueError: Didn't find op for builtin opcode 'CONV_2D' version '5' Registration failed. #25

Open udaykumar1506 opened 4 years ago

udaykumar1506 commented 4 years ago

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'