Tensorflow speech commands android uygulamasında tflite donüştüme problemi


#1

Merhaba yapay zeka konusuna yeni başladım
tensorflowun speech commands örneği ile uğraşıyorum
keras modelini tflite modeline dönüştürürken hata alıyorum
l/export$ python3 convert_keras_lite.py
Traceback (most recent call last):
File “convert_keras_lite.py”, line 28, in
output_arrays)
File “/home/eco/.local/lib/python3.6/site-packages/tensorflow/contrib/lite/python/lite.py”, line 296, in from_keras_model_file
keras_model = _keras.models.load_model(model_file)
File “/home/eco/.local/lib/python3.6/site-packages/tensorflow/python/keras/engine/saving.py”, line 229, in load_model
model = model_from_config(model_config, custom_objects=custom_objects)
File “/home/eco/.local/lib/python3.6/site-packages/tensorflow/python/keras/engine/saving.py”, line 306, in model_from_config
return deserialize(config, custom_objects=custom_objects)
File “/home/eco/.local/lib/python3.6/site-packages/tensorflow/python/keras/layers/serialization.py”, line 64, in deserialize
printable_module_name=‘layer’)
File “/home/eco/.local/lib/python3.6/site-packages/tensorflow/python/keras/utils/generic_utils.py”, line 173, in deserialize_keras_object
list(custom_objects.items())))
File “/home/eco/.local/lib/python3.6/site-packages/tensorflow/python/keras/engine/network.py”, line 1209, in from_config
process_layer(layer_data)
File “/home/eco/.local/lib/python3.6/site-packages/tensorflow/python/keras/engine/network.py”, line 1195, in process_layer
layer = deserialize_layer(layer_data, custom_objects=custom_objects)
File “/home/eco/.local/lib/python3.6/site-packages/tensorflow/python/keras/layers/serialization.py”, line 64, in deserialize
printable_module_name=‘layer’)
File “/home/eco/.local/lib/python3.6/site-packages/tensorflow/python/keras/utils/generic_utils.py”, line 175, in deserialize_keras_object
return cls.from_config(config[‘config’])
File “/home/eco/.local/lib/python3.6/site-packages/tensorflow/python/keras/engine/base_layer.py”, line 1553, in from_config
return cls(**config)
File “/home/eco/.local/lib/python3.6/site-packages/tensorflow/python/keras/layers/core.py”, line 330, in init
self.activation = activations.get(activation)
File “/home/eco/.local/lib/python3.6/site-packages/tensorflow/python/keras/activations.py”, line 200, in get
return deserialize(identifier)
File “/home/eco/.local/lib/python3.6/site-packages/tensorflow/python/keras/activations.py”, line 191, in deserialize
printable_module_name=‘activation function’)
File “/home/eco/.local/lib/python3.6/site-packages/tensorflow/python/keras/utils/generic_utils.py”, line 193, in deserialize_keras_object
function_name)
ValueError: Unknown activation function:relu6

Sistemde bunlar yüklü

Keras==2.2.0
pandas==0.22.0
pandas-ml==0.5.0
tensorflow==1.10.0
tensorflow-gpu==1.10.0
wget==3.2

sorun nedir sizce?