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
824b70fb
"...resnet50_tensorflow.git" did not exist on "3d97b007cdb2c73f23daf9141437796095436c22"
Commit
824b70fb
authored
Aug 07, 2020
by
Kaushik Shivakumar
Browse files
region similarity calculator mod
parent
356c98bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
research/object_detection/core/region_similarity_calculator.py
...rch/object_detection/core/region_similarity_calculator.py
+2
-3
No files found.
research/object_detection/core/region_similarity_calculator.py
View file @
824b70fb
...
@@ -112,9 +112,8 @@ class DETRSimilarity(RegionSimilarityCalculator):
...
@@ -112,9 +112,8 @@ class DETRSimilarity(RegionSimilarityCalculator):
"""
"""
classification_scores
=
tf
.
matmul
(
groundtruth_labels
,
classification_scores
=
tf
.
matmul
(
groundtruth_labels
,
tf
.
nn
.
softmax
(
predicted_labels
),
transpose_b
=
True
)
tf
.
nn
.
softmax
(
predicted_labels
),
transpose_b
=
True
)
return
-
5
*
box_list_ops
.
l1
(
boxlist1
,
boxlist2
)
+
\
return
-
5
*
box_list_ops
.
l1
(
boxlist1
,
boxlist2
)
+
2
*
box_list_ops
.
giou
(
2
*
(
1
-
box_list_ops
.
giou_loss
(
boxlist1
,
boxlist2
))
+
\
boxlist1
,
boxlist2
)
+
classification_scores
classification_scores
class
NegSqDistSimilarity
(
RegionSimilarityCalculator
):
class
NegSqDistSimilarity
(
RegionSimilarityCalculator
):
"""Class to compute similarity based on the squared distance metric.
"""Class to compute similarity based on the squared distance metric.
...
...
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