Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Android+TensorflowでAI画像生成
Search
nakawai
September 30, 2017
Programming
85
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Android+TensorflowでAI画像生成
nakawai
September 30, 2017
More Decks by nakawai
See All by nakawai
AI機能プロジェクト炎上の 3つのしくじりと学び
nakawai
0
380
AI駆動プロダクト開発で最速価値検証
nakawai
0
590
エンジニアがエンジニアリングマネージャーになって最初にやったこと
nakawai
1
1.4k
電卓アプリで再帰降下法を使った話
nakawai
0
390
AndroidでSRCNN(超解像ニューラルネットワーク) 2017
nakawai
0
80
Androidで超解像ニューラルネットワークできる?
nakawai
0
100
Other Decks in Programming
See All in Programming
Web3Dライブラリを作ってVue Custom Rendererの仕組みを理解しよう / lets learn vue custom renderer by making 3d library
drumath2237
1
120
SODA - FACT BOOK(EN)
sodainc
1
200
Vapor Mode でアクセシビリティは 壊れないか検証した話
fuqda
1
320
Python Lambdaにおけるテストしやすい設計とAI支援の活用 / Designing Testable Python Lambda Functions with AI
kitano_yuichi
1
290
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
350
Apple Intelligenceとオンデバイス時代の到来
yahir0
0
200
Seven New Principles of Software Engineering
yegor256
0
440
AIが実装を担う時代の「技術設計」と「チームマネジメント」
kamina_zzz
1
140
Long Living Tokens, Die, Die, Die! (or: The One Ring is Banned in Modern)
sylph01
0
410
AIで開発が速くなった先で、開発チームは何を目指すか
shihochan
1
2k
S3 TablesのIcebergデータに、AIエージェントからアクセスしてみた / 20261016developersio2026joetsu-accessing-iceberg-in-s3tables-via-agent
kasacchiful
PRO
0
270
プロジェクトコードをキレイキレイしよう!暗黙的な参照を読み解く静的解析
ostk0069
0
200
Featured
See All Featured
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
810
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Exploring anti-patterns in Rails
aemeredith
4
560
Faster Mobile Websites
deanohume
310
32k
Bash Introduction
62gerente
615
220k
Writing Fast Ruby
sferik
630
63k
Are puppies a ranking factor?
jonoalderson
2
4.1k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
Intergalactic Javascript Robots from Outer Space
tanoku
273
28k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Transcript
Androidで TensorFlow かものはし 2017/9/30 @kawai
いきさつ
ディープ ラーニング すごい
Androidでも CNN動かしたい! CNN=畳み込みニューラルネットワーク
Java + RenderScriptで 実装できるらしい 参考にさせていただいた記事: http://www.kaede-software.com/2015/06/renderscript_ja.html
実装できた! けど処理時間が…
None
“When we started building TensorFlow, supporting mobile devices was a
top priority.” https://developers-jp.googleblog.com/2016/07/tensorflow-v09.html
waifu2x TensorFlowへ再移植 RenderScript
① ② ①tfへの移植例:https://github.com/mrkn/tf-waifu2x
流れ
1. tfのGraphにする 2. Graphを書き出す(*.pb) 3. AndroidでGraphを読み込む 4. Androidで実行
tf.train.write_graph(def) 移植フロー
Python と Java(Android)のAPI対応 Python(1.2.1) tf-android (1.2.0) Graphの 読み込み def =
tf.GraphDef() def.ParseFromString(f.read()) tf.import_graph_def(def, name='') new (AssetManager, “file://android_asset/xxxxx”) Placeholderへ の入力 feed_dict={“x:0”, nparray} #feed(“x”, float[], 1, w, h, 3) 処理の実行と 出力の取得 result = session.run("out_conv7:0", feed_dict) #run({“out_conv7”}, boolean) #fetch(“out_conv7”, int[])
デモ
AndroidでTensorFlow 以上