You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If my Custom Datasets have more than 255 category for Segmentation task,Can I use dataset APIs (DatasetCatalog, MetadataCatalog) add it for standard format? How to do?
segmentation (list[list[float]] or dict): the segmentation mask of the instance.
If list[list[float]], it represents a list of polygons, one for each connected component of the object. Each list[float] is one simple polygon in the format of [x1, y1, ..., xn, yn] (n≥3). The Xs and Ys are absolute coordinates in unit of pixels.
If dict, it represents the per-pixel segmentation mask in COCO’s compressed RLE format. The dict should have keys “size” and “counts”. You can convert a uint8 segmentation mask of 0s and 1s into such dict by pycocotools.mask.encode(np.asarray(mask, order="F")). cfg.INPUT.MASK_FORMAT must be set to bitmask if using the default data loader with such format.
Just use ‘’list[list[float]]‘’? (segmentation (list[list[float]] or dict)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If my Custom Datasets have more than 255 category for Segmentation task,Can I use dataset APIs (DatasetCatalog, MetadataCatalog) add it for standard format? How to do?
In Tutorials: https://detectron2.readthedocs.io/en/latest/tutorials/datasets.html#standard-dataset-dicts:
Just use ‘’list[list[float]]‘’? (segmentation (list[list[float]] or dict)
Beta Was this translation helpful? Give feedback.
All reactions