Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sh1r0/caffe-android-lib
Porting caffe to android platform
https://github.com/sh1r0/caffe-android-lib
android-platform caffe
Last synced: 18 days ago
JSON representation
Porting caffe to android platform
- Host: GitHub
- URL: https://github.com/sh1r0/caffe-android-lib
- Owner: sh1r0
- License: other
- Created: 2014-08-19T16:13:03.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-12-11T10:12:03.000Z (almost 6 years ago)
- Last Synced: 2024-07-31T22:53:54.529Z (3 months ago)
- Topics: android-platform, caffe
- Language: Shell
- Homepage:
- Size: 266 KB
- Stars: 508
- Watchers: 59
- Forks: 205
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Caffe-Android-Lib
===============## Goal
Porting [caffe](https://github.com/BVLC/caffe) to android platform### Support
* Up-to-date caffe ([d91572d](https://github.com/BVLC/caffe/commit/d91572da2ea5e63c9eaacaf013dfbcbc0ada5f67))
* CPU only
* No support for hdf5## Build
### RECOMMENDED: Using Docker
```sh
git clone --recursive https://github.com/sh1r0/caffe-android-lib.git
cd caffe-android-lib
# build image
docker build -t caffe-android-lib .
# run a container for building your own caffe-android-lib, e.g.,
docker run --rm --name caffe-android-builder \
-e ANDROID_ABI=x86_64 \
-e N_JOBS=2 \
-v $(pwd)/android_lib/x86_64:/caffe-android-lib/android_lib \
caffe-android-lib ./build.sh
```### On local machine
Tested with Android NDK r11c and cmake 3.5.2 on Ubuntu 14.04
```sh
git clone --recursive https://github.com/sh1r0/caffe-android-lib.git
cd caffe-android-lib
export ANDROID_ABI=x86_64
export NDK_ROOT=/path/to/ndk
./build.sh
```### NOTE: OpenBLAS
OpenBLAS is the only supported BLAS choice now, and the supported ABIs are the following:* `armeabi`
* `armeabi-v7a`
* `arm64-v8a` (default)
* `x86`
* `x86_64`## Issues
Any comments, issues or PRs are welcomed.
Thanks.## TODO
- [ ] Integrate using CMake's ExternalProject
- [ ] Support HDF5
- [ ] OpenCL support
- [ ] CUDA suuport## Optional
`.envrc` files are for [direnv](http://direnv.net/)
> direnv is an environment variable manager for your shell. It knows how to hook into bash, zsh and fish shell to load or unload environment variables depending on your current directory. This allows to have project-specific environment variables and not clutter the "~/.profile" file.