Upgrade to Pro — share decks privately, control downloads, hide ads and more …

オフィスの前にある信号が変わる
タイミング教えてくれるWebページ
作ろうとしたよ with ...

オフィスの前にある信号が変わる
タイミング教えてくれるWebページ
作ろうとしたよ with DeepLearning

2017年末に社内で開かれたハッカソンの発表資料を社外向けに少し修正したものです。

Takayuki Sakai

January 15, 2018
Tweet

More Decks by Takayuki Sakai

Other Decks in Programming

Transcript

  1. 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'))
  2. ֶशʂ(ŕŦŖƃ ~/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
  3. Μ…ʁ ~/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
  4. ࢒Γ࣌ؒ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
  5. ͬͯ͜ͱͰ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
  6. 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