Hguimaraes / gtzan.keras

[REPO] Music Genre classification on GTZAN dataset using CNNs
MIT License
198 stars 57 forks source link

Error, Model not defined #8

Closed whoislewys closed 5 years ago

whoislewys commented 5 years ago

After cloning and running, I get this error:

Traceback (most recent call last): File "gtzan.py", line 131, in <module> main(args) File "gtzan.py", line 75, in main cnn = build_model(input_shape, num_genres) File "C:\Users\lewys\PycharmProjects\genre-classification\gtzan.keras\src\gtzan\model.py", line 24, in build_model model = Model(inputs=vgg16.input, outputs=top(vgg16.output))

Should be a quick fix with a simple from keras import Model in src\gtzan\model.py

Maybe you created this on a different version of Keras than I have installed? Could you please update the repo with a conda environment.yml file or similar to show which packages at which versions you have installed? Thanks

whoislewys commented 5 years ago

my bad, didnt notice notice requirements.txt