Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate the TensorFlow Lite model into the app #3

Open
sayannath opened this issue Nov 13, 2021 · 0 comments
Open

Integrate the TensorFlow Lite model into the app #3

sayannath opened this issue Nov 13, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@sayannath
Copy link
Member

sayannath commented Nov 13, 2021

Link of the Colab Notebook here.

Metatdata of the TF-Lite model

TFLITE_MODEL_FILE = 'zero-dce.tflite'

interpreter = tf.lite.Interpreter(model_path = TFLITE_MODEL_FILE)
input_details = interpreter.get_input_details()
output_details = interpreter.get_output_details()

print("Input Shape:", input_details[0]['shape'])
print("Input Type:", input_details[0]['dtype'])
print("Output Shape:", output_details[0]['shape'])
print("Output Type:", output_details[0]['dtype'])

Output

Input Shape: [  1 400 600   3]
Input Type: <class 'numpy.float32'>
Output Shape: [  1 400 600   3]
Output Type: <class 'numpy.float32'>

The TensorFlow Lite model expects an image of dimension 400x600 where 600 is the image height and 400 is the image width. An image array will be given as an output, which is also of the same dimension.

Branch to be worked on feature/tflite-integrate

@sayannath sayannath added the enhancement New feature or request label Nov 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants