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
a7e818be
Commit
a7e818be
authored
Mar 08, 2020
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 299757650
parent
7d86c317
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
official/r1/resnet/imagenet_main.py
official/r1/resnet/imagenet_main.py
+2
-1
No files found.
official/r1/resnet/imagenet_main.py
View file @
a7e818be
...
@@ -22,6 +22,7 @@ import os
...
@@ -22,6 +22,7 @@ import os
from
absl
import
app
as
absl_app
from
absl
import
app
as
absl_app
from
absl
import
flags
from
absl
import
flags
from
six.moves
import
range
import
tensorflow
as
tf
import
tensorflow
as
tf
from
official.r1.resnet
import
imagenet_preprocessing
from
official.r1.resnet
import
imagenet_preprocessing
...
@@ -307,7 +308,7 @@ def _get_block_sizes(resnet_size):
...
@@ -307,7 +308,7 @@ def _get_block_sizes(resnet_size):
except
KeyError
:
except
KeyError
:
err
=
(
'Could not find layers for selected Resnet size.
\n
'
err
=
(
'Could not find layers for selected Resnet size.
\n
'
'Size received: {}; sizes allowed: {}.'
.
format
(
'Size received: {}; sizes allowed: {}.'
.
format
(
resnet_size
,
choices
.
keys
()))
resnet_size
,
list
(
choices
.
keys
()))
)
raise
ValueError
(
err
)
raise
ValueError
(
err
)
...
...
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