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

Add Position Sensitive ROI Align functions #773

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
8618415
rename psroi_pooling_2d -> ps_roi_average_pooling_2d
knorth55 Feb 8, 2019
d988ad6
add ps_roi_average_align_2d
knorth55 Feb 8, 2019
4f21814
check input types in ps_roi_average_pooling_2d
knorth55 Feb 8, 2019
3bd0452
refactor ps_roi_average_align_2d.py
knorth55 Feb 8, 2019
d8e0ad6
fix typo in functions_tests
knorth55 Feb 8, 2019
6301201
add ps_roi_max_align_2d.py
knorth55 Feb 8, 2019
127bd12
remove unnecessary import
knorth55 Feb 8, 2019
526f014
update ps_roi_average_align_2d
knorth55 Feb 18, 2019
40c0a23
update ps_roi_max_align_2d.py
knorth55 Feb 18, 2019
74d2274
do more spatial_scale test for ps roi pooling/align functions
knorth55 Feb 18, 2019
d6c07eb
refactor ps_roi_average/max_align_2d
knorth55 Feb 18, 2019
8d4ab8c
fix typo in ps_roi_average_pooling_2d
knorth55 Feb 18, 2019
635ce74
update ps_roi_average_pooling_2d
knorth55 Feb 18, 2019
65710e5
fix typo in ps_roi_average_pooling_2d
knorth55 Feb 18, 2019
0aa9957
fix typo in ps_roi_max_align_2d and ps_roi_average_align_2d
knorth55 Feb 18, 2019
7395fea
refactor ps_roi_average_pooling_2d
knorth55 Feb 18, 2019
f166c7e
refactor ps_roi_average_align_2d
knorth55 Feb 18, 2019
098d5f2
fix typo in ps_roi_average_align_2d
knorth55 Feb 18, 2019
92afda6
refactor cuda kernel in ps_roi_average_pooling_2d
knorth55 Feb 18, 2019
7001c90
refactor cuda kernel in ps_roi_average_align_2d
knorth55 Feb 18, 2019
4dbb913
refactor ps_roi_max_align_2d
knorth55 Feb 18, 2019
86c33ba
fix typo in ps_roi_max_align_2d
knorth55 Feb 18, 2019
64b8ec4
set initial maxval as - np.inf for ps_roi_max_align_2d
knorth55 Feb 18, 2019
a2cfcc1
fix ps_roi_max_align_2d test to pass
knorth55 Feb 18, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions chainercv/experimental/links/model/fcis/fcis_resnet101.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import numpy as np

from chainercv.experimental.links.model.fcis import FCIS
from chainercv.functions import psroi_pooling_2d
from chainercv.functions import ps_roi_average_pooling_2d
from chainercv.links import Conv2DBNActiv
from chainercv.links.model.faster_rcnn.region_proposal_network import \
RegionProposalNetwork
Expand Down Expand Up @@ -365,7 +365,7 @@ def _pool(
self, h_cls_seg, h_ag_loc, rois, roi_indices, gt_roi_labels):
# PSROI Pooling
# shape: (n_roi, n_class, 2, roi_size, roi_size)
roi_cls_ag_seg_scores = psroi_pooling_2d(
roi_cls_ag_seg_scores = ps_roi_average_pooling_2d(
h_cls_seg, rois, roi_indices,
self.n_class * 2, self.roi_size, self.roi_size,
self.spatial_scale, self.group_size)
Expand All @@ -374,7 +374,7 @@ def _pool(
(-1, self.n_class, 2, self.roi_size, self.roi_size))

# shape: (n_roi, 2*4, roi_size, roi_size)
roi_ag_loc_scores = psroi_pooling_2d(
roi_ag_loc_scores = ps_roi_average_pooling_2d(
h_ag_loc, rois, roi_indices,
2 * 4, self.roi_size, self.roi_size,
self.spatial_scale, self.group_size)
Expand Down
5 changes: 3 additions & 2 deletions chainercv/functions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
from chainercv.functions.psroi_pooling_2d import psroi_pooling_2d # NOQA
from chainercv.functions.psroi_pooling_2d import PSROIPooling2D # NOQA
from chainercv.functions.ps_roi_average_align_2d import ps_roi_average_align_2d # NOQA
from chainercv.functions.ps_roi_average_pooling_2d import ps_roi_average_pooling_2d # NOQA
from chainercv.functions.ps_roi_max_align_2d import ps_roi_max_align_2d # NOQA
Loading