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
84
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
370
AI駆動プロダクト開発で最速価値検証
nakawai
0
570
エンジニアがエンジニアリングマネージャーになって最初にやったこと
nakawai
1
1.4k
電卓アプリで再帰降下法を使った話
nakawai
0
380
AndroidでSRCNN(超解像ニューラルネットワーク) 2017
nakawai
0
78
Androidで超解像ニューラルネットワークできる?
nakawai
0
100
Other Decks in Programming
See All in Programming
Are APIs Still Relevant in the AI Era?
soyuka
0
420
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
440
phperだってパンチカードでコーディングしたい
o0h
PRO
0
200
setup-vp GitLab対応の裏側
naokihaba
0
150
[ハンズオン]AIへの指示だけで「五目並べ」を作ってみよう
satoshi256kbyte
1
340
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
740
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1.1k
モジュールの視点からSwiftを読み解く #iosdc
s_shimotori
0
340
Vue Fes Japan 2026 タイムテーブル徹底解説
448jp
1
620
Agents on Rails - Rails at Scale 2026
irinanazarova
0
330
Workers Cache を知る
syumai
0
330
ハーネス設計入門 〜 基礎知識の整理から実務へのステップアップ 〜
kinopeee
20
21k
Featured
See All Featured
The Cost Of JavaScript in 2023
addyosmani
55
10k
How to build a perfect <img>
jonoalderson
1
6.1k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
Color Theory Basics | Prateek | Gurzu
gurzu
1
480
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
300
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
550
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
Bash Introduction
62gerente
615
220k
The SEO Collaboration Effect
kristinabergwall1
1
590
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
How to train your dragon (web standard)
notwaldorf
96
6.8k
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 以上