k2-fsa / sherpa

Speech-to-text server framework with next-gen Kaldi
https://k2-fsa.github.io/sherpa
Apache License 2.0
477 stars 97 forks source link

While training got a error #480

Closed SSwethaSel0609 closed 9 months ago

SSwethaSel0609 commented 9 months ago

I have installed k2 But stillI'm getting error like no module found k2 import k2 ModuleNotFoundError: No module named 'k2'

csukuangfj commented 9 months ago

Please describe how you installed k2 and please post the installation logs.

SSwethaSel0609 commented 9 months ago
  1. conda create -n icefall_env torchvision torchaudio pytorch-cuda=11.6 pytorch=1.13=py3.10_cuda11.6_cudnn8.3.2_0 k2 -c pytorch -c nvidia -c k2-fsa
  2. conda activate icefall_env
  3. pip install lhotse
  4. sudo git clone https://github.com/k2-fsa/icefall
  5. .cd icefall
  6. sudo pip install -r requirements.txt
  7. sudo pip install . I tried again and now i got the new error like no module named icefall File "/mnt/efs/swetha/marathi/ds-icefall-scripts/./pruned_transducer_stateless7/train.py", line 59, in from asr_datamodule import AsrDataModule File "/mnt/efs/swetha/marathi/ds-icefall-scripts/pruned_transducer_stateless7/asr_datamodule.py", line 44, in from icefall.utils import str2bool ModuleNotFoundError: No module named 'icefall'
csukuangfj commented 9 months ago

Please follow the icefall installation. You forgot setting the environment variable PYTHONPATH.

csukuangfj commented 9 months ago

I strongly recommend you to read the doc before you continue. It will save you a lot of time.

SSwethaSel0609 commented 9 months ago

Yes I did.. It has resolved thank you