@@ -35,12 +35,7 @@ requires.
3535$ wget https://storage.googleapis.com/intel-optimized-tensorflow/models/inceptionv3_int8_pretrained_model.pb
3636```
3737
38- 4 . Build a docker image using master of the official
39- [ TensorFlow] ( https://github.com/tensorflow/tensorflow ) repository with
40- ` --config=mkl ` . More instructions on
41- [ how to build from source] ( https://software.intel.com/en-us/articles/intel-optimization-for-tensorflow-installation-guide#inpage-nav-5 ) .
42-
43- 5 . If you would like to run Inception V3 inference and test for
38+ 4 . If you would like to run Inception V3 inference and test for
4439accuracy, you will need the ImageNet dataset. Benchmarking for latency
4540and throughput do not require the ImageNet dataset.
4641
@@ -72,19 +67,19 @@ $ ll /home/myuser/datasets/ImageNet_TFRecords
7267-rw-r--r--. 1 user 55292089 Jun 20 15:09 validation-00127-of-00128
7368```
7469
75- 6 . Next, navigate to the ` benchmarks ` directory in your local clone of
70+ 5 . Next, navigate to the ` benchmarks ` directory in your local clone of
7671the [ intelai/models] ( https://github.com/IntelAI/models ) repo from step 1.
7772The ` launch_benchmark.py ` script in the ` benchmarks ` directory is
7873used for starting a benchmarking run in a optimized TensorFlow docker
7974container. It has arguments to specify which model, framework, mode,
8075precision, and docker image to use, along with your path to the ImageNet
81- TF Records that you generated in step 5 .
76+ TF Records that you generated in step 4 .
8277
83- Substitute in your own ` --data-location ` (from step 5 , for accuracy
84- only), ` --in-graph ` pretrained model file path (from step 3),
78+ Substitute in your own ` --data-location ` (from step 4 , for accuracy
79+ only), ` --in-graph ` pretrained model file path (from step 3) and
8580` --model-source-dir ` for the location where you cloned the
8681[ tensorflow/models] ( https://github.com/tensorflow/models ) repo
87- (from step 2), and the name/tag for your docker image (from step 4) .
82+ (from step 2).
8883
8984Inception V3 can be run for accuracy, latency benchmarking, or throughput
9085benchmarking. Use one of the following examples below, depending on
@@ -101,7 +96,7 @@ python launch_benchmark.py \
10196 --framework tensorflow \
10297 --accuracy-only \
10398 --batch-size 100 \
104- --docker-image tf_int8_docker_image \
99+ --docker-image intelaipg/intel-optimized-tensorflow:PR25765-devel-mkl \
105100 --in-graph /home/myuser/inceptionv3_int8_pretrained_model.pb \
106101 --data-location /home/myuser/datasets/ImageNet_TFRecords \
107102 -- input_height=299 input_width=299
@@ -123,7 +118,7 @@ python launch_benchmark.py \
123118 --benchmark-only \
124119 --batch-size 1 \
125120 --socket-id 0 \
126- --docker-image tf_int8_docker_image \
121+ --docker-image intelaipg/intel-optimized-tensorflow:PR25765-devel-mkl \
127122 --in-graph /home/myuser/inceptionv3_int8_pretrained_model.pb \
128123 --data-location /home/myuser/datasets/ImageNet_TFRecords \
129124 -- input_height=299 input_width=299 warmup_steps=50 steps=500
@@ -140,12 +135,18 @@ python launch_benchmark.py \
140135 --benchmark-only \
141136 --batch-size 128 \
142137 --socket-id 0 \
143- --docker-image tf_int8_docker_image \
138+ --docker-image intelaipg/intel-optimized-tensorflow:PR25765-devel-mkl \
144139 --in-graph /home/myuser/inceptionv3_int8_pretrained_model.pb \
145140 --data-location /home/myuser/datasets/ImageNet_TFRecords \
146141 -- input_height=299 input_width=299 warmup_steps=50 steps=500
147142```
148143
144+ The docker image (` intelaipg/intel-optimized-tensorflow:PR25765-devel-mkl ` )
145+ used in the commands above were built using
146+ [ TensorFlow
] ( [email protected] :tensorflow/tensorflow.git) master
147+ ([ e889ea1] ( https://github.com/tensorflow/tensorflow/commit/e889ea1dd965c31c391106aa3518fc23d2689954 ) ) and
148+ [ PR #25765 ] ( https://github.com/tensorflow/tensorflow/pull/25765 ) .
149+
149150Note that the ` --verbose ` or ` --output-dir ` flag can be added to any of the above commands
150151to get additional debug output or change the default output location..
151152
0 commit comments