-
When going through the example found Here I have been running into a memory issue. The file I am using is a 10 second clip which is about 1.8 MB. However when I call
I run into a numpy core error saying I need approximately 609 GiB. The line causing the issue is in the decoder_time_stamps_utils.py when creating the samples. Full TraceBack: Traceback (most recent call last): I believe the example shown in the tutorial was around 300kb so it may be the size of the file that is the issue. However I wanted to ask if there was something potentially wrong with my setup since I do not see any other issues related to memory when calling Setup Python=3.10.6 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In case anyone else runs into this error the issue was that the input files can only have 1 audio channels. The file I was using had 2 audio channels which caused You can use something like It would be a nice check in |
Beta Was this translation helpful? Give feedback.
In case anyone else runs into this error the issue was that the input files can only have 1 audio channels. The file I was using had 2 audio channels which caused
nemo/collections/asr/parts/utils/audio_utils.py
to return a list of list due to how soundfile and/or librosa handles multiple audio channels. Because it was a list of list in thenemo/collections/asr/parts/utils/decoder_timestamps_utils.py
file atsamples = np.pad(samples, (0, int(delay * model_stride_in_secs * self.asr_model._cfg.sample_rate)))
would blow up since the formula there expects a single list not a nested list causing the amount of memory needed.You can use something like
ffprobe -i TestVideo.mp4 -show_entries strea…