PlayVoice / lora-svc

singing voice change based on whisper, and lora for singing voice clone
MIT License
630 stars 78 forks source link

num_samples=0 #88

Open sergedahdouh opened 1 year ago

sergedahdouh commented 1 year ago

----------0---------- Traceback (most recent call last): File "/content/lora-svc/prepare/preprocess_zzz.py", line 14, in trainloader = create_dataloader(hp, True) File "/content/lora-svc/utils/dataloader.py", line 35, in create_dataloader return DataLoader(dataset=dataset, batch_size=hp.train.batch_size, shuffle=True, File "/usr/local/lib/python3.10/dist-packages/torch/utils/data/dataloader.py", line 351, in init sampler = RandomSampler(dataset, generator=generator) # type: ignore[arg-type] File "/usr/local/lib/python3.10/dist-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 any idea

MaxMax2016 commented 1 year ago

maybe there has error, when do step 0~ step 7, you can check the steps before.

sergedahdouh commented 1 year ago

maybe there has error, when do step 0~ step 7, you can check the steps before.

thank you for your reply, the issue is coming that in the file where train.txt is empty

when i run !python prepare/preprocess_train.py is giving empty

Screenshot 2023-06-28 at 16 08 41