CoolFace
Modelpublic

yojul/wav2vec2-base-one-shot-hip-hop-drums-clf

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
6likes1.1kdownloads
Model Card

<!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. -->

wav2vec2-base-one-shot-hip-hop-drums-clf

This model is a fine-tuned version of facebook/wav2vec2-base on yojul/one-shot-hip-hop-drums. It achieves the following results on the evaluation set:

  • —Loss: 0.2463
  • —Accuracy: 0.9243

Model description

This a model is a classifier of one-shot drum sample, it has been trained on 17k hip-hop drum samples. It is able to classify samples within 7 classes : Kicks, Snares, Cymbals, Open-hats, Hi-hats, 808s, Claps.

Intended uses & limitations

It might be used to automatically sort large number of drum samples when there are no prior knowledge on metadata. The model can take any audio file as input, but note that it has been trained on audio files downsampled at 16kHz.

Training and evaluation data

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 3e-05
  • —trainbatchsize: 32
  • —evalbatchsize: 32
  • —seed: 42
  • —gradientaccumulationsteps: 4
  • —totaltrainbatch_size: 128
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: linear
  • —lrschedulerwarmup_ratio: 0.1
  • —num_epochs: 10

Training results

Training LossEpochStepValidation LossAccuracy
0.84321.01230.74490.8523
0.46922.02460.41990.8894
0.34783.03690.31220.9148
0.30544.04920.27710.9156
0.25225.06150.26760.9217
0.22216.07380.24950.9217
0.22567.08610.25880.9184
0.19498.09840.25250.9232
0.18379.011070.25050.9237
0.164410.012300.24630.9243

Framework versions

  • —Transformers 4.41.1
  • —Pytorch 2.3.0+cu121
  • —Datasets 2.19.0
  • —Tokenizers 0.19.1