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
3bee8403
Commit
3bee8403
authored
Sep 21, 2021
by
Vishnu Banna
Browse files
detection_generator update
parent
ad3427f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
official/vision/beta/projects/yolo/modeling/yolo_model.py
official/vision/beta/projects/yolo/modeling/yolo_model.py
+4
-4
No files found.
official/vision/beta/projects/yolo/modeling/yolo_model.py
View file @
3bee8403
...
...
@@ -104,7 +104,7 @@ class Yolo(tf.keras.Model):
self
.
_backbone
=
backbone
self
.
_decoder
=
decoder
self
.
_head
=
head
self
.
_
filte
r
=
detection_generator
self
.
_
detection_generato
r
=
detection_generator
return
def
call
(
self
,
inputs
,
training
=
False
):
...
...
@@ -115,7 +115,7 @@ class Yolo(tf.keras.Model):
return
{
"raw_output"
:
raw_predictions
}
else
:
# Post-processing.
predictions
=
self
.
_
filte
r
(
raw_predictions
)
predictions
=
self
.
_
detection_generato
r
(
raw_predictions
)
predictions
.
update
({
"raw_output"
:
raw_predictions
})
return
predictions
...
...
@@ -132,8 +132,8 @@ class Yolo(tf.keras.Model):
return
self
.
_head
@
property
def
filte
r
(
self
):
return
self
.
_
filte
r
def
detection_generato
r
(
self
):
return
self
.
_
detection_generato
r
def
get_config
(
self
):
return
self
.
_config_dict
...
...
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