Skip to content

Commit

Permalink
Fix deprecated class call
Browse files Browse the repository at this point in the history
  • Loading branch information
jollyjonson committed Dec 11, 2023
1 parent fc29d1c commit a5e90f5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frechet_audio_distance/frechet_audio_distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,7 @@ def _build_vggish_as_keras_model():
x = tf.keras.layers.Flatten()(x)
x = tf.keras.layers.Dense(4096, activation="relu")(x)
x = tf.keras.layers.Dense(4096, activation="relu")(x)
x = tf.keras.layers.Dense(
VGGishParams.EMBEDDING_SIZE, activation=None
)(x)
x = tf.keras.layers.Dense(VGGish.embedding_size, activation=None)(x)
embedding = tf.identity(x, name="embedding")
return tf.keras.Model(inputs=[input], outputs=[embedding])

Expand Down

0 comments on commit a5e90f5

Please sign in to comment.