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
540
Scalaの(俺的)イケてる ライブラリ紹介LT
kaky0922
0
870
TDでHivemallを半年使ってみたノウハウ / Hivemall Meetup 20160908
kaky0922
1
3.1k
アドテク企業の本番環境からTD使ってみた / Treasure Data Tech Talk 20160425
kaky0922
3
9.1k
Other Decks in Programming
See All in Programming
短期間での新規プロダクト開発における「コスパの良い」Goのテスト戦略」 / kamakura.go
n3xem
2
180
情報漏洩させないための設計
kubotak
4
830
テストコード書いてみませんか?
onopon
2
210
責務を分離するための例外設計 - PHPカンファレンス 2024
kajitack
8
1.9k
歴史と現在から考えるスケーラブルなソフトウェア開発のプラクティス
i10416
0
130
「Chatwork」Android版アプリを 支える単体テストの現在
okuzawats
0
180
Zoneless Testing
rainerhahnekamp
0
120
良いユニットテストを書こう
mototakatsu
8
3.1k
fs2-io を試してたらバグを見つけて直した話
chencmd
0
240
Stackless и stackful? Корутины и асинхронность в Go
lamodatech
0
950
Online-Dokumentation, die hilft: Strukturen, Prozesse, Tools
ahus1
0
100
Recoilを剥がしている話
kirik
5
7.2k
Featured
See All Featured
Producing Creativity
orderedlist
PRO
342
39k
Practical Orchestrator
shlominoach
186
10k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
520
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
1.2k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
29
910
Git: the NoSQL Database
bkeepers
PRO
427
64k
A better future with KSS
kneath
238
17k
Embracing the Ebb and Flow
colly
84
4.5k
How to Think Like a Performance Engineer
csswizardry
22
1.2k
Building Adaptive Systems
keathley
38
2.3k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.4k
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͍͢͝ - ྑֶ͍शσʔλΛ࡞ΔͷΉ͍ͣ