-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Update LSUN Dataset class #452
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
Conversation
torchvision/datasets/lsun.py
Outdated
self.root = os.path.expanduser(root) | ||
self.transform = transform | ||
self.target_transform = target_transform | ||
self.classes = classes |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
'Options are: ' + str(dset_opts))) | ||
else: | ||
raise(ValueError('Unknown option for classes')) | ||
self.classes = classes |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
dset_opts = ['train', 'val', 'test'] | ||
self.db_path = db_path | ||
self.root = os.path.expanduser(root) | ||
self.transform = transform |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
thanks @jaesuny ! |
How can I create the LSUNClass LMDB? |
@chenguanfu511 I don't know, I have never used LSUN, but I would expect that the original datasets are in LMDB format? |
Fix uninitialized instance variable in
LSUN.__repr__
Maintain consistency with other Dataset classes