Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
ディープラーニング素人がPyTorchでマスクつけている人を学習させてみた
Search
KMiura
June 24, 2023
Technology
0
470
ディープラーニング素人がPyTorchでマスクつけている人を学習させてみた
2023/06/24(土) ChatGPT のAPIを使ったハンズオン
https://machine-learning.connpass.com/event/284031/
KMiura
June 24, 2023
Tweet
Share
More Decks by KMiura
See All by KMiura
さらばあのボタンとは言わせない SORACOM LTE-M Button powerd by AWSをまだ使えるようにした(前編?)
miura55
0
81
App Runnerでパラメーターストアの値を使ってみた
miura55
0
290
ultraArmをモニター提供してもらった話
miura55
0
120
JAWS UG名古屋2023年活動報告
miura55
0
130
AWS Step Functionsの新機能「Call third-party API」を試してみた
miura55
1
110
AWS Step Functionsの新機能「Call third-party API」を試してみた
miura55
0
190
AWS CDKの新機能「cdk migrate」を試してみた
miura55
1
330
LINE DC×SORACOM UGのこれまでとこれから
miura55
0
44
社会人4年目が学生に捧げる5か条
miura55
0
140
Other Decks in Technology
See All in Technology
Tellus の衛星データを見てみよう #mf_fukuoka
kongmingstrap
0
260
IaCジェネレーターとBedrockで詳細設計書を生成してみた
tsukasa_ishimaru
4
870
コードや知識を組み込む / Incorporate Code and knowledge
ks91
PRO
0
130
KubeConにproposalを送りたい人へのアドバイス
sat
PRO
3
270
成長をサポートするピープルマネジメントのやり方
sioncojp
2
230
アクセシビリティを考慮したUI/CSSフレームワーク・ライブラリ選定
yajihum
2
1.1k
Azure Container Apps + Bicep 〜 こんな感じで運用しています
kaz29
3
610
ExaDB-D dbaascli で出来ること
oracle4engineer
PRO
0
2.1k
非同期推論システムによるコスト削減と信頼性向上
koki_nishihara
1
350
Building a RAG-poweredAI chat appwith Python and VS Code
pamelafox
0
140
Microsoft Intune 勉強会 第 2 回目
tamaiyutaro
2
370
MapLibreとAmazon Location Service
dayjournal
1
170
Featured
See All Featured
Writing Fast Ruby
sferik
622
60k
Bootstrapping a Software Product
garrettdimon
PRO
302
110k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
14
1.5k
Docker and Python
trallard
35
2.7k
Why You Should Never Use an ORM
jnunemaker
PRO
51
8.6k
From Idea to $5000 a Month in 5 Months
shpigford
378
45k
Testing 201, or: Great Expectations
jmmastey
29
6.4k
Producing Creativity
orderedlist
PRO
338
39k
How to train your dragon (web standard)
notwaldorf
74
5.2k
The Illustrated Children's Guide to Kubernetes
chrisshort
32
46k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
323
20k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
222
21k
Transcript
ディープラーニング素人がPyTorchで マスクつけている人を学習させてみた KMiura(@k_miura_io)
お前だれよ • 三浦 耕生(こうき) • 自動運転のスタート アップのエンジニア @k_miura_io koki.miura05
ハンズオンお疲れ様 でした!!
この話は機械学習名古屋の勉強会が 休止していた間、まだ世間にChatGPT が知られてない頃の話です (訳:結構過去のリバイバル)
ディープラーニング • ディープラーニングはチュートリアル 止まり • せっかくGPU乗ったSurface買ったの に…(3年前) • Pythonやってるならディープラーニ ングやらないと
ディープラーニングを社会の役に立てたい (建前) • 外出するのにマスクを付けるのは当 たり前 • 百貨店行くとマスクつけても認識する サーモカメラを見かけるようになった • ワイも実装してドヤりたい(本音)
実行環境(検証当時) • Python 3.9 • PyTorch(Tensorflowはベタすぎる) • NVIDIA GeForce GTX
965M(Surface Book内蔵GPU)
とりあえず動かしてみた • Mobile Net V2を転移学習 • データ数600枚ほど • 思ってたのと違う…
Why? • 逆伝搬の計算するとトレーニングをするたびに以前の勾配を加算する • トレーニングの度に勾配をゼロにする処理をいれてみた • ついでにデータも増やしたれ(各クラス600枚→900枚)
学習結果 • 悪くはないがノイズ結構のってる • Accuracyが1に到達してるものもある(収束しているのが理想)
さらに改善 • もっとデータ量を増やしてみた(各クラス900枚→1600枚) • ついでにエポック数増やしてみる(100エポック→150エポック)
学習結果 • 目立ったノイズも無くきれいな曲線(ディープラーニングでよくあるやつ) • Accuracyが1に到達せず収束している • やはりデータがものをいう
実験成果 https://youtu.be/VbBSG1Is3hY
まとめ • ディープラーニングはデータ量、アルゴリズムは二の次 • ようやくGPUを生かすことができた(Jetson Nanoも買える) • ディープラーニング完全に理解した
今回のソースコード&ブログ https://github.com/Miura55/deeplearning- face-mask-detection https://supernove.hatenadiary.jp/entry/ 2021/01/19/041445
END