pytorch-tutorial icon indicating copy to clipboard operation
pytorch-tutorial copied to clipboard

Update resize.py

Open Anirudh257 opened this issue 6 years ago • 0 comments

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.

Anirudh257 avatar Jul 12 '19 13:07 Anirudh257