Describe the bug
I can't run inference on my Python 3.10.12 setup, i get the following syntax error:
File "C:\NeMo\examples\asr\asr_cache_aware_streaming\speech_to_text_cache_aware_streaming_infer.py", line 117, in <module>
from nemo.collections.asr.parts.utils.streaming_utils import CacheAwareStreamingAudioBuffer
File "C:\Users\user\AppData\Local\miniconda3\envs\nemo\lib\site-packages\nemo\collections\asr\parts\utils\streaming_utils.py", line 2467
shifted_indices = shifted_indices[..., *[None for _ in range(len(self.dim_shape))]]
^
SyntaxError: invalid syntax
Steps/Code to reproduce bug
You can reproduce this error by running this command below (from the official huggingface page):
python examples/asr/asr_cache_aware_streaming/speech_to_text_cache_aware_streaming_infer.py \
model_path=<model_path> \
dataset_manifest=<dataset_manifest> \
batch_size=<batch_size> \
target_lang=<lang_id> \
att_context_size="[56,13]"
Expected behavior
Expected to see transcription normally.
Environment overview
- Environment location: local, python venv
- Method of NeMo install:
pip install git+https://github.com/NVIDIA/NeMo.git@main#egg=nemo_toolkit[asr]
Environment details
If NVIDIA docker image is used you don't need to specify these.
Otherwise, please provide:
- Ubuntu 22.04.5 LTS
- torch==2.8.0
- Python 3.10.12
- NVIDIA Jetson AGX Orin Developer Kit
Describe the bug
I can't run inference on my Python 3.10.12 setup, i get the following syntax error:
Steps/Code to reproduce bug
You can reproduce this error by running this command below (from the official huggingface page):
Expected behavior
Expected to see transcription normally.
Environment overview
pip install git+https://github.com/NVIDIA/NeMo.git@main#egg=nemo_toolkit[asr]Environment details
If NVIDIA docker image is used you don't need to specify these.
Otherwise, please provide: