[GH-ISSUE #1507] Multi GPU not working #986

Closed
opened 2026-10-20 10:04:51 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @BrianStark on GitHub (Nov 2, 2023).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/1507

A very good evening I am having some problems training my model on 2 graphics cards.
If I try on each card the program runs fine, only using the cards does not work.

I run the program on:

CPU: AMD Ryzen Threadripper 2990WX 32-Core Processor
RAM: 128 GB
GPU 0: NVIDIA GeForce RTX 3090
GPU 1: NVIDIA GeForce RTX 3090

I then get the following problem in my console:

Process Process-2:
Traceback (most recent call last):
  File "D:\AI\AI-voice-tools\RVC1006Nvidia\infer\modules\train\train.py", line 213, in run
    utils.latest_checkpoint_path(hps.model_dir, "D_*.pth"), net_d, optim_d
  File "D:\AI\AI-voice-tools\RVC1006Nvidia\infer\lib\train\utils.py", line 213, in latest_checkpoint_path
    x = f_list[-1]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "multiprocessing\process.py", line 315, in _bootstrap
  File "multiprocessing\process.py", line 108, in run
  File "D:\AI\AI-voice-tools\RVC1006Nvidia\infer\modules\train\train.py", line 232, in run
    logger.info(
UnboundLocalError: local variable 'logger' referenced before assignment

Is there anyone who might have a way to fix this?

Originally created by @BrianStark on GitHub (Nov 2, 2023). Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/1507 A very good evening I am having some problems training my model on 2 graphics cards. If I try on each card the program runs fine, only using the cards does not work. I run the program on: CPU: AMD Ryzen Threadripper 2990WX 32-Core Processor RAM: 128 GB GPU 0: NVIDIA GeForce RTX 3090 GPU 1: NVIDIA GeForce RTX 3090 I then get the following problem in my console: ``` Process Process-2: Traceback (most recent call last): File "D:\AI\AI-voice-tools\RVC1006Nvidia\infer\modules\train\train.py", line 213, in run utils.latest_checkpoint_path(hps.model_dir, "D_*.pth"), net_d, optim_d File "D:\AI\AI-voice-tools\RVC1006Nvidia\infer\lib\train\utils.py", line 213, in latest_checkpoint_path x = f_list[-1] IndexError: list index out of range During handling of the above exception, another exception occurred: Traceback (most recent call last): File "multiprocessing\process.py", line 315, in _bootstrap File "multiprocessing\process.py", line 108, in run File "D:\AI\AI-voice-tools\RVC1006Nvidia\infer\modules\train\train.py", line 232, in run logger.info( UnboundLocalError: local variable 'logger' referenced before assignment ``` Is there anyone who might have a way to fix this?
Author
Owner

@VincentHu1 commented on GitHub (Nov 7, 2023):

same problem

<!-- gh-comment-id:1798117224 --> @VincentHu1 commented on GitHub (Nov 7, 2023): same problem
Author
Owner

@AZEN-SGG commented on GitHub (Nov 19, 2023):

same problem, does anyone have a solution?

<!-- gh-comment-id:1817874107 --> @AZEN-SGG commented on GitHub (Nov 19, 2023): same problem, does anyone have a solution?
Author
Owner

@RVC-Boss commented on GitHub (Jan 26, 2024):

https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/blob/main/infer/modules/train/train.py
update this file. Maybe fix now.

<!-- gh-comment-id:1911635828 --> @RVC-Boss commented on GitHub (Jan 26, 2024): https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/blob/main/infer/modules/train/train.py update this file. Maybe fix now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RVC-Project/Retrieval-based-Voice-Conversion-WebUI#986
No description provided.