Training error: ValueError: num_samples should be a positive integer value, but got num_samples=0 #7

Closed
opened 2023-08-30 14:14:19 +07:00 by Bluebomber182 · 1 comments

I got this error after updating both ai voice cloning and vall-e

Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/user/ai-voice-cloning/modules/vall-e/vall_e/train.py", line 190, in
main()
File "/home/user/ai-voice-cloning/modules/vall-e/vall_e/train.py", line 163, in main
train_dl, subtrain_dl, val_dl = create_train_val_dataloader()
File "/home/user/ai-voice-cloning/modules/vall-e/vall_e/data.py", line 538, in create_train_val_dataloader
val_dl = _create_dataloader(val_dataset, training=False)
File "/home/user/ai-voice-cloning/modules/vall-e/vall_e/data.py", line 509, in _create_dataloader
return DataLoader(
File "/home/user/ai-voice-cloning/venv/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 351, in init
sampler = RandomSampler(dataset, generator=generator) # type: ignore[arg-type]
File "/home/user/ai-voice-cloning/venv/lib/python3.10/site-packages/torch/utils/data/sampler.py", line 107, in init
raise ValueError("num_samples should be a positive integer "
ValueError: num_samples should be a positive integer value, but got num_samples=0
[2023-08-30 07:04:37,880] [INFO] [launch.py:315:sigkill_handler] Killing subprocess 20141
[2023-08-30 07:04:37,880] [ERROR] [launch.py:321:sigkill_handler] ['/home/user/ai-voice-cloning/venv/bin/python3.10', '-u', '-m', 'vall_e.train', '--local_rank=0', 'yaml=/home/user/ai-voice-cloning/training/voice/config.yaml'] exits with return code = 1

I got this error after updating both ai voice cloning and vall-e Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/home/user/ai-voice-cloning/modules/vall-e/vall_e/train.py", line 190, in <module> main() File "/home/user/ai-voice-cloning/modules/vall-e/vall_e/train.py", line 163, in main train_dl, subtrain_dl, val_dl = create_train_val_dataloader() File "/home/user/ai-voice-cloning/modules/vall-e/vall_e/data.py", line 538, in create_train_val_dataloader val_dl = _create_dataloader(val_dataset, training=False) File "/home/user/ai-voice-cloning/modules/vall-e/vall_e/data.py", line 509, in _create_dataloader return DataLoader( File "/home/user/ai-voice-cloning/venv/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 351, in __init__ sampler = RandomSampler(dataset, generator=generator) # type: ignore[arg-type] File "/home/user/ai-voice-cloning/venv/lib/python3.10/site-packages/torch/utils/data/sampler.py", line 107, in __init__ raise ValueError("num_samples should be a positive integer " ValueError: num_samples should be a positive integer value, but got num_samples=0 [2023-08-30 07:04:37,880] [INFO] [launch.py:315:sigkill_handler] Killing subprocess 20141 [2023-08-30 07:04:37,880] [ERROR] [launch.py:321:sigkill_handler] ['/home/user/ai-voice-cloning/venv/bin/python3.10', '-u', '-m', 'vall_e.train', '--local_rank=0', 'yaml=/home/user/ai-voice-cloning/training/voice/config.yaml'] exits with return code = 1

In the training YAML, copy over what's in the dataset.training into the dataset.validation. I could have sworn I had it fall back and do this itself for the validation dataset/dataloader, but I guess not.

In the training YAML, copy over what's in the `dataset.training` into the `dataset.validation`. I could have sworn I had it fall back and do this itself for the validation dataset/dataloader, but I guess not.
Sign in to join this conversation.
No Label
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/vall-e#7
There is no content yet.