Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
7d286cd3
Unverified
Commit
7d286cd3
authored
Oct 30, 2017
by
Jon Shlens
Committed by
GitHub
Oct 30, 2017
Browse files
Merge pull request #2651 from sguada/tmp1
Fixes imports
parents
5166727a
df203f73
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
11 deletions
+3
-11
research/slim/deployment/model_deploy.py
research/slim/deployment/model_deploy.py
+0
-8
research/slim/nets/nasnet/README.md
research/slim/nets/nasnet/README.md
+3
-3
No files found.
research/slim/deployment/model_deploy.py
View file @
7d286cd3
...
@@ -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
))
...
...
research/slim/nets/nasnet/README.md
View file @
7d286cd3
...
@@ -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
```
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment