Tejas2000 commited on
Commit
4b1eb11
1 Parent(s): 7aeb50b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -40,8 +40,8 @@ from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
40
  #Since marathi is not present on Common Voice, script for reading the below dataset can be picked up from the eval script below
41
  mr_test_dataset = all_data['test']
42
 
43
- processor = Wav2Vec2Processor.from_pretrained("sumedh/wav2vec2-large-xlsr-marathi")
44
- model = Wav2Vec2ForCTC.from_pretrained("sumedh/wav2vec2-large-xlsr-marathi")
45
 
46
  resampler = torchaudio.transforms.Resample(48_000, 16_000) #first arg - input sample, second arg - output sample
47
  # Preprocessing the datasets. We need to read the aduio files as arrays
@@ -77,8 +77,8 @@ all_data = all_data.train_test_split(test_size=0.10,seed=2020) #seed number is i
77
  mr_test_dataset = all_data['test']
78
  wer = load_metric("wer")
79
 
80
- processor = Wav2Vec2Processor.from_pretrained("sumedh/wav2vec2-large-xlsr-marathi")
81
- model = Wav2Vec2ForCTC.from_pretrained("sumedh/wav2vec2-large-xlsr-marathi")
82
  model.to("cuda")
83
 
84
  chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\“]'
 
40
  #Since marathi is not present on Common Voice, script for reading the below dataset can be picked up from the eval script below
41
  mr_test_dataset = all_data['test']
42
 
43
+ processor = Wav2Vec2Processor.from_pretrained("Tejas2000/SpeechRecog")
44
+ model = Wav2Vec2ForCTC.from_pretrained("Tejas2000/SpeechRecog")
45
 
46
  resampler = torchaudio.transforms.Resample(48_000, 16_000) #first arg - input sample, second arg - output sample
47
  # Preprocessing the datasets. We need to read the aduio files as arrays
 
77
  mr_test_dataset = all_data['test']
78
  wer = load_metric("wer")
79
 
80
+ processor = Wav2Vec2Processor.from_pretrained("Tejas2000/SpeechRecog")
81
+ model = Wav2Vec2ForCTC.from_pretrained("Tejas2000/SpeechRecog")
82
  model.to("cuda")
83
 
84
  chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\“]'