OmarTariq612 / transformers-whisper-quran-cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

transformers-whisper-quran-cli

Requirements:

pip3 install -U click \
  mutagen \
  jiwer \
  evaluate \
  transformers \
  pyarabic \
  optimum
python3 main.py --help

Examples

  • Calculate WER and generate csv files for juz 28 (58:66) using custom checkpoint from a huggingface repo.
python3 main.py generate \
  --sorah-range 58:66 \
  "/kaggle/input/quran-reciters/metadata/ayah_text_clear.csv" \
  "/kaggle/input/quran-reciters/audio/audio/Minshawy_Murattal_128kbps" \
  --model "omartariq612/whisper-small-augmented-epoch-5" \
  --out-prefix "Minshawy_Murattal_128kbps" \
  -o .. \
  --device cuda \
  --batch-size 24

About


Languages

Language:Python 100.0%