Can be downloaded here
Can be found here
Download the dataset, unzip and upload to your google drive, then save it in a folder named datasets
In datasets folder, create 2 new folders, model and log to store the result of your training
Then run the training.ipynb
on colab.
from model import CnnModel
DIRECTORY = "YOUR_DIRECTORY_TO_THE FILE "
model = CnnModel().cuda()
model.load_state_dict(torch.load(DIRECTORY + "CnnModel.pt", map_location='cpu'))
model.eval()
- download the sample music from here
- unzip the file
- upload to the same folder, datasets
- You may upload your own songs to test which genre it belongs to