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
656ec2a6
Commit
656ec2a6
authored
Aug 15, 2020
by
Kaushik Shivakumar
Browse files
fixes to simplify
parent
8f5ed2de
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
research/object_detection/core/target_assigner.py
research/object_detection/core/target_assigner.py
+0
-7
No files found.
research/object_detection/core/target_assigner.py
View file @
656ec2a6
...
...
@@ -2026,13 +2026,6 @@ class DETRTargetAssigner(object):
representing weights for each element in cls_targets.
reg_targets: a float32 tensor with shape [num_box_preds, box_code_dimension]
reg_weights: a float32 tensor with shape [num_box_preds]
match: an int32 tensor of shape [num_box_preds] containing result of box_pred
groundtruth matching. Each position in the tensor indicates an box_pred
and holds the following meaning:
(1) if match[i] >= 0, box_pred i is matched with groundtruth match[i].
(2) if match[i]=-1, box_pred i is marked to be background .
(3) if match[i]=-2, box_pred i is ignored since it is not background and
does not have sufficient overlap to call it a foreground.
"""
unmatched_class_label
=
tf
.
constant
([
1
]
+
[
0
]
*
groundtruth_labels
.
shape
[
1
],
tf
.
float32
)
...
...
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