Skip to content

Instantly share code, notes, and snippets.

@sub-mod
Last active March 11, 2019 19:19
Show Gist options
  • Save sub-mod/0ad35d5766050809e3c07654a081b347 to your computer and use it in GitHub Desktop.
Save sub-mod/0ad35d5766050809e3c07654a081b347 to your computer and use it in GitHub Desktop.
pl-tensorflowapp test
$ docker version
Client: Docker Engine - Community
Version: 18.09.1
API version: 1.39
Go version: go1.10.6
Git commit: 4c52b90
Built: Wed Jan 9 19:33:12 2019
OS/Arch: darwin/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.1
API version: 1.39 (minimum version 1.12)
Go version: go1.10.6
Git commit: 4c52b90
Built: Wed Jan 9 19:41:49 2019
OS/Arch: linux/amd64
Experimental: false
subin@SuMcPro:~/development/aicoe$ git clone https://github.com/AICoE/pl-tensorflowapp
Cloning into 'pl-tensorflowapp'...
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 24 (delta 2), reused 4 (delta 0), pack-reused 18
Unpacking objects: 100% (24/24), done.
Checking connectivity... done.
subin@SuMcPro:~/development/aicoe$
subin@SuMcPro:~/development/aicoe$
subin@SuMcPro:~/development/aicoe$ cd pl-tensorflowapp/
subin@SuMcPro:~/development/aicoe/pl-tensorflowapp$
subin@SuMcPro:~/development/aicoe/pl-tensorflowapp$ ls
Dockerfile LICENSE README.rst input/ requirements.txt tensorflowapp/
subin@SuMcPro:~/development/aicoe/pl-tensorflowapp$
subin@SuMcPro:~/development/aicoe/pl-tensorflowapp$
subin@SuMcPro:~/development/aicoe/pl-tensorflowapp$ ll
total 40
drwxr-xr-x 10 subin staff 320B Mar 11 15:13 ./
drwxr-xr-x 66 subin staff 2.1K Mar 11 15:13 ../
drwxr-xr-x 12 subin staff 384B Mar 11 15:13 .git/
-rw-r--r-- 1 subin staff 69B Mar 11 15:13 .gitignore
-rw-r--r-- 1 subin staff 338B Mar 11 15:13 Dockerfile
-rw-r--r-- 1 subin staff 1.0K Mar 11 15:13 LICENSE
-rw-r--r-- 1 subin staff 2.4K Mar 11 15:13 README.rst
drwxr-xr-x 4 subin staff 128B Mar 11 15:13 input/
-rw-r--r-- 1 subin staff 46B Mar 11 15:13 requirements.txt
drwxr-xr-x 4 subin staff 128B Mar 11 15:13 tensorflowapp/
subin@SuMcPro:~/development/aicoe/pl-tensorflowapp$ mkdir -p input && mkdir -p output
subin@SuMcPro:~/development/aicoe/pl-tensorflowapp$
subin@SuMcPro:~/development/aicoe/pl-tensorflowapp$ ll
total 40
drwxr-xr-x 11 subin staff 352B Mar 11 15:13 ./
drwxr-xr-x 66 subin staff 2.1K Mar 11 15:13 ../
drwxr-xr-x 12 subin staff 384B Mar 11 15:13 .git/
-rw-r--r-- 1 subin staff 69B Mar 11 15:13 .gitignore
-rw-r--r-- 1 subin staff 338B Mar 11 15:13 Dockerfile
-rw-r--r-- 1 subin staff 1.0K Mar 11 15:13 LICENSE
-rw-r--r-- 1 subin staff 2.4K Mar 11 15:13 README.rst
drwxr-xr-x 4 subin staff 128B Mar 11 15:13 input/
drwxr-xr-x 2 subin staff 64B Mar 11 15:13 output/
-rw-r--r-- 1 subin staff 46B Mar 11 15:13 requirements.txt
drwxr-xr-x 4 subin staff 128B Mar 11 15:13 tensorflowapp/
subin@SuMcPro:~/development/aicoe/pl-tensorflowapp$
subin@SuMcPro:~/development/aicoe/pl-tensorflowapp$
subin@SuMcPro:~/development/aicoe/pl-tensorflowapp$ docker run --rm -v $(pwd)/input:/incoming -v $(pwd)/output:/outgoing \
> submod/pl-tensorflowapp tensorflowapp.py \
> --prefix mnist- \
> /incoming /outgoing
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.
subin@SuMcPro:~/development/aicoe/pl-tensorflowapp$ docker run --rm -v $(pwd)/input:/incoming -v $(pwd)/output:/outgoing submod/pl-tensorflowapp tensorflowapp.py --prefix mnist- /incoming /outgoing
Unable to find image 'submod/pl-tensorflowapp:latest' locally
latest: Pulling from submod/pl-tensorflowapp
c64513b74145: Already exists
01b8b12bad90: Already exists
c5d85cf7a05f: Already exists
b6b268720157: Already exists
e12192999ff1: Already exists
eb0e09a9c628: Already exists
6f0418f6c539: Pull complete
ed7170cb8341: Pull complete
edcc0a29860a: Pull complete
Digest: sha256:57acc627e4f3e61f66854e55c88c7ebef806cb2c5b2f5127606b1711d3042dca
Status: Downloaded newer image for submod/pl-tensorflowapp:latest
WARNING:tensorflow:From tensorflowapp.py:78: read_data_sets (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use alternatives such as official/mnist/dataset.py from tensorflow/models.
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py:260: maybe_download (from tensorflow.contrib.learn.python.learn.datasets.base) is deprecated and will be removed in a future version.
Instructions for updating:
Please write your own downloading logic.
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py:262: extract_images (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use tf.data to implement this functionality.
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py:267: extract_labels (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use tf.data to implement this functionality.
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py:110: dense_to_one_hot (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use tf.one_hot on tensors.
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py:290: DataSet.__init__ (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use alternatives such as official/mnist/dataset.py from tensorflow/models.
WARNING:tensorflow:From tensorflowapp.py:91: softmax_cross_entropy_with_logits (from tensorflow.python.ops.nn_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Future major versions of TensorFlow will allow gradients to flow
into the labels input on backprop by default.
See `tf.nn.softmax_cross_entropy_with_logits_v2`.
2019-03-11 19:16:33.228728: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-03-11 19:16:34.707096: W tensorflow/core/framework/allocator.cc:122] Allocation of 31360000 exceeds 10% of system memory.
Extracting /incoming/data/train-images-idx3-ubyte.gz
Extracting /incoming/data/train-labels-idx1-ubyte.gz
Extracting /incoming/data/t10k-images-idx3-ubyte.gz
Extracting /incoming/data/t10k-labels-idx1-ubyte.gz
Step 0, training batch accuracy 14 %
Step 100, training batch accuracy 87 %
Step 200, training batch accuracy 82 %
Step 300, training batch accuracy 83 %
Step 400, training batch accuracy 88 %
Step 500, training batch accuracy 85 %
Step 600, training batch accuracy 88 %
Step 700, training batch accuracy 93 %
Step 800, training batch accuracy 89 %
Step 900, training batch accuracy 84 %
Test accuracy: 89.5799994468689
Creating new file... /outgoing/mnist-accuracy
subin@SuMcPro:~/development/aicoe/pl-tensorflowapp$
subin@SuMcPro:~/development/aicoe/pl-tensorflowapp$
subin@SuMcPro:~/development/aicoe/pl-tensorflowapp$
subin@SuMcPro:~/development/aicoe/pl-tensorflowapp$
subin@SuMcPro:~/development/aicoe/pl-tensorflowapp$
subin@SuMcPro:~/development/aicoe/pl-tensorflowapp$ docker run --rm -v $(pwd)/input:/incoming -v $(pwd)/output:/outgoing \
> submod/pl-tensorflowapp tensorflowapp.py \
> --prefix mnist- \
> --inference_path /incoming/test/test.png \
> /incoming /outgoing
WARNING:tensorflow:From tensorflowapp.py:78: read_data_sets (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use alternatives such as official/mnist/dataset.py from tensorflow/models.
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py:260: maybe_download (from tensorflow.contrib.learn.python.learn.datasets.base) is deprecated and will be removed in a future version.
Instructions for updating:
Please write your own downloading logic.
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py:262: extract_images (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use tf.data to implement this functionality.
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py:267: extract_labels (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use tf.data to implement this functionality.
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py:110: dense_to_one_hot (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use tf.one_hot on tensors.
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py:290: DataSet.__init__ (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use alternatives such as official/mnist/dataset.py from tensorflow/models.
WARNING:tensorflow:From tensorflowapp.py:91: softmax_cross_entropy_with_logits (from tensorflow.python.ops.nn_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Future major versions of TensorFlow will allow gradients to flow
into the labels input on backprop by default.
See `tf.nn.softmax_cross_entropy_with_logits_v2`.
2019-03-11 19:16:56.680428: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-03-11 19:16:58.165580: W tensorflow/core/framework/allocator.cc:122] Allocation of 31360000 exceeds 10% of system memory.
Test Image shape: (1, 784)
Extracting /incoming/data/train-images-idx3-ubyte.gz
Extracting /incoming/data/train-labels-idx1-ubyte.gz
Extracting /incoming/data/t10k-images-idx3-ubyte.gz
Extracting /incoming/data/t10k-labels-idx1-ubyte.gz
Step 0, training batch accuracy 7 %
Step 100, training batch accuracy 80 %
Step 200, training batch accuracy 86 %
Step 300, training batch accuracy 91 %
Step 400, training batch accuracy 86 %
Step 500, training batch accuracy 89 %
Step 600, training batch accuracy 88 %
Step 700, training batch accuracy 94 %
Step 800, training batch accuracy 91 %
Step 900, training batch accuracy 83 %
Test accuracy: 89.89999890327454
Creating new file... /outgoing/mnist-accuracy
Inference value of test Image is : 7
Creating new file... /outgoing/mnist-inference
subin@SuMcPro:~/development/aicoe/pl-tensorflowapp$
subin@SuMcPro:~/development/aicoe/pl-tensorflowapp$
subin@SuMcPro:~/development/aicoe/pl-tensorflowapp$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment