Open hugoycj opened 3 years ago
我发现这段代码会一直返回False,导致过滤后的数据集是0
def has_valid_annotation(anno, ann_types, filter_crowd=True):
# if it's empty, there is no annotation
if len(anno) == 0:
return False
if filter_crowd:
# if image only has crowd annotation, it should be filtered
if 'iscrowd' in anno[0]:
anno = [obj for obj in anno if obj["iscrowd"] == 0]
if len(anno) == 0:
return False
# if all boxes have close to zero area, there is no annotation
if _has_only_empty_bbox(anno):
return False
return False
Hello!
I am trying to train RP-R-CNN, but I encounter a problem when runing the training command following the Readme.md. When running
I am getting the following message:
So thanks for your help