Skip to content
This repository was archived by the owner on Jul 2, 2021. It is now read-only.

add VOC instance segmentation evaluation #554

Merged
merged 3 commits into from
Apr 5, 2018

Conversation

knorth55
Copy link
Contributor

@knorth55 knorth55 commented Apr 3, 2018

  • add eval_instance_segmentation_voc
  • add test_eval_instance_segmentation_voc
  • add doc for eval_instance_segmentation_voc

@knorth55 knorth55 self-assigned this Apr 3, 2018
@knorth55 knorth55 force-pushed the eval-inst-voc branch 3 times, most recently from d37b7ec to b89995a Compare April 3, 2018 15:55
Copy link
Member

@yuyu2172 yuyu2172 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

'voc_instance_segmentation_result_test_2018_04_04.npz'))[0],
encoding='latin1')

def test_eval_detection_voc(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test_eval_instance_segmentation_voc

@classmethod
def setUpClass(cls):
base_url = 'https://github.com/knorth55/' \
'share-weights/releases/download/v0.0.0'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added you to a maintainer of yuyu2172/share-weights

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx!

dataset. Each element of :obj:`pred_masks` is an object mask
and is an array whose shape is :math:`(R, H, W)`,
where :math:`R` corresponds
to the number of masks, which may vary among imagse.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imagse -> images


pred_labels = iter(pred_labels)
pred_scores = iter(pred_scores)
gt_labels = iter(gt_labels)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you iter all inputs?

dataset. Each element of :obj:`pred_masks` is an object mask
and is an array whose shape is :math:`(R, H, W)`,
where :math:`R` corresponds
to the number of masks, which may vary among imagse.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imagse --> images

length is :math:`N`.
iou_thresh (float): A prediction is correct if its Intersection over
Union with the ground truth is above this value.
use_07_metric (bool): Whether to use PASCAL VOC 2007 evaluation metric
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the default value should be False to be consistent with eval_detection_voc

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I set as default False

selec[gt_idx] = True
else:
match[l].append(0)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated

@yuyu2172 yuyu2172 merged commit 9b1b71e into chainer:master Apr 5, 2018
@yuyu2172
Copy link
Member

yuyu2172 commented Apr 5, 2018

LGTM

@knorth55 knorth55 deleted the eval-inst-voc branch April 5, 2018 07:28
@yuyu2172 yuyu2172 added this to the v0.9 milestone Apr 17, 2018
@yuyu2172 yuyu2172 mentioned this pull request May 28, 2018
21 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants