未验证 提交 0cae5a36 编写于 作者: J jerrywgz 提交者: GitHub

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

上级 d915a049
......@@ -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]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册