wave2vec-recognize-docker
wave2vec-recognize-docker copied to clipboard
RuntimeError: [enforce fail at CPUAllocator.cpp:65]
Followed the installation steps, built the Dockerfile (Which had its own hiccups, the fairseq repository does not have base_architecture definition in their models file, will raise a PR for it separately) and ran the code.
Running command
python examples/wav2vec/recognize.py --wav_path /app/data/test.WAV --w2v_path /app/data/wav2vec_small_10m.pt --target_dict_path /app/data/dict.ltr.txt
Error:
RuntimeError: [enforce fail at CPUAllocator.cpp:65] . DefaultCPUAllocator: can't allocate memory: you tried to allocate 314663671488 bytes. Error code 12 (Cannot allocate memory)
Screenshot of the error:
I tried with different models of wave2vec with similar error. Do let me know if more information is needed. Running this on Azure DS VM.