GithubHelp home page GithubHelp logo

Comments (6)

sh1r0 avatar sh1r0 commented on May 27, 2024

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 train() in caffe/tools/caffe.cpp and put it somewhere (e.g., caffe_mobile.cpp) and implement a corresponding jni call for the usage.

from caffe-android-lib.

ZhengRui avatar ZhengRui commented on May 27, 2024

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.

from caffe-android-lib.

sh1r0 avatar sh1r0 commented on May 27, 2024

Sorry for my possible misunderstanding. Your laptop? (ARM-based?)

from caffe-android-lib.

ZhengRui avatar ZhengRui commented on May 27, 2024

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.

from caffe-android-lib.

sh1r0 avatar sh1r0 commented on May 27, 2024

Wow, that's great!!

from caffe-android-lib.

sh1r0 avatar sh1r0 commented on May 27, 2024

Cmake is used to build the caffe lib now (except some modules. e.g. python, matlab, etc.).

from caffe-android-lib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.