Follow these steps to set up your environment and install the necessary packages for this project.
To keep dependencies isolated, create a Python virtual environment:
python3 -m venv <env_name>
Activate the environment:
- On Linux/Mac:
source <env_name>/bin/activate
- On Windows:
<env_name>\Scripts\activate
Ensure you have the latest version of pip
:
pip install --upgrade pip
Install a specific version of the NVIDIA NeMo toolkit:
python -m pip install git+https://github.com/NVIDIA/NeMo.git@52d50e9e09a3e636d60535fd9882f3b3f32f92ad
Install WhisperX using its GitHub repository:
python -m pip install git+https://github.com/m-bain/whisperx.git
To install youtokentome
, follow these steps:
-
Install Cython:
pip install Cython
-
Upgrade wheel
pip install wheel --upgrade
-
Install youtokentome:
pip install youtokentome
Install all other dependencies from the requirements.txt
file:
pip install -r requirements.txt
ImportError: cannot import name 'ModelFilter' from 'huggingface_hub'
This error may occur when importing:
from nemo.collections.asr.models import EncDecMultiTaskModel
The issue is due to a version conflict in the nemo-toolkit[all]
package. To resolve this, ensure compatible versions of dependent libraries are installed. Check for updates or compatibility in the nemo-toolkit
documentation.