项目
在 GitHub 查看
sh1r0/caffe-android-lib
关于
将 Caffe 移植到 Android 平台。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Caffe-Android-Lib
Goal
Porting caffe to android platform
Support
- Up-to-date caffe (d91572d)
- CPU only
- No support for hdf5
Build
RECOMMENDED: Using Docker
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
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:
armeabiarmeabi-v7aarm64-v8a(default)x86x86_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
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.
探索相关项目
加载中…