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
8b47f2c6
Commit
8b47f2c6
authored
Jul 06, 2022
by
ghpark
Browse files
Remove comments
parent
cea69f27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
6 deletions
+0
-6
official/projects/detr/dataloaders/detr_input.py
official/projects/detr/dataloaders/detr_input.py
+0
-2
official/projects/detr/modeling/detr.py
official/projects/detr/modeling/detr.py
+0
-4
No files found.
official/projects/detr/dataloaders/detr_input.py
View file @
8b47f2c6
...
...
@@ -92,7 +92,6 @@ class Parser(parser.Parser):
image_shape
=
tf
.
shape
(
image
)[:
2
]
boxes
=
box_ops
.
denormalize_boxes
(
boxes
,
image_shape
)
gt_boxes
=
boxes
short_side
=
scales
[
0
]
image
,
image_info
=
preprocess_ops
.
resize_image
(
image
,
...
...
@@ -126,7 +125,6 @@ class Parser(parser.Parser):
def
_parse_eval_data
(
self
,
data
):
"""Parses data for training and evaluation."""
groundtruths
=
{}
classes
=
data
[
'groundtruth_classes'
]
boxes
=
data
[
'groundtruth_boxes'
]
is_crowd
=
data
[
'groundtruth_is_crowd'
]
...
...
official/projects/detr/modeling/detr.py
View file @
8b47f2c6
...
...
@@ -114,10 +114,6 @@ class DETR(tf.keras.Model):
self
.
_dropout_rate
=
dropout_rate
if
hidden_size
%
2
!=
0
:
raise
ValueError
(
"hidden_size must be a multiple of 2."
)
# TODO(frederickliu): Consider using the backbone factory.
# TODO(frederickliu): Add to factory once we get skeleton code in.
#self._backbone = resnet.ResNet(101, bn_trainable=False)
# (gunho) use backbone factory
self
.
_backbone
=
backbone
def
build
(
self
,
input_shape
=
None
):
...
...
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