Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MemoryError: std::bad_alloc on multiple platforms #77

Open
masoncfrancis opened this issue Mar 24, 2023 · 1 comment
Open

MemoryError: std::bad_alloc on multiple platforms #77

masoncfrancis opened this issue Mar 24, 2023 · 1 comment

Comments

@masoncfrancis
Copy link

masoncfrancis commented Mar 24, 2023

I am trying to train with a recording and transcript of a speech. I have follow the instructions to a t.

Every time I run python3.10 -m vall_e.emb.qnt ./trainingData I get the following error:

  0%|                                                                                                                    | 0/1 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/masoncfrancis/donaldVoice/venv/lib/python3.10/site-packages/vall_e/emb/qnt.py", line 95, in <module>
    main()
  File "/home/masoncfrancis/donaldVoice/venv/lib/python3.10/site-packages/vall_e/emb/qnt.py", line 90, in main
    qnt = encode_from_file(path)
  File "/home/masoncfrancis/donaldVoice/venv/lib/python3.10/site-packages/vall_e/emb/qnt.py", line 71, in encode_from_file
    wav, sr = torchaudio.load(str(path))
  File "/home/masoncfrancis/donaldVoice/venv/lib/python3.10/site-packages/torchaudio/backend/sox_io_backend.py", line 251, in load
    ret = torch.ops.torchaudio.sox_io_load_audio_file(
  File "/home/masoncfrancis/donaldVoice/venv/lib/python3.10/site-packages/torch/_ops.py", line 502, in __call__
    return self._op(*args, **kwargs or {})
MemoryError: std::bad_alloc

I have tried on Windows, WSL, Ubuntu, and Debian, all with the same issue. I have even tried different versions of PyTorch, some w/ CUDA support and some without. I always run into this issue.

@Mataleviatanes
Copy link

Hola

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants