ModuleNotFoundError when attempting to run training #135

Closed
opened 2023-03-14 23:21:12 +07:00 by Somdudewillson · 2 comments

When I attempt to run training, it promptly fails with this error (some portions of file paths replaced with [REDACTED]):

[Training] [2023-03-14T16:13:55.059971] Traceback (most recent call last):
[Training] [2023-03-14T16:13:55.062972]   File "[REDACTED]\ai-voice-cloning\src\train.py", line 65, in <module>
[Training] [2023-03-14T16:13:55.067972]     from codes import train as tr
[Training] [2023-03-14T16:13:55.070973]   File "[REDACTED]\ai-voice-cloning\./modules/dlas\codes\train.py", line 13, in <module>
[Training] [2023-03-14T16:13:55.074556]     from data.data_sampler import DistIterSampler
[Training] [2023-03-14T16:13:55.077558]   File "[REDACTED]\ai-voice-cloning\./modules/dlas/codes\data\__init__.py", line 6, in <module>
[Training] [2023-03-14T16:13:55.080557]     from utils.util import opt_get
[Training] [2023-03-14T16:13:55.084557]   File "[REDACTED]\ai-voice-cloning\./modules/dlas/codes\utils\util.py", line 25, in <module>
[Training] [2023-03-14T16:13:55.087555]     from torch._six import inf
[Training] [2023-03-14T16:13:55.090554] ModuleNotFoundError: No module named 'torch._six'
When I attempt to run training, it promptly fails with this error (some portions of file paths replaced with `[REDACTED]`): ``` [Training] [2023-03-14T16:13:55.059971] Traceback (most recent call last): [Training] [2023-03-14T16:13:55.062972] File "[REDACTED]\ai-voice-cloning\src\train.py", line 65, in <module> [Training] [2023-03-14T16:13:55.067972] from codes import train as tr [Training] [2023-03-14T16:13:55.070973] File "[REDACTED]\ai-voice-cloning\./modules/dlas\codes\train.py", line 13, in <module> [Training] [2023-03-14T16:13:55.074556] from data.data_sampler import DistIterSampler [Training] [2023-03-14T16:13:55.077558] File "[REDACTED]\ai-voice-cloning\./modules/dlas/codes\data\__init__.py", line 6, in <module> [Training] [2023-03-14T16:13:55.080557] from utils.util import opt_get [Training] [2023-03-14T16:13:55.084557] File "[REDACTED]\ai-voice-cloning\./modules/dlas/codes\utils\util.py", line 25, in <module> [Training] [2023-03-14T16:13:55.087555] from torch._six import inf [Training] [2023-03-14T16:13:55.090554] ModuleNotFoundError: No module named 'torch._six' ```

Note: I was able to fix the issue locally by changing the line in question to from torch import inf.

Note: I was able to fix the issue locally by changing the line in question to `from torch import inf`.

Fixed in mrq/DL-Art-School commit fd375670eb.

This was due to torch2.0.0 silently releasing upstream.

Fixed in mrq/DL-Art-School commit https://git.ecker.tech/mrq/DL-Art-School/commit/fd375670eb8a6fb8698e916d8cc9edfde03943b2. This was due to torch2.0.0 silently releasing upstream.
mrq closed this issue 2023-03-15 16:27:46 +07:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
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: mrq/ai-voice-cloning#135
There is no content yet.