renaming all files - moving training to be a single file for transfer vs not transfer learning. Made the testing file test all models. Needs to be updated to only update with new models.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import tensorflow as tf
|
||||
from tensorflow import keras
|
||||
keras_file = "mobilenetv2.hdf5"
|
||||
keras.models.load_model(keras_file)
|
||||
|
||||
h5_model = keras.models.load_model(keras_file)
|
||||
converter = tf.lite.TFLiteConverter.from_keras_model_file(keras_file)
|
||||
|
||||
tflite_model = converter.convert()
|
||||
with open('mobilenetv2.tflite', 'wb') as f:
|
||||
f.write(tflite_model)
|
||||
Reference in New Issue
Block a user