CoolFace
Modelpublic

MatsRooth/wav2vec2-base_than_I_did

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes5downloads
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-basethanI_did

This model is a fine-tuned version of facebook/wav2vec2-base on the MatsRooth/thanIdid dataset. It achieves the following results on the evaluation set:

  • —Loss: 0.2077
  • —Accuracy: 0.9592

Model description

This is a binary classifier for the prosody of tokens of "I did". The label s is subject prominence. The label ns is the complement, with prominence either on "did" or afterwards.

Intended uses & limitations

Research on prosody.

Training and evaluation data

The utterances are collected on Youtube, aligned with the Youtube transcript using Kaldi, and cut to the words "I did" using Matlab. Labels were assigned by the experimenter, using 's' for tokens there the main clause subject differed from the than-clause subject, and 'ns' for other tokens. The labeling does not depend on prosody, though it correlates with it.

On the same problem using an SVM classifier, see Howell, Jonathan, Mats Rooth, and Michael Wagner, Acoustic classification of focus: On the web and in the lab (2016).

The class ns was reduced to 160 tokens, to match the number of tokens of s.

Training procedure

Training and evaluation use runaudioclassification.py from HuggingFace. The slurm script thanIdid.sub launches training.

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 3e-05
  • —trainbatchsize: 16
  • —evalbatchsize: 16
  • —seed: 0
  • —gradientaccumulationsteps: 2
  • —totaltrainbatch_size: 32
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: linear
  • —lrschedulerwarmup_ratio: 0.1
  • —num_epochs: 20.0
  • —mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepValidation LossAccuracy
No log0.9480.69400.4694
0.69392.0170.67760.6735
0.68442.94250.65050.6531
0.67524.0340.63900.6122
0.60714.94420.56640.7959
0.54836.0510.40900.8571
0.54836.94590.39480.8163
0.47478.0680.40820.8163
0.47828.94760.34350.8776
0.440310.0850.34100.8776
0.468210.94930.28780.8980
0.403212.01020.25890.9184
0.35912.941100.25540.9184
0.35914.01190.20770.9592
0.314214.941270.18390.9592
0.373516.01360.19440.9388
0.365516.941440.18700.9592
0.391818.01530.20050.9592
0.330518.821600.19470.9592

Framework versions

  • —Transformers 4.36.0.dev0
  • —Pytorch 2.1.0+cu121
  • —Datasets 2.13.1
  • —Tokenizers 0.15.0