NazarPonochevnyi / Trained-CNN-for-Genre-classification

🎵 Trained CNN model for Genre classification on GTZAN dataset [CNN Model: https://github.com/Hguimaraes/gtzan.keras]
MIT License
21 stars 5 forks source link

classification_cnn_vgg16 cann't run, two file don't exist, x_gtzan_npy.npy #1

Closed zhangscofield closed 4 years ago

zhangscofield commented 4 years ago

Can you please add?I want to learn.

zhangscofield commented 4 years ago

sorry. I find. I can do it .

NazarPonochevnyi commented 4 years ago

Yeah. These are large files, so I didn't add them to the repository. You can easily create them! Follow these steps:

  1. Download the GTZAN dataset here: http://opihi.cs.uvic.ca/sound/genres.tar.gz
  2. Paste files from archive to ./gtzan/ folder
  3. Open classification_cnn_vgg16 and delete # in these strings:
    # X, y = read_data(gtzan_dir, genres, song_samples, to_melspectrogram, debug=True)
    # np.save('./data/x_gtzan_npy.npy', X)
    # np.save('./data/y_gtzan_npy.npy', y)
  4. Run classification_cnn_vgg16
  5. Files will be create in ./data/ folder
NazarPonochevnyi commented 4 years ago

I think the issue can be closed :)