KaushalB/ViTForMusicClassification
Image Classification • 87.5M • Updated • 2 • 1
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
The egtzan_plus dataset is an GTZAN like dataset for musical genre classification in the vision domain. In egtzan_plus, new classes such as Electro and Afro have been added to the original GTZAN dataset. Each audio track (30s) is transformed into a Mel-frequency spectrogram using Librosa:
# Mel-frequency spectrogram generation
y, sr = librosa.load(audio_file)
ms = librosa.feature.melspectrogram(y=y, sr=sr, n_mels=128, fmax=8000)
log_ms = librosa.power_to_db(ms, ref=np.max)
librosa.display.specshow(log_ms)
The dataset contains the following classes:
The dataset is split into train and test sets as follows: