Adding in the data first preprocessing, as well as the first model training.
This commit is contained in:
Executable
+12
@@ -0,0 +1,12 @@
|
||||
from tensorflow import keras
|
||||
from tensorflow.contrib import lite
|
||||
|
||||
keras_file = "weights.mobilenet.non-transfer.best.hdf5"
|
||||
keras.models.load_model(keras_file)
|
||||
|
||||
h5_model = keras.models.load_model(keras_file)
|
||||
converter = lite.TocoConverter.from_keras_model_file(keras_file)
|
||||
|
||||
tflite_model = converter.convert()
|
||||
with open('mobilenet.tflite', 'wb') as f:
|
||||
f.write(tflite_model)
|
||||
Reference in New Issue
Block a user