Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

num_samples=0 #88

Open
sergedahdouh opened this issue Jun 28, 2023 · 2 comments
Open

num_samples=0 #88

sergedahdouh opened this issue Jun 28, 2023 · 2 comments

Comments

@sergedahdouh
Copy link

----------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
Copy link
Collaborator

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

@sergedahdouh
Copy link
Author

sergedahdouh commented Jun 28, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants