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

File not found #50

Closed
DushyantMainwal opened this issue Dec 31, 2016 · 7 comments
Closed

File not found #50

DushyantMainwal opened this issue Dec 31, 2016 · 7 comments

Comments

@DushyantMainwal
Copy link

DushyantMainwal commented Dec 31, 2016

I'm getting a file not found error..

Check failed: fd != -1 (-1 vs. -1) File not found: /storage/emulated/0/caffe_mobile/plantClassification/weights.caffemodel

@DushyantMainwal DushyantMainwal changed the title No such file or directory Can't find deploy.prototxt Dec 31, 2016
@DushyantMainwal DushyantMainwal changed the title Can't find deploy.prototxt File not found Jan 1, 2017
@billygl
Copy link

billygl commented Jan 2, 2017

have you checked this
#41 ?

@DushyantMainwal
Copy link
Author

Permissions are working fine..
Can you tell me why it looks for the files in plantClassification folder and not in the pushed bvlc_reference_caffenet folder??
After making the folder plantClassification and moving the 4 files(deploy.ptototxt, readme.md, solver.prototxt, train_val_prototxt) it shows..
Check failed: fd != -1 (-1 vs. -1) File not found: /storage/emulated/0/caffe_mobile/plantClassification/weights.caffemodel
why does it asks for weights.caffemodel??

In lower API (18) it gives an UnsatisfiedLinkError..
cannot locate symbol "sigfillset" referenced by "libcaffe.so"..

@sh1r0
Copy link
Owner

sh1r0 commented Jan 4, 2017

@DushyantMainwal Did you do a fresh clone of this repository or make any modification? As for API version issue, please refer to #40 (comment).

@DushyantMainwal
Copy link
Author

Here's what I did:
->Cloned the BVLC/caffe.git
->Downloaded the bvlc_reference_caffenet.caffemodel(232mb) from readme.md because ./scripts/download_model_binary.py wasn't working
->pushed the files from models/bvlc_reference_caffenet/ into /sdcard/caffe_mobile/bvlc_reference_caffenet/ (all 5 files)
-> After that I cloned this (caffe-android-demo) project
-> and then build the project successfully (except it coludn't resolve the JNI fuctions in CaffeMobile.java)
-> but when I tried to ran the project into my phone, it shows the error..
Check failed: fd != -1 (-1 vs. -1) File not found: /storage/emulated/0/caffe_mobile/plantClassification/deploy.prototxt
-> For some reason it was looking for the files in plantClassification folder
-> Then I made the plantClassification folder in my /sdcard/ and moved all 5 files into it
-> After running the project again, it shows ..
Check failed: fd != -1 (-1 vs. -1) File not found: /storage/emulated/0/caffe_mobile/plantClassification/weights.caffemodel

@sh1r0
Copy link
Owner

sh1r0 commented Jan 4, 2017

@DushyantMainwal I think you cloned the forked one (https://github.com/sippel93/caffe-android-demo) instead of this repo.

@DushyantMainwal
Copy link
Author

DushyantMainwal commented Jan 4, 2017

@sh1r0 I forked the repo again and it worked, Thank you for the solution
Before closing this issue can you tell why does it gives a warning can't resolve JNI functions and still uses a native function for loading the models, and can you please provide me a link for using custom trained model.
Thanks again for your time

@sh1r0
Copy link
Owner

sh1r0 commented Jan 5, 2017

@DushyantMainwal

  1. If you got any warnings about jni, please check your api level and the abi of your target device.
  2. You could modify the model loading part to meet your need.

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

3 participants