soumith / imagenet-multiGPU.torch

an imagenet example in torch.
BSD 2-Clause "Simplified" License
402 stars 158 forks source link

png file in ILSVRC12 #43

Closed ppwwyyxx closed 8 years ago

ppwwyyxx commented 8 years ago

The n02105855_2933.JPEG in ILSVRC12_img_train.tar is actually a PNG file. This is also reported here: https://github.com/cytsai/ilsvrc-cmyk-image-list

This will crash the image loader because image.load uses extension to get file format.

Did you manually convert it to jpg? Maybe add this to README to help others avoid this.

soumith commented 8 years ago

yes i manually converted it to jpg. I'll add a robust loading function.

soumith commented 8 years ago

hi! if you reinstall the image package, we handle this properly now.

luarocks install image