solrex / caffe-mobile

Optimized (for size and speed) Caffe lib for iOS and Android with out-of-the-box demo APP.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I replaced a new test_image but the result is still 8? Does it really work?

BenjaminLiCN opened this issue · comments

It's your original lenet protobin and caffemodel, I replaced the image with a "5", 28*28 size image, and the result shows it's [8]
image

Think I'll reclone this again and test if this is because I modified one of those files.
--update
It didn't work. I modified tools/prototxt2bin.py, could it be the problem?

#line 8
sys.path.append(path.abspath("../build_iPhoneOS/include/caffe/proto/"))
#line 27
 with open(basename + '.protobin', 'wb+') as f:

@BenjaminLiCN In ViewController.mm , you will find 2 lines of :
NSString *test_file_path = FilePathForResourceName(@"test_image", @"jpg"); One for view, one for predict.