caffe-mobile icon indicating copy to clipboard operation
caffe-mobile copied to clipboard

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

Open BenjaminLiCN opened this issue 6 years ago • 2 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

BenjaminLiCN avatar May 05 '18 16:05 BenjaminLiCN

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 avatar May 05 '18 16:05 BenjaminLiCN

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

solrex avatar Aug 06 '18 04:08 solrex