Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BenjaminLiCN opened this issue May 5, 2018 · 2 comments

Comments

@BenjaminLiCN
Copy link

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
Copy link
Author

BenjaminLiCN commented May 5, 2018

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
Copy link
Owner

solrex commented Aug 6, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants