n3ong opened issue ecker/ai-voice-cloning#22

n3ong
Wed, 22 Feb 2023 02:44:04 +0000

22#gr.Dropdown list index out of range when starting server#

Tried running server after failing to generate voice due to running out of memory (error in console

'CUDA out of memory. Tried to allocate 1.61 GiB (GPU 0; 12.00 GiB total capacity; 9.11 GiB already allocated; 0 bytes free; 10.78 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF'

happened after running out of memory due to error in issue #17 with 3080's.)

Ngl a lot went down but mainly these are the steps that led up to the error:

1. Run out of memory while training model

2. Try to generate a voice for the first time (no previous selection)

3. Get error

4. Reset server to clear memory

5. Get error in console:

Traceback (most recent call last):
  File "T:\ai-voice-cloning\src\main.py", line 19, in <module>
    webui = setup_gradio()
  File "T:\ai-voice-cloning\src\webui.py", line 339, in setup_gradio
    history_voices = gr.Dropdown(choices=result_voices, label="Voice", type="value", value=result_voices[0])
IndexError: list index out of range

Probably super specific error but figure'd I'd mention it just in case.