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
2af9696b
Commit
2af9696b
authored
Jun 02, 2020
by
A. Unique TensorFlower
Browse files
Fix total block num bug in tf2 efficientnet.
PiperOrigin-RevId: 314405729
parent
7580f0a2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
official/vision/image_classification/efficientnet/efficientnet_model.py
...n/image_classification/efficientnet/efficientnet_model.py
+2
-1
No files found.
official/vision/image_classification/efficientnet/efficientnet_model.py
View file @
2af9696b
...
@@ -372,7 +372,8 @@ def efficientnet(image_input: tf.keras.layers.Input,
...
@@ -372,7 +372,8 @@ def efficientnet(image_input: tf.keras.layers.Input,
name
=
'stem'
)
name
=
'stem'
)
# Build blocks
# Build blocks
num_blocks_total
=
sum
(
block
.
num_repeat
for
block
in
blocks
)
num_blocks_total
=
sum
(
round_repeats
(
block
.
num_repeat
,
depth_coefficient
)
for
block
in
blocks
)
block_num
=
0
block_num
=
0
for
stack_idx
,
block
in
enumerate
(
blocks
):
for
stack_idx
,
block
in
enumerate
(
blocks
):
...
...
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