The Wayback Machine - https://web.archive.org/web/20201105084342/https://github.com/yunjey/pytorch-tutorial/pull/183
Skip to content
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

Update resize.py #183

Open
wants to merge 1 commit into
base: master
from
Open

Update resize.py #183

wants to merge 1 commit into from

Conversation

@Anirudh257
Copy link

@Anirudh257 Anirudh257 commented Jul 12, 2019

Added the lines "ImageFile.LOAD_TRUNCATED_IMAGES = True" to ensure that even truncated images can be downloaded and " if imghdr.what(os.path.join(image_dir, image)) != None:" to load only correct images and ignore corrupted images.

Added the lines "ImageFile.LOAD_TRUNCATED_IMAGES = True" to ensure that even truncated images can be downloaded and "            if imghdr.what(os.path.join(image_dir, image)) != None:" to load only correct images and ignore corrupted images.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.