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に自作AIをのっけたい
Search
bugdog24
March 25, 2023
Programming
150
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Androidに自作AIをのっけたい
Tensorflow Liteを使ってAndroidに自作AIをのっける話です。
bugdog24
March 25, 2023
More Decks by bugdog24
See All by bugdog24
KSPで自動生成コードを作る
bugdog24
0
230
Flutter入門講座
bugdog24
0
170
Other Decks in Programming
See All in Programming
機械に任せるテスト、人が見るテスト ⽣成AIで引き直した、運⽤保守フェーズの線引き
dske104
0
190
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
750
S3 TablesのIcebergデータに、AIエージェントからアクセスしてみた / 20261016developersio2026joetsu-accessing-iceberg-in-s3tables-via-agent
kasacchiful
PRO
0
150
Vue Fes Japan の “作る側”に関わってみて
naokihaba
0
160
Railsのためのパスキー実践入門 〜マルチテナントSaaSでの意思決定〜
utakaha
2
560
Findy - エンジニア向け会社紹介/Findy Company Deck
findyinc
6
400k
AI主導のプログラミング学習アプリを作ってみた
econanringo
0
180
SalesForceを内製化!? ~ HR事業を支える顧客管理基盤のインフラを大公開 ~
oku053
0
180
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
280
AI時代のコードレビューは人に向けるな、仕組みに向けろ
texmeijin
5
3.7k
AWSに止められる覚悟してますか?
morizo_1984
2
540
dotNET_vulnclicker_intro.pdf
deka_morita
0
140
Featured
See All Featured
Making Projects Easy
brettharned
120
6.8k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
74
43k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
750
A designer walks into a library…
pauljervisheath
211
25k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Site-Speed That Sticks
csswizardry
13
1.6k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.2k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.3k
The Language of Interfaces
destraynor
162
27k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
Transcript
<< 自作AIを Androidにのっける
岡山大学工学部 24卒 自称Androidエンジニア 趣味:刀鑑賞、麻雀、プログラミング @bugdog24 オキリョウ
最近AI流行ってますよね
None
APIまで公開されていて 簡単にアプリに組み込める!
なかなかサーバーに 繋がらないときも・・・
アプリリリースするときに こうなるの怖い😱
そもそも既存のAI叩いても 面白くない
せっかくなら自作AI 載せてやりたい!
そんなあなたに
None
1 TF Liteとは
モバイル端末上で AIを動かせるライブラリ
様々な端末上で動作可能 ・Android ・iOS ・Raspberry Pi ・etc…
TF Liteの利点 ネットで調達するもよし、自分 で作成するもよし AIの カスタマイズ性 端末で実行するため、AIを動か すサーバーを用意する必要がな い サーバーレス
2 簡単な使い方
1. AIモデルを用意 2. ライブラリ追加 3. プロジェクトに入れる 4. 使う
1. AIモデルを用意
Tensor FlowでAIモデル作成 or 配布されてるAIモデルを 再トレーニング(転移学習)
2. ライブラリ追加
依存関係を足すだけ
3. プロジェクトに入れる
実はAndroid Studioに オプションが存在する
None
None
4. 使う
None
None
簡単👍
3 アプリ作る
None
AIモデルを用意
今回はColaboratoryで 1から作成する
構造を決める
学習
評価
評価
SavedModel形式で保存
tflite形式に変換
変換したモデルの評価
変換したモデルの評価
アプリ部分を作る
None
作る機能 - 手書き入力機能 - AIと通信する機能
手書き入力機能 ライブラリがないため 自力で実装
AIと通信する機能 Repositoryパターンで対応
None
None
AIモデルの導入
None
None
None
インスタンスはDIして シングルトンで持つ
None
None
None
None
None
None
アプリ完成🎉
4 感想
・AI作るの楽しい ・どこでも利用可能 ・ストレスを感じない速さ
・アプリとの接続が面倒 ・モデルサイズがでかい -> 37.5MB / 48.11MB
None
None
・アプリとの接続が面倒 ・モデルサイズがでかい -> 37.5MB / 48.11MB
結論 なんやかんや面白かった
ぜひお試しあれ
ご清聴 ありがとうございました!