CoolFace
Modelpublic

chuuhtetnaing/whisper-tiny-myanmar

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
2likes69downloads
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. -->

whisper-tiny-myanmar

This model is a fine-tuned version of openai/whisper-tiny on the chuuhtetnaing/myanmar-speech-dataset-openslr-80 dataset. It achieves the following results on the evaluation set:

  • —Loss: 0.2353
  • —Wer: 61.8878

Usage

python
from datasets import Audio, load_dataset
from transformers import pipeline

# Load a sample audio
dataset = load_dataset("chuuhtetnaing/myanmar-speech-dataset-openslr-80")
dataset = dataset.cast_column("audio", Audio(sampling_rate=16000))
test_dataset = dataset['test']
input_speech = test_dataset[42]['audio']

pipe = pipeline(model='chuuhtetnaing/whisper-tiny-myanmar')

output = pipe(input_speech, generate_kwargs={"language": "myanmar", "task": "transcribe"})
print(output['text']) # ကျွန်မ ပြည်ပ မှာ ပညာ သင် တော့ စာမြီးပွဲ ကို တပတ်တခါ စစ်တယ်

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 0.0003
  • —trainbatchsize: 128
  • —evalbatchsize: 128
  • —seed: 42
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: linear
  • —lrschedulerwarmup_steps: 200
  • —num_epochs: 30
  • —mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepValidation LossWer
No log1.0181.2679357.6135
1.4832.0361.0660102.5378
1.07033.0540.9530106.3669
1.07034.0720.8399100.5343
0.89515.0900.7728107.6581
0.78576.01080.7143107.5245
0.66147.01260.5174104.4078
0.66148.01440.300490.3384
0.35199.01620.244782.4577
0.216510.01800.233383.8825
0.216511.01980.202277.0258
0.153212.02160.175973.0632
0.103913.02340.185272.0837
0.067514.02520.190271.2823
0.067515.02700.188270.5254
0.051716.02880.200269.7240
0.052217.03060.196567.7649
0.052218.03240.193568.2102
0.040419.03420.213267.9430
0.030820.03600.211066.6963
0.023621.03780.214165.9394
0.023622.03960.220064.4702
0.011623.04140.222763.4016
0.005524.04320.224464.1585
0.002525.04500.225462.4666
0.002526.04680.228263.1790
0.000627.04860.232061.7097
0.000228.05040.234262.0659
0.000229.05220.235062.0214
0.000130.05400.235361.8878

Framework versions

  • —Transformers 4.35.2
  • —Pytorch 2.1.1+cu121
  • —Datasets 2.14.5
  • —Tokenizers 0.15.1