Commit 423e109b authored by Gunho Park's avatar Gunho Park
Browse files

Internal change

parent a0876f62
...@@ -97,7 +97,7 @@ COCO_VAL_EXAMPLES = 5000 ...@@ -97,7 +97,7 @@ COCO_VAL_EXAMPLES = 5000
@exp_factory.register_config_factory('detr_coco') @exp_factory.register_config_factory('detr_coco')
def detr_coco() -> cfg.ExperimentConfig: def detr_coco() -> cfg.ExperimentConfig:
"""Config to get results that matches the paper.""" """Config to get results that matches the paper."""
train_batch_size = 32 train_batch_size = 64
eval_batch_size = 64 eval_batch_size = 64
steps_per_epoch = COCO_TRAIN_EXAMPLES // train_batch_size steps_per_epoch = COCO_TRAIN_EXAMPLES // train_batch_size
train_steps = 300 * steps_per_epoch # 300 epochs train_steps = 300 * steps_per_epoch # 300 epochs
......
...@@ -46,10 +46,6 @@ class Parser(parser.Parser): ...@@ -46,10 +46,6 @@ class Parser(parser.Parser):
#classes = data['groundtruth_classes'] + 1 #classes = data['groundtruth_classes'] + 1
classes = data['groundtruth_classes'] classes = data['groundtruth_classes']
boxes = data['groundtruth_boxes'] 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'] is_crowd = data['groundtruth_is_crowd']
# Gets original image. # Gets original image.
...@@ -139,10 +135,6 @@ class Parser(parser.Parser): ...@@ -139,10 +135,6 @@ class Parser(parser.Parser):
groundtruths = {} groundtruths = {}
classes = data['groundtruth_classes'] classes = data['groundtruth_classes']
boxes = data['groundtruth_boxes'] 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'] is_crowd = data['groundtruth_is_crowd']
# Gets original image and its size. # Gets original image and its size.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment