keunwoochoi / music-auto_tagging-keras

Music auto-tagging models and trained weights in keras/theano
MIT License
614 stars 142 forks source link

small error with argument 'by_name' #10

Closed fortunto2 closed 7 years ago

fortunto2 commented 7 years ago

Hi, sorry but why?

rustam@rustam-ssd2:~/github/music-auto_tagging-keras$ python example_feat_extract.py
Using Theano backend.
Running main() with network: crnn and backend: theano
Traceback (most recent call last):
  File "example_feat_extract.py", line 64, in <module>
    main(net)
  File "example_feat_extract.py", line 52, in main
    model = MusicTaggerCRNN(weights='msd', include_top=False)
  File "/home/rustam/github/music-auto_tagging-keras/music_tagger_crnn.py", line 140, in MusicTaggerCRNN
    by_name=True)
TypeError: load_weights() got an unexpected keyword argument 'by_name'

ubuntu 16 anaconda python 2.7 keras 1.0.7 theano 0.8.2

keunwoochoi commented 7 years ago

by_name option is available in recent Keras. Not sure from which version but 1.1 would definitely work.

On 8 Jan 2017, at 18:25, Rustam S notifications@github.com wrote:

Hi, sorry but why?

rustam@rustam-ssd2:~/github/music-auto_tagging-keras$ python example_feat_extract.py Using Theano backend. Running main() with network: crnn and backend: theano Traceback (most recent call last): File "example_feat_extract.py", line 64, in main(net) File "example_feat_extract.py", line 52, in main model = MusicTaggerCRNN(weights='msd', include_top=False) File "/home/rustam/github/music-auto_tagging-keras/music_tagger_crnn.py", line 140, in MusicTaggerCRNN by_name=True) TypeError: load_weights() got an unexpected keyword argument 'by_name' ubuntu 16 anaconda python 2.7 keras 1.0.7 theano 0.8.2

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

fortunto2 commented 7 years ago

thanks. update to 1.2 get work!