Premature end of JPEG file

470 views
Skip to first unread message

li kai

unread,
May 14, 2015, 4:33:00 AM5/14/15
to caffe...@googlegroups.com
When I use creat_imagenet.sh to create my own lmdb dataset.
Creating val lmdb...
I0514 16:29:36.887035 30266 convert_imageset.cpp:79] Shuffling data
I0514 16:29:38.325266 30266 convert_imageset.cpp:82] A total of 10000 images.
I0514 16:29:38.329205 30266 db.cpp:34] Opened lmdb porn_val_lmdb
Premature end of JPEG file


What's the meaning of "Premature end of JPEG file"?

Christopher Tensmeyer

unread,
May 14, 2015, 8:46:09 AM5/14/15
to caffe...@googlegroups.com
I assume that it means your JPEG is corrupted, or what it was actually reading is not a JPEG.  Essentially the JPEG parser read the header to find the image size and started reading data, but it hit the End Of File before it had read all of the data specified in the header.
Reply all
Reply to author
Forward
0 new messages