Skip to content

Commit 83263d8

Browse files
zauonloksoumith
authored andcommitted
Fix LSUN IndexError (#177)
1 parent cd8c0c3 commit 83263d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/datasets/lsun.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def __getitem__(self, index):
114114
if index < ind:
115115
break
116116
target += 1
117-
sub += ind
117+
sub = ind
118118

119119
db = self.dbs[target]
120120
index = index - sub

0 commit comments

Comments
 (0)