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
オフィスの前にある信号が変わる タイミング教えてくれるWebページ 作ろうとしたよ with ...
Search
Takayuki Sakai
January 15, 2018
Programming
0
1.2k
オフィスの前にある信号が変わる タイミング教えてくれるWebページ 作ろうとしたよ with DeepLearning
2017年末に社内で開かれたハッカソンの発表資料を社外向けに少し修正したものです。
Takayuki Sakai
January 15, 2018
Tweet
Share
More Decks by Takayuki Sakai
See All by Takayuki Sakai
cats in practice
kaky0922
1
530
Scalaの(俺的)イケてる ライブラリ紹介LT
kaky0922
0
860
TDでHivemallを半年使ってみたノウハウ / Hivemall Meetup 20160908
kaky0922
1
3k
アドテク企業の本番環境からTD使ってみた / Treasure Data Tech Talk 20160425
kaky0922
3
9k
Other Decks in Programming
See All in Programming
subpath importsで始めるモック生活
10tera
0
310
Tauriでネイティブアプリを作りたい
tsucchinoko
0
370
cmp.Or に感動した
otakakot
3
200
CSC509 Lecture 11
javiergs
PRO
0
180
Streams APIとTCPフロー制御 / Web Streams API and TCP flow control
tasshi
2
350
Kaigi on Rails 2024 〜運営の裏側〜
krpk1900
1
230
イベント駆動で成長して委員会
happymana
1
330
.NET のための通信フレームワーク MagicOnion 入門 / Introduction to MagicOnion
mayuki
1
1.7k
Generative AI Use Cases JP (略称:GenU)奮闘記
hideg
1
300
RubyLSPのマルチバイト文字対応
notfounds
0
120
アジャイルを支えるテストアーキテクチャ設計/Test Architecting for Agile
goyoki
9
3.3k
카카오페이는 어떻게 수천만 결제를 처리할까? 우아한 결제 분산락 노하우
kakao
PRO
0
110
Featured
See All Featured
Gamification - CAS2011
davidbonilla
80
5k
Why Our Code Smells
bkeepers
PRO
334
57k
YesSQL, Process and Tooling at Scale
rocio
169
14k
What's in a price? How to price your products and services
michaelherold
243
12k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
Git: the NoSQL Database
bkeepers
PRO
427
64k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
420
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
Thoughts on Productivity
jonyablonski
67
4.3k
Mobile First: as difficult as doing things right
swwweet
222
8.9k
Transcript
ΦϑΟεͷલʹ͋Δ৴߸͕มΘΔ λΠϛϯάڭ͑ͯ͘ΕΔ Webϖʔδ ࡞ͬͨΑ࡞Ζ͏ͱͨ͠Α Hackday2017 Team4 ञҪ ਸࢸ ※Hackday2017ͱɺ౦ূҰ෦্اۀͷגࣜձࣾϑΝϯίϛϡχέʔγϣϯζࣾͰͷ Ջͳ༨༟ͷ͋Δ࣌ʹߦΘΕͨνʔϜ੍ϋοΧιϯͷ͜ͱͰ͢
Ռ ͜Μͳײ͡
ͳͥ࡞͔ͬͨ - ΦϑΟεͷલͷาߦऀ৴߸ͷͪ࣌ؒ݁ߏ ͍ - ੨ʹͳΔ·Ͱͷ͕͔࣌ؒΕɺ੮Λཱͭ λΠϛϯά͔Δͣ
ΈΜͳϋοϐʔ ؒҧ͍ͳ͍ʂ - ΦϑΟεͷલͷาߦऀ৴߸ͷͪ࣌ؒ݁ߏ ͍ - ੨ʹͳΔ·Ͱͷ͕͔࣌ؒΕɺ੮Λཱͭ λΠϛϯά͔Δͣ
֓ཁ - ৴߸ͷมΘΔपظ༧Ίଌ͓ͬͯ͘ - ͨ·ʹը૾ೝࣝͰ੨ΓସΘΓ λΠϛϯάΛิਖ਼͢Δ
पظཧαʔό पظऔಘ ৴߸ͷ৭ ৴߸ͷपظΛཧ ੨ఆϓϩάϥϜ શମߏ ৴߸ͷը૾ࡱӨ ৴߸ͷ৭Λఆ ϒϥβ ৴߸ͷλΠϛϯάΛදࣔ
৴߸ͷ੨ೝࣝͷ ͨΊʹͬͨ͜ͱ
͜ΜͳΧϝϥͰ
͜Μͳը૾ͷ৴߸ͷ৭Λ
͜͜ʹ͋Δʢ੨ʣ
ఆ͍ͨ͠ʂ
͜͏͍͏ը૾ॲཧͱ͍͑
Deep Learning Ͱ͢ΑͶ…
ཁ݅ - WebΧϝϥͰࡱͬͨը૾Λ͏ - ҎԼېࢭ - खಈͰ৴߸ʹζʔϜ - खಈͰը૾Ճ -
ΧϝϥΛશʹݻఆ͢Δ
·ֶͣशσʔλ࡞Γ ʢ৭Μͳ͔֯ΒࡱΔ,5000ຕʣ ੨ ੨
PythonͷίʔυΛΨʔοͱॻ͍ͯ ʢ200ߦ͘Β͍ʣ … def vgg_std16_model(img_rows, img_cols): model = Sequential() model.add(ZeroPadding2D((1,
1), input_shape=(3, img_rows, img_cols))) model.add(Convolution2D(64, 3, 3, activation='relu')) model.add(ZeroPadding2D((1, 1))) model.add(Convolution2D(64, 3, 3, activation='relu')) model.add(MaxPooling2D((2, 2), strides=(2, 2))) model.add(ZeroPadding2D((1, 1))) model.add(Convolution2D(128, 3, 3, activation='relu'))
ֶशʂ(ŕŦŖƃ ~/hackday/python$ python3 train_and_evaluate.py 4591 train samples Start training........... Train
on 3121 samples, validate on 551 samples 10/3121 [=>..............................] - ETA: 35023s - loss: 0.5735 - acc: 0.6032
Μ…ʁ ~/hackday/python$ python3 train_and_evaluate.py 4591 train samples Start training........... Train
on 3121 samples, validate on 551 samples 10/3121 [=>..............................] - ETA: 35023s - loss: 0.5735 - acc: 0.6032
Γ࣌ؒ35023s ≒ 10࣌ؒ ~/hackday/python$ python3 train_and_evaluate.py 4591 train samples Start
training........... Train on 3121 samples, validate on 551 samples 10/3121 [=>..............................] - ETA: 35023s - loss: 0.5735 - acc: 0.6032
ʮऴΘΒͳ͍… Ͳ͏͢Ε…ʯ
ʁʮCPU͕ΒΕͨΑ͏ͩͳ…ʯ
ʮ͋ɺ͋ͳͨ…ʂʂʯ
ʮGPU͞Μʂʯ
ͬͯ͜ͱͰGPUͰ࠶ֶशʂ(ŕŦŖƃ ※AWSͷGPUΠϯελϯε͍·ͨ͠ ~/hackday/python$ python3 train_and_evaluate.py Using gpu device 0: Tesla
M60 (CNMeM is disabled, cuDNN 4007) 4591 train samples Start training........... Train on 3121 samples, validate on 551 samples 10/3121 [=>..............................] - ETA: 2714s - loss: 0.5735 - acc: 0.6032
1࣌ؒҎͰऴΘΔʂ ~/hackday/python$ python3 train_and_evaluate.py Using gpu device 0: Tesla M60
(CNMeM is disabled, cuDNN 4007) 4591 train samples Start training........... Train on 3121 samples, validate on 551 samples 10/3121 [=>..............................] - ETA: 2714s - loss: 0.5735 - acc: 0.6032
1࣌ؒޙ…
ʮ͓ɺֶशऴΘͬͯΔ…ʯ 3121/3121 [==============================] - 0s - loss: 0.0051 - acc:
1.0000 - val_loss: 0.0085 - val_acc: 1.0000
ʮਫ਼… 100%ʂʁʯ 3121/3121 [==============================] - 0s - loss: 0.0051 -
acc: 1.0000 - val_loss: 0.0085 - val_acc: 1.0000
ʮਫ਼… 100%ʂʁʯ ʮ͜ͷউෛΖͨͰʂʯ 3121/3121 [==============================] - 0s - loss: 0.0051
- acc: 1.0000 - val_loss: 0.0085 - val_acc: 1.0000
1ऴྃ
2
ʮͯ͞ϦΞϧλΠϜʹࡱͬ ͨ৴߸ͷ৭Λ༧ଌ͢Δ͔…ʯ
PCʮ੨ʂʯ ʮਖ਼ղʂʯ
PCʮʂʯ ʮ͍͢͝ʂʯ
PCʮʂʯ ʮ͋Ε…ʁʯ
PCʮ੨ʂʯ ʮΜΜΜ...ʁʯ
ʮ͍ͭ͜͠…ʯ
ʮԣஅาಓͷ্ʹਓ͕͍Δ͔Ͳ ͏͔Ͱஅ͕ͯ͠Δʂʂʂʯ
Deep Learningମೝࣝೳྗ͕ ߴ͗ͯ͢ɺਓؒͰࢥ͍͔ͭͳ͍Α͏ ͳϧʔϧΛউखʹ࡞ͬͯ͠·͏ͷͰ͢ɻ
ʮͰ͜Ε͕ࡱͬͨσʔλ ʹภΓ͕͚͋ͬͨͩ…ʯ
ʮҎԼͷΑ͏ͳը૾Λͨ͘͞Μ ࡱͬͯ࠶ֶशʂʯ - ͚ͩͲͬͯΔਓ͕͍Δࣸਅ - ੨͚ͩͲ୭ͬͯͳ͍ࣸਅ
࠶ֶशޙ…
PCʮʂʯ ʮΑ͠Α͠ʯ
PCʮ੨ʂʯ ʮ͓ʁʯ
ʮ͍ͭ͜…ʯ
ʮࠓ͜͜Λं͕ͬͯΔ͔ Ͳ͏͔Ͱఆ͕ͯ͠Δʂʯ
ҎԼ͍ͨͪͬ͜͝ʢഊʣ
݁Ռ - ࠷ऴతʹ·͊·͊ͳਫ਼ʹͳͬͨ ʢϦΞϧλΠϜը૾Ͱ90%͘Β͍ʁʣ - ͰɺࠓճͷతͷͨΊʹਫ਼ෆ - ภΓͷͳֶ͍शσʔλΛͬͱͨ͘͞Μ ࡱΕΕղܾ͢Δͣ
ݸਓతײ - Deep Learning͍͢͝ - GPU͍͢͝ - ྑֶ͍शσʔλΛ࡞ΔͷΉ͍ͣ