-
Notifications
You must be signed in to change notification settings - Fork 1.6k
release load SVHN #422
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
release load SVHN #422
Conversation
|
we should use shutil.move instead of |
tensorlayer/files.py
Outdated
| tag_folder_list.sort(key=lambda s: int(s.split('/')[-1])) # folder/images/ddd | ||
| tag_folder_list = load_folder_list(os.path.join(path, "tags")) | ||
|
|
||
| from sys import platform as _platform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use os.path.basename instead of if else platform
| import sys | ||
| import tarfile | ||
| import zipfile | ||
| import time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another import time on #L1130 could be removed now.
| >>> images = tl.files.load_flickr1M_dataset(tag='zebra') | ||
| """ | ||
| import shutil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should almost always put import on top of file:
https://stackoverflow.com/questions/1188640/good-or-bad-practice-in-python-import-in-the-middle-of-a-file
shutil is a standard module in python, it should be cheap to import.
* release load SVHN * fixed codacy * fix liguo suggestion
No description provided.