enhance generate mask labels, test=develop (#17380)

revert-17080-prepare_data
jerrywgz 6 years ago committed by GitHub
parent d915a04907
commit 0cae5a36b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -323,6 +323,10 @@ class GenerateMaskLabelsKernel : public framework::OpKernel<T> {
auto gt_segms_lod = gt_segms->lod();
for (int i = 0; i < n; ++i) {
if (rois_lod[i] == rois_lod[i + 1]) {
lod0.emplace_back(num_mask);
continue;
}
Tensor im_info_slice = im_info->Slice(i, i + 1);
Tensor gt_classes_slice =
gt_classes->Slice(gt_classes_lod[i], gt_classes_lod[i + 1]);

Loading…
Cancel
Save