Skip to content

Conversation

@jungwon1413
Copy link

@jungwon1413 jungwon1413 commented Dec 20, 2017

Issue explained at https://github.com/baidu-research/ba-dls-deepspeech/issues/34

Brief explanation:

  1. Implementing Keras v2.x instead of using Keras v1.x
  2. Implementing tf.Keras which is updated in Tensorflow r1.4

Issue reason:

  • TypeError: The `mode` argument of `BatchNormalization` no longer exists. `mode=1` and `mode=2` are no longer supported.
  • UserWarning: Update your `Model` call to the Keras 2 API: `Model(inputs=Tensor("ac..., outputs=Tensor("ti...)`
  • UserWarning: Update your `Conv1D` call to the Keras 2 API: `Conv1D(1000, 11, strides=2, padding="valid", name="conv1d", kernel_initializer="glorot_uniform", activation="relu")`
  • UserWarning: Update your `GRU` call to the Keras 2 API: `GRU(1000, return_sequences=True, name="rnn_1", activation="relu", kernel_initializer="glorot_uniform")`
  • UserWarning: Update your `Dense` call to the Keras 2 API: `Dense(29, name="dense", activation="linear", kernel_initializer="glorot_uniform")`

TypeError and UserWarning are fixed due to implementing Keras v2.x
Some of the features still need to be fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant