-
Notifications
You must be signed in to change notification settings - Fork 476
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
new data set #30
Comments
i have the same problem. I change the path to a new dataset. I get error but I can't figure it out. |
You just need to add a few lines to For def load_custom(self):
transforms = self.transform(True, True, True, False) # last arg is crop
dataset = dsets.ImageFolder(self.path+'/custom', transform=transforms)
return dataset
def loader(self):
if self.dataset == 'lsun':
dataset = self.load_lsun()
elif self.dataset == 'celeb':
dataset = self.load_celeb()
elif self.dataset == 'custom':
dataset = self.load_custom()
loader = torch.utils.data.DataLoader(dataset=dataset,
batch_size=self.batch,
shuffle=self.shuf,
num_workers=2,
drop_last=True)
return loader In the |
But when I modified it by your introduction, it shows that he found 0 files. Do you have the same problem? How to figure it out? |
I meet this question too. it show "RuntineError: Found 0 files in subfolders " . The reson is your data path is not correct. you path should be ./data/celebA/"class_name"/1.jpg ........ you can reference The functiong "torchvision.datasets.ImageFolder()", |
Hi,
I want to use a different data set not available via pytorch. I get error and tried different tricks but did not work. Could you please let me know how can add the path of my data set to this code to work.
The text was updated successfully, but these errors were encountered: