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
423e109b
Commit
423e109b
authored
Jul 02, 2022
by
Gunho Park
Browse files
Internal change
parent
a0876f62
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
9 deletions
+1
-9
official/projects/detr/configs/detr.py
official/projects/detr/configs/detr.py
+1
-1
official/projects/detr/dataloaders/detr_input.py
official/projects/detr/dataloaders/detr_input.py
+0
-8
No files found.
official/projects/detr/configs/detr.py
View file @
423e109b
...
...
@@ -97,7 +97,7 @@ COCO_VAL_EXAMPLES = 5000
@
exp_factory
.
register_config_factory
(
'detr_coco'
)
def
detr_coco
()
->
cfg
.
ExperimentConfig
:
"""Config to get results that matches the paper."""
train_batch_size
=
32
train_batch_size
=
64
eval_batch_size
=
64
steps_per_epoch
=
COCO_TRAIN_EXAMPLES
//
train_batch_size
train_steps
=
300
*
steps_per_epoch
# 300 epochs
...
...
official/projects/detr/dataloaders/detr_input.py
View file @
423e109b
...
...
@@ -46,10 +46,6 @@ class Parser(parser.Parser):
#classes = data['groundtruth_classes'] + 1
classes
=
data
[
'groundtruth_classes'
]
boxes
=
data
[
'groundtruth_boxes'
]
# If not empty, `attributes` is a dict of (name, ground_truth) pairs.
# `ground_gruth` of attributes is assumed in shape [N, attribute_size].
# TODO(xianzhi): support parsing attributes weights.
attributes
=
data
.
get
(
'groundtruth_attributes'
,
{})
is_crowd
=
data
[
'groundtruth_is_crowd'
]
# Gets original image.
...
...
@@ -139,10 +135,6 @@ class Parser(parser.Parser):
groundtruths
=
{}
classes
=
data
[
'groundtruth_classes'
]
boxes
=
data
[
'groundtruth_boxes'
]
# If not empty, `attributes` is a dict of (name, ground_truth) pairs.
# `ground_gruth` of attributes is assumed in shape [N, attribute_size].
# TODO(xianzhi): support parsing attributes weights.
attributes
=
data
.
get
(
'groundtruth_attributes'
,
{})
is_crowd
=
data
[
'groundtruth_is_crowd'
]
# Gets original image and its size.
...
...
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