solrex / caffe-mobile

Optimized (for size and speed) Caffe lib for iOS and Android with out-of-the-box demo APP.
Other
317 stars 121 forks source link

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

Open BenjaminLiCN opened 6 years ago

BenjaminLiCN commented 6 years ago

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

BenjaminLiCN commented 6 years ago

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:
solrex commented 6 years ago

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