-
Notifications
You must be signed in to change notification settings - Fork 204
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
Is there anyway to compile codes in caffe tools folder so i can do training? #14
Comments
Sorry for my late response. Did you try to build glags for Android? But actually, it's not required to make it. You can simply copy and modify |
I just include the header files of gflag but i didn't use its compiled library, i noticed that it's not required. After compiling most dependencies for arm platform including leveldb, lmdb, snappy, and changing the caffe code a bit, now i can train mnist dataset and the trained model did get 98% accuracy after i loaded and tested it on my laptop. But only leveldb worked well, lmdb got some problems. Also i think start_logger() function may need to be changed a bit to print the training output from caffe correctly. I have putted it down for many days, hope could make it work more smoothly when i got time. |
Sorry for my possible misunderstanding. Your laptop? (ARM-based?) |
i mean i trained it on the phone, but during training from the output of my android studio it's quite messy, i am not sure how good the model trained, so i loaded to my laptop and test it, accuracy is fine. |
Wow, that's great!! |
Cmake is used to build the caffe lib now (except some modules. e.g. python, matlab, etc.). |
hello today i tried to add this into my Android.mk file so that i can compile caffe.cpp file, because i want to be able to train a network
i don't know if this is the right direction to make it able to train a network, i compiled gflags by myself and tried to link to it, but i got this error:
for the 4 functions in caffe.cpp file, i think it's because the gflags is not build with Android platform, but i don't know what should i do now, any guide towards making it able to train a network?
The text was updated successfully, but these errors were encountered: