Atharva-Phatak / Manga-Colorizer

Use Pix2Pix to learn to colorize the manga.
MIT License
6 stars 2 forks source link

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

Open My12123 opened 1 year ago

My12123 commented 1 year ago

(venv) F:\Manga-Colorizer\src>python F:\Manga-Colorizer\src\train-gan.py Traceback (most recent call last): File "F:\Manga-Colorizer\src\train-gan.py", line 28, in train_dl = torch.utils.data.DataLoader(train_ds, batch_size=16, shuffle=True) File "F:\Manga-Colorizer\venv\lib\site-packages\torch\utils\data\dataloader.py", line 349, in init sampler = RandomSampler(dataset, generator=generator) # type: ignore[arg-type] File "F:\Manga-Colorizer\venv\lib\site-packages\torch\utils\data\sampler.py", line 140, in init raise ValueError(f"num_samples should be a positive integer value, but got num_samples={self.num_samples}") ValueError: num_samples should be a positive integer value, but got num_samples=0

Keiser04 commented 1 year ago

that happened to me with manga colorizer, you are missing the examples for the test (equivalent to real_manga).