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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
nakawai
September 30, 2017
Programming
83
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
360
AI駆動プロダクト開発で最速価値検証
nakawai
0
550
エンジニアがエンジニアリングマネージャーになって最初にやったこと
nakawai
2
1.4k
電卓アプリで再帰降下法を使った話
nakawai
0
380
AndroidでSRCNN(超解像ニューラルネットワーク) 2017
nakawai
0
78
Androidで超解像ニューラルネットワークできる?
nakawai
0
100
Other Decks in Programming
See All in Programming
アクセシビリティから考える情報設計
high_g_engineer
0
360
XHTMLが残したもの
yosuke_furukawa
PRO
2
710
「AI時代、配布するPythonコードをどう守るか: 難読化の実験と判断軸」 #PyconJP2026
pkshadeck
PRO
2
200
Go × SIMDで高速化するベクトル検索 ~ルーフラインモデルでSIMDが効く境界を探れ! ~
po3rin
1
240
thread_parallel_with_free-threaded_Python_and_NumPy.pdf
riku_sakamoto
0
300
思考垂れ流し開発 ~音声入力 × AIエージェント × 開発ハーネスによる試行錯誤~
npostring
0
1.1k
高専キャリア LT 発表内容
crysta1221
6
5.7k
Laravelのアプリケーションをどこにデプロイするか #ツナギメオフライン.9
akase244
0
120
巨大モノリシックアプリ モダン化大作戦
ktcryomm
0
900
App Storeの外へ──日本のiOSサイドローディング入門 for iOSDC Japan 2026
yuukiw00w
0
180
AIエージェント時代のコードレビューを設計する
nogu66
6
2.6k
業務時間外もAIに働いてもらう話
colorful12
3
10k
Featured
See All Featured
The #1 spot is gone: here's how to win anyway
tamaranovitovic
3
1.2k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
420
Fashionably flexible responsive web design (full day workshop)
malarkey
408
67k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
410
Joys of Absence: A Defence of Solitary Play
codingconduct
1
510
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
590
Embracing the Ebb and Flow
colly
88
5.2k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.6k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.5k
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 以上