CocoDetectioncoco.py#L32–L94class CocoDetection(torchvision.datasets.CocoDetection, DetDataset)名称类型默认值img_folder——ann_file——transforms——return_masks—Falseremap_mscoco_category—Falseload_itemcoco.py#L51–L69load_item(self, idx)名称类型默认值idx——extra_reprcoco.py#L71–L78extra_repr(self) -> strcategoriescoco.py#L81–L82categories(self)category2namecoco.py#L85–L86category2name(self)category2labelcoco.py#L89–L90category2label(self)label2categorycoco.py#L93–L94label2category(self)
ConvertCocoPolysToMaskcoco.py#L114–L181class ConvertCocoPolysToMask(object)名称类型默认值return_masks—False__call__coco.py#L118–L181__call__(self, image: Image.Image, target, **kwargs)名称类型默认值imageImage.Image—target——kwargs——
__call__coco.py#L118–L181__call__(self, image: Image.Image, target, **kwargs)名称类型默认值imageImage.Image—target——kwargs——
convert_coco_poly_to_maskcoco.py#L97–L111convert_coco_poly_to_mask(segmentations, height, width)名称类型默认值segmentations——height——width——