android's People
android's Issues
Tensorflow demo
安装配置 TensorFlow on Android
首先先根据提示把Demo跑起来,后面的工作在此基础上进行。
1)安装 Android Studio
去官网下载安装即可。
2)在Github上 clone TensorFlow
git clone https://github.com/tensorflow/tensorflow
3)搭建 Android Studio环境
打开Android Studio,选择 “Open an existing Android Studio project”,在“Open File or Project ”,选择在2)中对应的 tensorflow/examples/android 文件夹,OK。如果需要“Gradle Sync”,选择OK。第一次启动可能需要安装或更新很多模块,耐心等待。
4) 在 build.gradle 文件中(在左侧 1:Project 面板 Android 下面 Gradle Scripts ),找到 nativeBuildSystem 这个变量,设置等于 “none”:
// set to 'bazel', 'cmake', 'makefile', 'none'
def nativeBuildSystem = 'none'
- 点击上方菜单 Run -> Run 'android' 命令, 在弹出菜单选择 右侧的 Proceed Without Instant Run。
6)同时,打开手机的开发者模式与USB调试,用USB连接电脑。不同手机方法不同,自行百度。
成功连接后运行命令时会识别对应手机型号,选择后继续,将会在手机上安装4个不同的APP,期间注意查看手机,允许安装(默认会拒绝)。
ref:
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.