Commit
·
435866d
1
Parent(s):
ce1a421
Update README.md
Browse files
README.md
CHANGED
|
@@ -50,8 +50,8 @@ model-index:
|
|
| 50 |
|
| 51 |
This model is a fine-tuned version of [openai/whisper-small](https://huggingface.co/openai/whisper-small) on the Common Voice 15 dataset.
|
| 52 |
It achieves the following results on the evaluation set:
|
| 53 |
-
- Wer:
|
| 54 |
-
- Cer:
|
| 55 |
|
| 56 |
|
| 57 |
|
|
@@ -67,8 +67,8 @@ test_dataset = load_dataset("mozilla-foundation/common_voice_13_0", "hi", split=
|
|
| 67 |
wer = load_metric("wer")
|
| 68 |
cer = load_metric("cer")
|
| 69 |
|
| 70 |
-
processor = WhisperProcessor.from_pretrained("
|
| 71 |
-
model = WhisperForConditionalGeneration.from_pretrained("
|
| 72 |
test_dataset = test_dataset.cast_column("audio", Audio(sampling_rate=16000))
|
| 73 |
|
| 74 |
def map_to_pred(batch):
|
|
@@ -89,5 +89,5 @@ print("CER: {:2f}".format(100 * cer.compute(predictions=result["prediction"], re
|
|
| 89 |
```
|
| 90 |
```bash
|
| 91 |
WER: 23.1361
|
| 92 |
-
CER:
|
| 93 |
```
|
|
|
|
| 50 |
|
| 51 |
This model is a fine-tuned version of [openai/whisper-small](https://huggingface.co/openai/whisper-small) on the Common Voice 15 dataset.
|
| 52 |
It achieves the following results on the evaluation set:
|
| 53 |
+
- Wer: 14.0178
|
| 54 |
+
- Cer: 05.8824
|
| 55 |
|
| 56 |
|
| 57 |
|
|
|
|
| 67 |
wer = load_metric("wer")
|
| 68 |
cer = load_metric("cer")
|
| 69 |
|
| 70 |
+
processor = WhisperProcessor.from_pretrained("SakshiRathi77/whisper-hindi-kagglex")
|
| 71 |
+
model = WhisperForConditionalGeneration.from_pretrained("SakshiRathi77/whisper-hindi-kagglex").to("cuda")
|
| 72 |
test_dataset = test_dataset.cast_column("audio", Audio(sampling_rate=16000))
|
| 73 |
|
| 74 |
def map_to_pred(batch):
|
|
|
|
| 89 |
```
|
| 90 |
```bash
|
| 91 |
WER: 23.1361
|
| 92 |
+
CER: 10.4366
|
| 93 |
```
|