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
520
Scalaの(俺的)イケてる ライブラリ紹介LT
kaky0922
0
840
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
Debugging: All you need to know (for simultaneous interpreting)
jmatsu
2
620
Mastering AsyncSequence - 使う・作る・他のデザインパターン(クロージャ、Delegate など)から移行する
treastrain
4
1.6k
connect-go で面倒くささと戦う / 2024-08-27 #newmo_layerx_go
izumin5210
2
630
Why Prism?
kddnewton
4
1.7k
What we keep in mind when migrating from Serverless Framework to AWS CDK and AWS SAM
kasacchiful
1
140
Rustではじめる負荷試験
skanehira
5
1.2k
いつか使える ObjectSpace / Maybe useful ObjectSpace
euglena1215
2
130
Amazon Neptuneで始める初めてのグラフDB ー グラフDBを使う意味を考える ー
satoshi256kbyte
2
250
Amebaチョイス立ち上げの裏側 ~依存システムとの闘い~
daichi_igarashi
0
230
RAGの回答精度評価用のQAデータセットを生成AIに作らせた話
kurahara
0
240
エンジニア1年目で複雑なコードの改善に取り組んだ話
mtnmr
3
1.9k
僕が思い描くTypeScriptの未来を勝手に先取りする
yukukotani
9
2.4k
Featured
See All Featured
Build The Right Thing And Hit Your Dates
maggiecrowley
30
2.3k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
Debugging Ruby Performance
tmm1
72
12k
Rebuilding a faster, lazier Slack
samanthasiow
78
8.6k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
32k
The Mythical Team-Month
searls
218
43k
Optimizing for Happiness
mojombo
375
69k
Learning to Love Humans: Emotional Interface Design
aarron
270
40k
Code Review Best Practice
trishagee
62
16k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
123
18k
How to name files
jennybc
75
98k
Typedesign – Prime Four
hannesfritz
39
2.3k
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͍͢͝ - ྑֶ͍शσʔλΛ࡞ΔͷΉ͍ͣ