Skip to content

Conversation

jaesuny
Copy link
Contributor

@jaesuny jaesuny commented Mar 21, 2018

  • Fix uninitialized instance variable in LSUN.__repr__

  • Maintain consistency with other Dataset classes

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.

'Options are: ' + str(dset_opts)))
else:
raise(ValueError('Unknown option for classes'))
self.classes = classes

This comment was marked as off-topic.

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.

@soumith soumith merged commit 73a29e0 into pytorch:master Mar 21, 2018
@soumith
Copy link
Member

soumith commented Mar 21, 2018

thanks @jaesuny !

@jaesuny jaesuny deleted the patch-1 branch March 21, 2018 17:47
@jaesuny jaesuny restored the patch-1 branch March 23, 2018 07:52
@jaesuny jaesuny deleted the patch-1 branch March 23, 2018 08:15
@jaesuny jaesuny mentioned this pull request Mar 23, 2018
@chenguanfu511
Copy link

How can I create the LSUNClass LMDB?

@fmassa
Copy link
Member

fmassa commented Jul 12, 2019

@chenguanfu511 I don't know, I have never used LSUN, but I would expect that the original datasets are in LMDB format?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants