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
深層学習学習中
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Yuichi Sato
February 17, 2022
Programming
55
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
深層学習学習中
Yuichi Sato
February 17, 2022
More Decks by Yuichi Sato
See All by Yuichi Sato
深層学習はじめました
satoyuichi
0
64
瞑想アプリ
satoyuichi
0
53
SDF を作りたかった
satoyuichi
0
560
初めての iPhone ネイティブアプリ
satoyuichi
0
70
キャンフェスにゲームを出そう -StruckOut 編-
satoyuichi
0
33
ミクちゃんが歌ったら 家に帰ろう
satoyuichi
0
25
体温記録送信アプリ
satoyuichi
0
32
コロナ横目にバージョンアップ
satoyuichi
0
87
本日のシェーダー芸
satoyuichi
1
820
Other Decks in Programming
See All in Programming
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
280
Performance Optimization With LLMs
xleitix
0
160
dotNET_vulnclicker_intro.pdf
deka_morita
0
150
見えないものを探る要求要件定義に必要な基本的思考 / invisible-requirement-thinking
minodriven
15
8.6k
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
150
Findy - エンジニア向け会社紹介/Findy Company Deck
findyinc
6
400k
Vue Fes Japan の “作る側”に関わってみて
naokihaba
0
160
Workers Cache を知る
syumai
0
370
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
370
golang-bob.pdf
iwatsukayura
0
130
コードレビューのボトルネックを"する側"と"される側"の両面から解消する
yub0n
2
1.6k
自サークルのIdPからログアウトできるようになるまで
taiseiue
1
140
Featured
See All Featured
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
220
The SEO Collaboration Effect
kristinabergwall1
1
590
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
1k
Git: the NoSQL Database
bkeepers
PRO
433
67k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
570
WCS-LA-2024
lcolladotor
0
890
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
630
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
420
Paper Plane (Part 1)
katiecoart
PRO
2
12k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
830
Making the Leap to Tech Lead
cromwellryan
135
10k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
2
330
Transcript
深層学習学習中 2022年2月17日 佐藤雄一
自己紹介 名前:佐藤 雄一(ゆーいち) 好物:エレキギター、(初期)仏教、Smalltalk Twitter:@satoyuichi80 趣味:読書、ギター練習、映画鑑賞 呪術廻戦24話コンプリート!
進捗 • 環境構築 • ニューラルネットワーク(NN)モデルの構築 • データの用意 • 学習 ◦
逐次読み込みによる省メモリ化 ◦ 前処理 ▪ ファイルリストの作成 ▪ 画像のデコード ◦ 学習 ← イマココ • 推論 • モデルの評価
逐次読み込みによる省メモリ化 参考にしたプログラムでは全データを読み込んでから処理をするようになっていたが、 メモリを圧迫する画像データは必要な画像のみを逐次ロードして使うようにした。 *一般的にファイルのI/O(入出力)は遅いので、(複数回使うファイルは)できるだけメ モリに乗せて処理をした方がパフォーマンス的には有利
前処理
ファイルリストの作成 動的にディレクトリを掘ってファイルのリスティングをしようと思ったけど、面倒臭かった のであらかじめ JSON 形式にして持ってしまうことにした。今回は awk というプログラミ ング言語を使用(テキストファイルを行ごとに処理するのが得意)。 $ ls
| cat 000005.xml 000007.xml 000009.xml 000012.xml 000016.xml 000017.xml 000019.xml … awk スクリプト { "names": [ "000005.xml", "000007.xml", "000009.xml", "000012.xml", "000016.xml", …. ]} $ ls | awk 'BEGIN{printf("{\"names\": [\n")} {printf("\"%s\",\n", $1)} END{printf("]}\n")}' > annotations.json
画像のデコード 通常、画像は JPEG 形式などにエンコードされているので生ピクセルデータにデコード してやる必要がある。ブラウザでデコードはどうするのか迷ったけど、以下のようにブラ ウザに任せる。(感覚的にちょっと回りくどい?) 1. HTMLにcanvas要素を配置する 2. canvas
要素から2Dコンテキストを取得する 3. 取得したコンテキストを使って画像を描画する(ここでデコードされる) 4. ピクセルデータを読み出す 5. 学習データとする
今回の闇 学習が進まない… • GPU(WebGL)で処理ができない ◦ M1 Mac だとシェーダーのコンパイルが通らない ← そもそも
WebGL コンテキスト無効? ◦ Intel Mac だと PC ごと落ちる • CPU だと終わらない(きちんと動いているのかも現時点で不明)
デモ
今後の予定 • 学習を成功させる • 推論、モデル評価をする • 他の環境(Unity とか)で生成したモデルを使う
参考 Tensorflow.js: https://www.tensorflow.org/js?hl=ja tfjs-YOLOv4-tiny: https://github.com/satoyuichi/tfjs-YOLOv4-tiny