labmlai / annotated_deep_learning_paper_implementations

🧑‍🏫 60 Implementations/tutorials of deep learning papers with side-by-side notes 📝; including transformers (original, xl, switch, feedback, vit, ...), optimizers (adam, adabelief, sophia, ...), gans(cyclegan, stylegan2, ...), 🎮 reinforcement learning (ppo, dqn), capsnet, distillation, ... 🧠

Home Page:https://nn.labml.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

want to use CelebA dataset,but there is an issue

Z0Victor opened this issue · comments

commented

PLZ

commented

File "F:\pycharmprojects\pythonProject\diffusion-git\ddpm\experiment.py", line 104, in init
self.data_loader = torch.utils.data.DataLoader(self.dataset, self.batch_size, shuffle=True, pin_memory=True)
File "D:\Annaconda\envs\pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 344, in init
sampler = RandomSampler(dataset, generator=generator) # type: ignore[arg-type]
File "D:\Annaconda\envs\pytorch\lib\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

why data can't be loaded? how to fix it,I put the CelebA data in /ddpm/data/CelebA

The data path is [project_folder]/data/celebA