andrewbawitlung commited on
Commit
f9bee32
·
verified ·
1 Parent(s): fc32e95

Add CER, hyperparameters, and training logs to README

Browse files
Files changed (1) hide show
  1. README.md +24 -10
README.md CHANGED
@@ -46,6 +46,30 @@ It achieves the following results on the evaluation set:
46
  - Cer: 7.3593
47
  - Real Time Factor: 0.0520
48
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  ## Model description
50
 
51
  ### Experiment Configurations
@@ -65,16 +89,6 @@ This repository is part of a series of experiments. The different configurations
65
  | **E4 (SpecAug)** | [andrewbawitlung/whisper-medium-mizonal3-E4-lus-v2026.06](https://huggingface.co/andrewbawitlung/whisper-medium-mizonal3-E4-lus-v2026.06) |
66
  | **E5 (Combined)** | [andrewbawitlung/whisper-medium-mizonal3-E5-lus-v2026.06](https://huggingface.co/andrewbawitlung/whisper-medium-mizonal3-E5-lus-v2026.06) |
67
 
68
- ## Intended uses & limitations
69
-
70
- More information needed
71
-
72
- ## Training and evaluation data
73
-
74
- More information needed
75
-
76
- ## Training procedure
77
-
78
  ### Training hyperparameters
79
 
80
  The following hyperparameters were used during training:
 
46
  - Cer: 7.3593
47
  - Real Time Factor: 0.0520
48
 
49
+ ## Quick Inference
50
+
51
+
52
+ ```python
53
+ import torch
54
+ import librosa
55
+ from transformers import WhisperProcessor, WhisperForConditionalGeneration
56
+
57
+ device = "cuda" if torch.cuda.is_available() else "cpu"
58
+
59
+ processor = WhisperProcessor.from_pretrained("andrewbawitlung/whisper-medium-mizonal3-E2-lus-v2026.06")
60
+ model = WhisperForConditionalGeneration.from_pretrained("andrewbawitlung/whisper-medium-mizonal3-E2-lus-v2026.06").to(device)
61
+
62
+ audio, sr = librosa.load("your_audio.wav", sr=16000)
63
+ input_features = processor(audio, sampling_rate=16000, return_tensors="pt").input_features.to(device)
64
+
65
+ with torch.no_grad():
66
+ predicted_ids = model.generate(input_features, max_new_tokens=256)
67
+
68
+ transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)[0]
69
+ print(transcription)
70
+ ```
71
+
72
+
73
  ## Model description
74
 
75
  ### Experiment Configurations
 
89
  | **E4 (SpecAug)** | [andrewbawitlung/whisper-medium-mizonal3-E4-lus-v2026.06](https://huggingface.co/andrewbawitlung/whisper-medium-mizonal3-E4-lus-v2026.06) |
90
  | **E5 (Combined)** | [andrewbawitlung/whisper-medium-mizonal3-E5-lus-v2026.06](https://huggingface.co/andrewbawitlung/whisper-medium-mizonal3-E5-lus-v2026.06) |
91
 
 
 
 
 
 
 
 
 
 
 
92
  ### Training hyperparameters
93
 
94
  The following hyperparameters were used during training: