You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was examining examples/asr/experimental/k2/align_speech_parallel.py script as I wish to get speech alignments from my trained CTC-based ASR model. Somewhere, I was told that I have to install k2 package to use this script and its recommended method is by using scripts/speech_recognition/k2/setup.sh. However, when I executed the setup.sh script, its output is like this: ImportError: k2 was built using PyTorch 1.7.1+cu101 But you are using PyTorch 1.11.0+cu102 to run it k2 installed with errors! Please check installation manually.
As far as I know, NeMo needs Pytorch 1.10.0 or above to function but it seems that k2 has been built by PyTorch 1.7.1.
I know the k2 based scripts in NeMo are experimental for now, but is there any chance to bypass this?
The text was updated successfully, but these errors were encountered:
The version check that throws the error was introduced in k2 release 1.5.0, namely in this PR: k2-fsa/k2#949
The error is triggered by the following after-install check in the setup.sh:
I just rebuilt k2 with the setup.sh and the check went just fine.
I suspect that in your case k2 wasn't built from source for some reason.
Could you please check if k2 is actually built from source when you run the script? It is expected to occupy all the CPU kernels and last for several minutes.
You can also try downgrading k2 by explicitly specifying the version, like running this block instead of the setup.sh:
Hi,
I was examining
examples/asr/experimental/k2/align_speech_parallel.py
script as I wish to get speech alignments from my trained CTC-based ASR model. Somewhere, I was told that I have to install k2 package to use this script and its recommended method is by usingscripts/speech_recognition/k2/setup.sh
. However, when I executed thesetup.sh
script, its output is like this:ImportError: k2 was built using PyTorch 1.7.1+cu101 But you are using PyTorch 1.11.0+cu102 to run it k2 installed with errors! Please check installation manually.
As far as I know, NeMo needs Pytorch 1.10.0 or above to function but it seems that k2 has been built by PyTorch 1.7.1.
I know the k2 based scripts in NeMo are experimental for now, but is there any chance to bypass this?
The text was updated successfully, but these errors were encountered: