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
Yuichi Sato
February 17, 2022
Programming
53
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
62
瞑想アプリ
satoyuichi
0
53
SDF を作りたかった
satoyuichi
0
550
初めての iPhone ネイティブアプリ
satoyuichi
0
69
キャンフェスにゲームを出そう -StruckOut 編-
satoyuichi
0
33
ミクちゃんが歌ったら 家に帰ろう
satoyuichi
0
25
体温記録送信アプリ
satoyuichi
0
32
コロナ横目にバージョンアップ
satoyuichi
0
87
本日のシェーダー芸
satoyuichi
1
800
Other Decks in Programming
See All in Programming
AgentCore CLI で進化した AWS での AI エージェントの作り方 : 必要な機能を必要な時に
icoxfog417
PRO
3
350
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
460
Building an Out-of-Order CPU
latte72
1
790
テストを司るデーモンに会いに行く 〜隔離した仮想マシンでテストを通すまで〜
h1d3mun3
1
450
AI が書く Go コードの品質を劇的に向上させる Linter: “declscope”
mpyw
0
370
【高い買い物LT会】初任給で話題の国産フィジカルAIを買った話
akagami
PRO
0
160
GKE で Pod の見方を変えたら、スケールアウト時の挙動を真に捉えられた話
stkk
0
130
AGENTS.md Is Not Enough:Build Skills, Don't Download Them
lx_t
0
120
App Intentsのビルドプロセスを支える技術
kntkymt
0
390
更なる可用性を求めて、5年間運用したKotlinのアプリケーションをGoでリプレイスする話
ken_tunc
0
290
アクセシビリティから考える情報設計
high_g_engineer
0
380
wkhtmltopdfの次どうするか問題2026
willnet
2
1.5k
Featured
See All Featured
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
3
4.3k
Google's AI Overviews - The New Search
badams
0
1.6k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
1k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.6k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
690
Faster Mobile Websites
deanohume
310
32k
Leo the Paperboy
mayatellez
10
2.3k
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