Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
fchollet committed Sep 25, 2016
1 parent ed13197 commit fb6a294
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions docs/templates/applications.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ These weights are trained by ourselves and are released under the MIT license.
keras.applications.music_tagger_crnn.MusicTaggerCRNN(weights='msd', input_tensor=None, include_top=True)
```

A convolutional-recurrent model taking as input a vectorized representation of the Melgram spectrogram of a music track and capable of outputting the musical genre of the track. You can use `keras.applications.music_tagger_crnn.preprocess_input` the convert a sound file to a vectorized spectrogram. This requires to have installed the [Librosa](http://librosa.github.io/librosa/) library. See [the usage example](#music-tagging-and-feature-extraction-with-musictaggercrnn).
A convolutional-recurrent model taking as input a vectorized representation of the Melgram spectrogram of a music track and capable of outputting the musical genre of the track. You can use `keras.applications.music_tagger_crnn.preprocess_input` to convert a sound file to a vectorized spectrogram. This requires to have installed the [Librosa](http://librosa.github.io/librosa/) library. See [the usage example](#music-tagging-and-feature-extraction-with-musictaggercrnn).

### Arguments

Expand All @@ -318,7 +318,6 @@ A convolutional-recurrent model taking as input a vectorized representation of t

A Keras model instance.


### References

- [Convolutional Recurrent Neural Networks for Music Classification](https://arxiv.org/abs/1609.04243)
Expand Down
4 changes: 2 additions & 2 deletions keras/applications/music_tagger_crnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ def MusicTaggerCRNN(weights='msd', input_tensor=None,
else:
# Load weights
if K.image_dim_ordering() == 'tf':
raise RuntimeError("Please set image_dim_ordering == 'th'."
"You can set it at ~/.keras/keras.json")
raise RuntimeError('Please set `image_dim_ordering` to "th".'
'You can set it at `~/.keras/keras.json`.')

if K._BACKEND == 'theano':
weights_path = get_file('music_tagger_crnn_weights_theano.h5',
Expand Down

0 comments on commit fb6a294

Please sign in to comment.