Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ python2.7 download.py -o <data_dir>
python2.7 download.py -c bedroom
# Download testing set
python2.7 download.py -c test
# Download validation set
python2.7 download.py -c val
```

## Demo code
Expand Down
3 changes: 3 additions & 0 deletions download.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ def main():
else:
if args.category == 'test':
download(args.out_dir, '', 'test', args.tag)
elif args.category == 'val':
for category in categories:
download(args.out_dir, category, 'val', args.tag)
elif args.category not in categories:
print('Error:', args.category, "doesn't exist in",
args.tag, 'LSUN release')
Expand Down