File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
python/paddle/fluid/tests/unittests Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,20 @@ class ROIAlignOpMaker : public framework::OpProtoAndCheckerMaker {
132
132
" and pooled_w, likewise for height" )
133
133
.SetDefault (-1 );
134
134
AddComment (R"DOC(
135
-
135
+ **RoIAlign Operator**
136
+
137
+ Region of interest align (also known as RoI align) is to perform
138
+ bilinear interpolation on inputs of nonuniform sizes to obtain
139
+ fixed-size feature maps (e.g. 7*7)
140
+
141
+ Dividing each region proposal into equal-sized sections with
142
+ the pooled_width and pooled_height. Location remains the origin
143
+ result.
144
+
145
+ In each ROI bin, the value of the four regularly sampled locations
146
+ are computed directly through bilinear interpolation. The output is
147
+ the mean of four locations.
148
+ Thus avoid the misaligned problem.
136
149
)DOC" );
137
150
}
138
151
};
Original file line number Diff line number Diff line change @@ -167,4 +167,4 @@ def test_check_output(self):
167
167
self .check_output ()
168
168
169
169
def test_check_grad (self ):
170
- self .check_grad (['X' ], 'Out' , max_relative_error = 0.005 )
170
+ self .check_grad (['X' ], 'Out' )
You can’t perform that action at this time.
0 commit comments