Simple Question: Loading multiple images in caffe (python)

384 views
Skip to first unread message

xksteven

unread,
Jul 11, 2015, 2:11:19 AM7/11/15
to caffe...@googlegroups.com
I was following the example python notebook 00-classification.ipynb and also this comment  about loading the image names into a list.

I tried following the classification example changing these two lines

images = [caffe_root + 'examples/images/cat.jpg',caffe_root + 'examples/images/fishbike.jpg']
net
.blobs['data'].data[...] = transformer.preprocess('data', caffe.io.load_image(images)

but then I get the error :

AttributeError: 'list' object has no attribute 'read'

Is there a way to do this or do I need to first convert the files to LMDB or LEVELDB? Then specify the files in the prototxt and then call net.forward()?



waspinator

unread,
Dec 13, 2015, 4:49:39 PM12/13/15
to Caffe Users
figure it out?
Reply all
Reply to author
Forward
0 new messages