Error when training voice #105

Closed
opened 2023-03-10 01:50:00 +00:00 by ThrowawayAccount01 · 2 comments

Did a fresh install. When trying to run training, I get the following error:

C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning>call .\venv\Scripts\activate.bat
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Spawning process:  train.bat ./training/21/train.yaml
[Training] [2023-03-10T09:47:30.760076]
[Training] [2023-03-10T09:47:30.764080] (venv) C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning>call .\venv\Scripts\activate.bat
[Training] [2023-03-10T09:47:32.530816] Using BitsAndBytes ADAMW optimizations
[Training] [2023-03-10T09:47:32.534816] Traceback (most recent call last):
[Training] [2023-03-10T09:47:32.536818]   File "C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning\src\train.py", line 94, in <module>
[Training] [2023-03-10T09:47:32.540331]     train(args.opt, args.launcher)
[Training] [2023-03-10T09:47:32.544338]   File "C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning\src\train.py", line 57, in train
[Training] [2023-03-10T09:47:32.547851]     opt = option.parse(yaml, is_train=True)
[Training] [2023-03-10T09:47:32.552246]   File "C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning\./modules/dlas/codes\utils\options.py", line 44, in parse
[Training] [2023-03-10T09:47:32.557244]     experiments_root = osp.join(opt['path']['root'], 'training', opt['name'], "finetune")
[Training] [2023-03-10T09:47:32.559759]   File "C:\Users\LXC PC\AppData\Local\Programs\Python\Python39\lib\ntpath.py", line 117, in join
[Training] [2023-03-10T09:47:32.562766]     genericpath._check_arg_types('join', path, *paths)
[Training] [2023-03-10T09:47:32.566764]   File "C:\Users\LXC PC\AppData\Local\Programs\Python\Python39\lib\genericpath.py", line 152, in _check_arg_types
[Training] [2023-03-10T09:47:32.568763]     raise TypeError(f'{funcname}() argument must be str, bytes, or '
[Training] [2023-03-10T09:47:32.571830] TypeError: join() argument must be str, bytes, or os.PathLike object, not 'int'
Did a fresh install. When trying to run training, I get the following error: ``` C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning>call .\venv\Scripts\activate.bat Running on local URL: http://127.0.0.1:7860 To create a public link, set `share=True` in `launch()`. Spawning process: train.bat ./training/21/train.yaml [Training] [2023-03-10T09:47:30.760076] [Training] [2023-03-10T09:47:30.764080] (venv) C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning>call .\venv\Scripts\activate.bat [Training] [2023-03-10T09:47:32.530816] Using BitsAndBytes ADAMW optimizations [Training] [2023-03-10T09:47:32.534816] Traceback (most recent call last): [Training] [2023-03-10T09:47:32.536818] File "C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning\src\train.py", line 94, in <module> [Training] [2023-03-10T09:47:32.540331] train(args.opt, args.launcher) [Training] [2023-03-10T09:47:32.544338] File "C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning\src\train.py", line 57, in train [Training] [2023-03-10T09:47:32.547851] opt = option.parse(yaml, is_train=True) [Training] [2023-03-10T09:47:32.552246] File "C:\Users\LXC PC\Desktop\mrqtts\ai-voice-cloning\./modules/dlas/codes\utils\options.py", line 44, in parse [Training] [2023-03-10T09:47:32.557244] experiments_root = osp.join(opt['path']['root'], 'training', opt['name'], "finetune") [Training] [2023-03-10T09:47:32.559759] File "C:\Users\LXC PC\AppData\Local\Programs\Python\Python39\lib\ntpath.py", line 117, in join [Training] [2023-03-10T09:47:32.562766] genericpath._check_arg_types('join', path, *paths) [Training] [2023-03-10T09:47:32.566764] File "C:\Users\LXC PC\AppData\Local\Programs\Python\Python39\lib\genericpath.py", line 152, in _check_arg_types [Training] [2023-03-10T09:47:32.568763] raise TypeError(f'{funcname}() argument must be str, bytes, or ' [Training] [2023-03-10T09:47:32.571830] TypeError: join() argument must be str, bytes, or os.PathLike object, not 'int' ```
Owner

./training/21/

Oh, it's something really silly. The way I'm making the config is by string replacement instead of just loading the YAML, setting the keys, and exporting it like a normal person. Your dataset name is being interpreted as an int, because YAML, for god knows why, doesn't require string values to be wrapped in quotes, so I never thought to wrap it in quotes.

I'll fix it by editing the template to wrap them in quotes, but for now you can either:

  • manually do it yourself by editing the train.yaml (set name: 21 to name: '21')
  • rename your dataset name

I'll fix it in a moment.

> ./training/21/ Oh, it's something really silly. The way I'm making the config is by string replacement instead of just loading the YAML, setting the keys, and exporting it like a normal person. Your dataset name is being interpreted as an int, because YAML, for god knows why, doesn't require string values to be wrapped in quotes, so I never thought to wrap it in quotes. I'll fix it by editing the template to wrap them in quotes, but for now you can either: * manually do it yourself by editing the train.yaml (set `name: 21` to `name: '21'`) * rename your dataset name I'll fix it in a moment.
Owner

Remedied in d3184004fd. Untested, but I'm very confident it works.

Another quick bandaid fix solution was to wrap it yourself, but would have required you to force-update with git fetch --all and git reset --hard origin/master (icky).

Remedied in d3184004fd08d99fc87ecd3dd15de19705b486a6. Untested, but I'm very confident it works. Another quick bandaid fix solution was to wrap it yourself, but would have required you to force-update with `git fetch --all` and `git reset --hard origin/master` (icky).
mrq closed this issue 2023-03-10 01:59:30 +00: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#105
No description provided.