linhdvu14 / vggvox-speaker-identification

Speaker identification with VGGVox network
82 stars 34 forks source link

MemoryError: Unable to allocate 13.9 MiB for an array with shape (1779, 512) and data type complex128 #14

Open SaqlainHussainShah opened 4 years ago

SaqlainHussainShah commented 4 years ago

I am getting this error while running scoring.py file. I am using NVIDIA GPU on windows 10. I have also tried multiple solutions avaliable on stackoverflow


Processing enroll samples.... Traceback (most recent call last):

File "E:\task1\code\scoring.py", line 86, in get_id_result()

File "E:\task1\code\scoring.py", line 60, in get_id_result enroll_result = get_embeddings_from_list_file(model, c.ENROLL_LIST_FILE, c.MAX_SEC)

File "E:\task1\code\scoring.py", line 48, in get_embeddings_from_list_file result['features'] = result['filename'].apply(lambda x: get_fft_spectrum(x, buckets))

File "C:\Users\Anaconda3\envs\vgg\lib\site-packages\pandas\core\series.py", line 3848, in apply mapped = lib.map_infer(values, f, convert=convert_dtype)

File "pandas_libs\lib.pyx", line 2329, in pandas._libs.lib.map_infer

File "E:\task1\code\scoring.py", line 48, in result['features'] = result['filename'].apply(lambda x: get_fft_spectrum(x, buckets))

File "E:\task1\code\wav_reader.py", line 43, in get_fft_spectrum fft = abs(np.fft.fft(frames,n=c.NUM_FFT))

File "<__array_function__ internals>", line 6, in fft

File "C:\Users\Anaconda3\envs\vgg\lib\site-packages\numpy\fft_pocketfft.py", line 188, in fft output = _raw_fft(a, n, axis, False, True, inv_norm)

File "C:\Users\Anaconda3\envs\vgg\lib\site-packages\numpy\fft_pocketfft.py", line 77, in _raw_fft r = pfi.execute(a, is_real, is_forward, fct)

MemoryError: Unable to allocate 13.9 MiB for an array with shape (1779, 512) and data type complex128