minamocake / SmartProductInspection

For develpment
0 stars 0 forks source link

CNN #5

Open wataru129 opened 5 years ago

wataru129 commented 5 years ago

(ML) Wataru-2:kill_me_learning wataru$ python capture.py Using TensorFlow backend. WARNING:tensorflow:From /Users/wataru/.pyenv/versions/anaconda3-5.1.0/envs/ML/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version. Instructions for updating: Colocations handled automatically by placer. WARNING:tensorflow:From /Users/wataru/.pyenv/versions/anaconda3-5.1.0/envs/ML/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py:3445: calling dropout (from tensorflow.python.ops.nn_ops) with keep_prob is deprecated and will be removed in a future version. Instructions for updating: Please use rate instead of keep_prob. Rate should be set to rate = 1 - keep_prob. 2019-02-28 17:30:14.147705: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA WARNING:tensorflow:From /Users/wataru/.pyenv/versions/anaconda3-5.1.0/envs/ML/lib/python3.6/site-packages/tensorflow/python/ops/math_ops.py:3066: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version. Instructions for updating: Use tf.cast instead. キャプチャ時間:2.1221349239349365 predict: bad 推論時間:0.0889132022857666 キャプチャ時間:0.18587422370910645 predict: bad 推論時間:0.020577669143676758 キャプチャ時間:0.20247602462768555 predict: good 推論時間:0.01894998550415039

wataru129 commented 5 years ago

画像推定の根拠を表すGrad-CAMと呼ばれるアルゴリズムを研究室の同期に教えて頂いたので共有します. 画像の実際にどの部分が分類に効いてるか確認できるので,精度が上がらない時に使えば前処理などで対応できるかもしれません.

https://qiita.com/yakisobamilk/items/8f094590e5f45a24b59c