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
9358b176
Commit
9358b176
authored
Jun 14, 2021
by
Vishnu Banna
Browse files
merged
parent
a04d9e0e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
official/vision/beta/projects/yolo/ops/box_ops_test.py
official/vision/beta/projects/yolo/ops/box_ops_test.py
+1
-2
official/vision/beta/projects/yolo/ops/math_ops.py
official/vision/beta/projects/yolo/ops/math_ops.py
+1
-1
official/vision/beta/projects/yolo/ops/nms_ops.py
official/vision/beta/projects/yolo/ops/nms_ops.py
+1
-1
No files found.
official/vision/beta/projects/yolo/ops/box_ops_test.py
View file @
9358b176
...
...
@@ -49,6 +49,5 @@ class InputUtilsTest(parameterized.TestCase, tf.test.TestCase):
self
.
assertArrayNear
(
ciou
,
expected_iou
,
0.001
)
self
.
assertArrayNear
(
diou
,
expected_iou
,
0.001
)
if
__name__
==
'__main__'
:
tf
.
test
.
main
()
tf
.
test
.
main
()
\ No newline at end of file
official/vision/beta/projects/yolo/ops/math_ops.py
View file @
9358b176
...
...
@@ -3,7 +3,7 @@ import tensorflow as tf
def
rm_nan_inf
(
x
,
val
=
0.0
):
"""
r
emove nan and infinity
"""
R
emove nan and infinity
Args:
x: any `Tensor` of any type.
...
...
official/vision/beta/projects/yolo/ops/nms_ops.py
View file @
9358b176
...
...
@@ -8,7 +8,7 @@ class TiledNMS():
IOU_TYPES
=
{
'diou'
:
0
,
'giou'
:
1
,
'ciou'
:
2
,
'iou'
:
3
}
def
__init__
(
self
,
iou_type
=
'diou'
,
beta
=
0.6
):
'''
i
nitialization for all non max suppression operations mainly used to
'''
I
nitialization for all non max suppression operations mainly used to
select hyperparameters for the iou type and scaling.
Args:
...
...
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