Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

add aligned roi introduced in Detectron2 #16619

Merged
merged 7 commits into from
Dec 5, 2019
Merged

Conversation

Jerryzcn
Copy link
Contributor

@Jerryzcn Jerryzcn commented Oct 25, 2019

Description

(Brief description on what this PR is about)
add aligned ROIAlign introduced in pytorch/pytorch#23706
improved MaskRCNN mask acc by 0.2~0.3 mAP. However when training with large batch size, warmup needs to be increased.

@Jerryzcn
Copy link
Contributor Author

Jerryzcn commented Oct 25, 2019

@Kh4L @chongruo

lint

// Force malformed ROIs to be 1x1
T roi_width = max(roi_end_w - roi_start_w, (T)1.);
T roi_height = max(roi_end_h - roi_start_h, (T)1.);
if (!continuous_coordinate) { // backward compatiblity
Copy link
Contributor

Choose a reason for hiding this comment

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

Why we don't also CHECK_GT here?

Copy link
Contributor Author

@Jerryzcn Jerryzcn Oct 25, 2019

Choose a reason for hiding this comment

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

save computation. pytorch doesn't do it so I just copied it.

Copy link
Member

@wkcn wkcn left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you : )

I think it will be better to check roi_width and height > 0.
In addition, I wonder why it improve mAP by adding the offset -0.5 ?

@chongruo
Copy link
Contributor

chongruo commented Nov 1, 2019

LGTM. Thanks

@wkcn
Copy link
Member

wkcn commented Nov 26, 2019

Hi @Jerryzcn , could you please add an unittest? Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants