From 53da7ffdf834eff0fee9edc33fafc0e4f735c1d0 Mon Sep 17 00:00:00 2001 From: wangguanzhong Date: Tue, 10 Nov 2020 15:54:19 +0800 Subject: [PATCH] remove segm filter (#1682) --- ppdet/data/source/coco.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ppdet/data/source/coco.py b/ppdet/data/source/coco.py index ea97f6675..67c561786 100644 --- a/ppdet/data/source/coco.py +++ b/ppdet/data/source/coco.py @@ -137,13 +137,6 @@ class COCODataSet(DataSet): y1 = max(0, y) x2 = min(im_w - 1, x1 + max(0, box_w - 1)) y2 = min(im_h - 1, y1 + max(0, box_h - 1)) - if 'segmentation' in inst: - if inst['segmentation'] is None or len(inst[ - 'segmentation']) == 0: - logger.warn( - 'Found an empty segmentation in annotations: im_id: {}.'. - format(img_id)) - continue if x2 >= x1 and y2 >= y1: inst['clean_bbox'] = [x1, y1, x2, y2] bboxes.append(inst) -- GitLab