Skip to content

Commit 17cebdd

Browse files
committed
fix bug in lsun
1 parent 0a04aaa commit 17cebdd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

torchvision/datasets/lsun.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def __init__(self, db_path, classes='train',
8787
# for each class, create an LSUNClassDataset
8888
self.dbs = []
8989
for c in self.classes:
90-
self.dbs.append(LSUNClassDataset(
90+
self.dbs.append(LSUNClass(
9191
db_path = db_path + '/' + c + '_lmdb',
9292
transform = transform))
9393

@@ -124,9 +124,9 @@ def __repr__(self):
124124
return self.__class__.__name__ + ' (' + self.db_path + ')'
125125

126126
if __name__ == '__main__':
127-
#lsun = LSUNClassDataset(db_path='/home/soumith/local/lsun/train/bedroom_train_lmdb')
127+
#lsun = LSUNClass(db_path='/home/soumith/local/lsun/train/bedroom_train_lmdb')
128128
#a = lsun[0]
129-
lsun = LSUNDataset(db_path='/home/soumith/local/lsun/train',
129+
lsun = LSUN(db_path='/home/soumith/local/lsun/train',
130130
classes=['bedroom_train', 'church_outdoor_train'])
131131
print(lsun.classes)
132132
print(lsun.dbs)

0 commit comments

Comments
 (0)