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
f35907fd
"git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "c1a81c6fe3e56e7e185a890cb30a5e57462e9a3f"
Commit
f35907fd
authored
Sep 09, 2021
by
Vishnu Banna
Browse files
head update
parent
e3f09134
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/vision/beta/projects/yolo/modeling/heads/yolo_head.py
...ial/vision/beta/projects/yolo/modeling/heads/yolo_head.py
+1
-1
No files found.
official/vision/beta/projects/yolo/modeling/heads/yolo_head.py
View file @
f35907fd
...
@@ -125,7 +125,7 @@ class YoloHead(tf.keras.layers.Layer):
...
@@ -125,7 +125,7 @@ class YoloHead(tf.keras.layers.Layer):
def
num_boxes
(
self
):
def
num_boxes
(
self
):
if
self
.
_min_level
is
None
or
self
.
_max_level
is
None
:
if
self
.
_min_level
is
None
or
self
.
_max_level
is
None
:
raise
Exception
(
raise
Exception
(
'
m
odel has to be built before number of boxes can be determined'
)
'
M
odel has to be built before number of boxes can be determined
.
'
)
return
(
self
.
_max_level
-
self
.
_min_level
+
1
)
*
self
.
_boxes_per_level
return
(
self
.
_max_level
-
self
.
_min_level
+
1
)
*
self
.
_boxes_per_level
@
property
@
property
...
...
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