hhqweasd / G2R-ShadowNet

CVPR2021 From Shadow Generation to Shadow Removal
53 stars 12 forks source link

ValueError: num_samples should be a positive integer value, but got num_samples=0 #2

Closed subhrajyotidasgupta closed 3 years ago

subhrajyotidasgupta commented 3 years ago

Hey.

I'm getting a ValueError: ValueError: num_samples should be a positive integer value, but got num_samples=0 occurring at:

File "train.py", line 95, in <module>
    dataloader = DataLoader(ImageDataset(opt.dataroot, unaligned=True), batch_size=opt.batchSize, shuffle=True, num_workers=opt.n_cpu)

I downloaded the adjusted ISTD dataset from the provided link and providing the root path in the train.py file. What exactly is the issue? Am I missing something?

hhqweasd commented 3 years ago

Please make sure your~/PAISTD8/ folder look like this

PAISTD8
├── train/
    ├── train_A/
    │   └── 90-1.png
    │   └── ...
    ├── train_B/
    │   └── ...
    └── ...
subhrajyotidasgupta commented 3 years ago

Thanks for adding the dir structure.