未验证 提交 7d286cd3 编写于 作者: J Jon Shlens 提交者: GitHub

Merge pull request #2651 from sguada/tmp1

Fixes imports
...@@ -103,8 +103,6 @@ import collections ...@@ -103,8 +103,6 @@ import collections
import tensorflow as tf import tensorflow as tf
from tensorflow.python.eager import context
slim = tf.contrib.slim slim = tf.contrib.slim
...@@ -344,13 +342,7 @@ def deploy(config, ...@@ -344,13 +342,7 @@ def deploy(config,
Returns: Returns:
A `DeployedModel` namedtuple. A `DeployedModel` namedtuple.
Raises:
RuntimeError: If eager execution is enabled.
""" """
if context.in_eager_mode():
raise RuntimeError(
'slim.deploy is not supported when eager execution is enabled.')
# Gather initial summaries. # Gather initial summaries.
summaries = set(tf.get_collection(tf.GraphKeys.SUMMARIES)) summaries = set(tf.get_collection(tf.GraphKeys.SUMMARIES))
......
...@@ -29,7 +29,7 @@ More information on integrating NASNet Models into your project can be found at ...@@ -29,7 +29,7 @@ More information on integrating NASNet Models into your project can be found at
To get started running models on-device go to [TensorFlow Mobile](https://www.tensorflow.org/mobile/). To get started running models on-device go to [TensorFlow Mobile](https://www.tensorflow.org/mobile/).
###Sample Commands for using NASNet-A Mobile and Large Checkpoints for Inference ## Sample Commands for using NASNet-A Mobile and Large Checkpoints for Inference
------- -------
Run eval with the NASNet-A mobile ImageNet model Run eval with the NASNet-A mobile ImageNet model
...@@ -45,7 +45,7 @@ python tensorflow_models/research/slim/eval_image_classifier \ ...@@ -45,7 +45,7 @@ python tensorflow_models/research/slim/eval_image_classifier \
--dataset_split_name=validation \ --dataset_split_name=validation \
--model_name=nasnet_mobile \ --model_name=nasnet_mobile \
--eval_image_size=224 \ --eval_image_size=224 \
--moving_average_decay=0.9999 \ --moving_average_decay=0.9999
``` ```
Run eval with the NASNet-A large ImageNet model Run eval with the NASNet-A large ImageNet model
...@@ -62,5 +62,5 @@ python tensorflow_models/research/slim/eval_image_classifier \ ...@@ -62,5 +62,5 @@ python tensorflow_models/research/slim/eval_image_classifier \
--dataset_split_name=validation \ --dataset_split_name=validation \
--model_name=nasnet_large \ --model_name=nasnet_large \
--eval_image_size=331 \ --eval_image_size=331 \
--moving_average_decay=0.9999 \ --moving_average_decay=0.9999
``` ```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册