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
GemmaをJevのように使ってみる / Use Gemma like Jev
kishida
5
670
SalesForceを内製化!? ~ HR事業を支える顧客管理基盤のインフラを大公開 ~
oku053
0
120
20260914 AIエージェント時代のPlatform Engineering LLM基盤とプロダクトの責務境界線
kanfab1
7
2.4k
Agents on Rails - Rails at Scale 2026
irinanazarova
0
330
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
120
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
440
動作中のプログラムの中身をリアルタイムに覗く / Realtime Debugger for CSharp with Roslyn
prota
1
1.8k
AI が書く Go コードの品質を劇的に向上させる Linter: “declscope”
mpyw
0
480
【加筆修正版】Laravel のアプリケーションをどこにデプロイするか #phpcon_ehime
akase244
0
150
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
450
Heart of Swift Concurrency
koher
0
1.2k
パズルゲームの作り方 / how to make puzzle games
kaityo256
PRO
2
270
Featured
See All Featured
Embracing the Ebb and Flow
colly
88
5.2k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
2k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
GraphQLとの向き合い方2022年版
quramy
50
15k
What does AI have to do with Human Rights?
axbom
PRO
1
2.4k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
600
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Being A Developer After 40
akosma
91
590k
WCS-LA-2024
lcolladotor
0
840
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
350
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
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 以上