Skip to content

Instantly share code, notes, and snippets.

@saurabhghatnekar
Created April 26, 2018 05:52
Show Gist options
  • Save saurabhghatnekar/c3f907ee055bfe6193623397e8d81872 to your computer and use it in GitHub Desktop.
Save saurabhghatnekar/c3f907ee055bfe6193623397e8d81872 to your computer and use it in GitHub Desktop.
/home/heimdall/anaconda3/bin/python /mnt/attic/DADA/codes/cnn/Bnorm.py
/home/heimdall/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
Using TensorFlow backend.
/home/heimdall/anaconda3/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
return f(*args, **kwds)
channels_last
2018-04-26 11:21:02.269997: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
_________________________________________________________________
Layer (type) Output Shape Param #
=================================================================
conv2d_1 (Conv2D) (None, 62, 62, 32) 896
_________________________________________________________________
batch_normalization_1 (Batch (None, 62, 62, 32) 128
_________________________________________________________________
dropout_1 (Dropout) (None, 62, 62, 32) 0
_________________________________________________________________
conv2d_2 (Conv2D) (None, 60, 60, 64) 18496
_________________________________________________________________
batch_normalization_2 (Batch (None, 60, 60, 64) 256
_________________________________________________________________
dropout_2 (Dropout) (None, 60, 60, 64) 0
_________________________________________________________________
conv2d_3 (Conv2D) (None, 58, 58, 64) 36928
_________________________________________________________________
batch_normalization_3 (Batch (None, 58, 58, 64) 256
_________________________________________________________________
dropout_3 (Dropout) (None, 58, 58, 64) 0
_________________________________________________________________
flatten_1 (Flatten) (None, 215296) 0
_________________________________________________________________
dense_1 (Dense) (None, 1024) 220464128
_________________________________________________________________
batch_normalization_4 (Batch (None, 1024) 4096
_________________________________________________________________
dropout_4 (Dropout) (None, 1024) 0
_________________________________________________________________
dense_2 (Dense) (None, 2) 2050
=================================================================
Total params: 220,527,234
Trainable params: 220,524,866
Non-trainable params: 2,368
_________________________________________________________________
_________________________________________________________________
Layer (type) Output Shape Param #
=================================================================
conv2d_1 (Conv2D) (None, 62, 62, 32) 896
_________________________________________________________________
batch_normalization_1 (Batch (None, 62, 62, 32) 128
_________________________________________________________________
dropout_1 (Dropout) (None, 62, 62, 32) 0
_________________________________________________________________
conv2d_2 (Conv2D) (None, 60, 60, 64) 18496
_________________________________________________________________
batch_normalization_2 (Batch (None, 60, 60, 64) 256
_________________________________________________________________
dropout_2 (Dropout) (None, 60, 60, 64) 0
_________________________________________________________________
conv2d_3 (Conv2D) (None, 58, 58, 64) 36928
_________________________________________________________________
batch_normalization_3 (Batch (None, 58, 58, 64) 256
_________________________________________________________________
dropout_3 (Dropout) (None, 58, 58, 64) 0
_________________________________________________________________
flatten_1 (Flatten) (None, 215296) 0
_________________________________________________________________
dense_1 (Dense) (None, 1024) 220464128
_________________________________________________________________
batch_normalization_4 (Batch (None, 1024) 4096
_________________________________________________________________
dropout_4 (Dropout) (None, 1024) 0
_________________________________________________________________
dense_2 (Dense) (None, 2) 2050
=================================================================
Total params: 220,527,234
Trainable params: 220,524,866
Non-trainable params: 2,368
_________________________________________________________________
starting load data
0%| | 0/125 [00:00<?, ?it/s]done load data
100%|██████████| 125/125 [00:00<00:00, 149.74it/s]
0%| | 0/8 [00:00<?, ?it/s]load model
100%|██████████| 8/8 [00:00<00:00, 157.45it/s]
precision recall f1-score support
0 1.00 1.00 1.00 4
1 1.00 1.00 1.00 4
avg / total 1.00 1.00 1.00 8
[[4 0]
[0 4]]
Process finished with exit code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment