MahmoudAshraf97 / whisper-diarization

Automatic Speech Recognition with Speaker Diarization based on OpenAI Whisper
BSD 2-Clause "Simplified" License
3.81k stars 336 forks source link

RuntimeError: cuDNN error: CUDNN_STATUS_VERSION_MISMATCH #95

Closed mayur-neuralgarage closed 1 year ago

mayur-neuralgarage commented 1 year ago

Same problem in new code !!


!pip install git+https://github.com/m-bain/whisperX.git@4cb167a225c0ebaea127fd6049abfaa3af9f8bb4
!pip install --no-build-isolation nemo_toolkit[asr]==1.20.0
!pip install faster-whisper==0.7.1
!pip install git+https://github.com/facebookresearch/demucs#egg=demucs
!pip install deepmultilingualpunctuation
!pip install wget
!pip install --force-reinstall torch torchaudio torchvision
!pip install -U numba
!pip uninstall -y nvidia-cudnn-cu11
# Initialize NeMo MSDD diarization model
msdd_model = NeuralDiarizer(cfg=create_config(temp_path)).to("cuda")
msdd_model.diarize()

del msdd_model
torch.cuda.empty_cache()

RuntimeError: cuDNN error: CUDNN_STATUS_VERSION_MISMATCH

mayur-neuralgarage commented 1 year ago
import os
import wget
from omegaconf import OmegaConf
import json
import shutil
from faster_whisper import WhisperModel
import whisperx
import torch
import librosa
import soundfile
from nemo.collections.asr.models.msdd_models import NeuralDiarizer
from deepmultilingualpunctuation import PunctuationModel
import re
import logging

AttributeError Traceback (most recent call last) in <cell line: 11>() 9 import librosa 10 import soundfile ---> 11 from nemo.collections.asr.models.msdd_models import NeuralDiarizer 12 from deepmultilingualpunctuation import PunctuationModel 13 import re

19 frames /usr/local/lib/python3.10/dist-packages/numpy/init.py in getattr(attr) 309 return val 310 --> 311 if attr in __future_scalars__: 312 # And future warnings for those that will change, but also give 313 # the AttributeError

AttributeError: module 'numpy' has no attribute '_no_nep50_warning'

MahmoudAshraf97 commented 1 year ago

Both errors fixed, please note that both errors are not related to the code in this repo, the colab notebook requirements are not actively monitored as colab environment changes on a daily basis so try to navigate the error using google searches

mayur-neuralgarage commented 1 year ago

can you share the script so I can run it on my local machine If possible

not a colab script that we already have