import tensorflow as tf
from tensorflow.keras.models import load_model
import tensorflow.lite as tflite
model = load_model('malignant_tissue_model.h5')
converter = tf.lite.TFLiteConverter.from_keras_model(model)
tflite_model = converter.convert()
with open('malignant_tissue_model.tflite', 'wb') as f:
f.write(tflite_model)
import tensorflow as tf
from tensorflow.keras.models import load_model
import tensorflow.lite as tflite
model = load_model('malignant_tissue_model.h5')
converter = tf.lite.TFLiteConverter.from_keras_model(model)
tflite_model = converter.convert()
with open('malignant_tissue_model.tflite', 'wb') as f:
f.write(tflite_model)