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
e0b082ed
Commit
e0b082ed
authored
Aug 10, 2020
by
Kaushik Shivakumar
Browse files
fix documentation for box coder
parent
4f7965fb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
research/object_detection/box_coders/detr_box_coder.py
research/object_detection/box_coders/detr_box_coder.py
+6
-12
No files found.
research/object_detection/box_coders/detr_box_coder.py
View file @
e0b082ed
...
...
@@ -37,16 +37,10 @@ EPSILON = 1e-8
class
DETRBoxCoder
(
box_coder
.
BoxCoder
):
"""
Faster RCNN
box coder."""
"""
DETR
box coder."""
def
__init__
(
self
):
"""Constructor for DETRBoxCoder.
Args:
scale_factors: List of 4 positive scalars to scale ty, tx, th and tw.
If set to None, does not perform scaling. For Faster RCNN,
the open-source implementation recommends using [10.0, 10.0, 5.0, 5.0].
"""
"""Constructor for DETRBoxCoder."""
pass
@
property
...
...
@@ -58,10 +52,10 @@ class DETRBoxCoder(box_coder.BoxCoder):
Args:
boxes: BoxList holding N boxes to be encoded.
anchors: BoxList of anchors.
anchors: BoxList of anchors
, ignored for DETR
.
Returns:
a tensor representing N
anchor-
encoded boxes of the format
a tensor representing N encoded boxes of the format
[ty, tx, th, tw].
"""
# Convert anchors to the center coordinate representation.
...
...
@@ -72,8 +66,8 @@ class DETRBoxCoder(box_coder.BoxCoder):
"""Decode relative codes to boxes.
Args:
rel_codes: a tensor representing N
anchor-
encoded boxes.
anchors: BoxList of anchors.
rel_codes: a tensor representing N encoded boxes.
anchors: BoxList of anchors
, ignored for DETR
.
Returns:
boxes: BoxList holding N bounding boxes.
...
...
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