Skip to content

VectorDataset: return bounding boxes and instance segmentation masks #2505

@adamjstewart

Description

@adamjstewart

Summary

Currently, VectorDataset.__getitem__ returns only a raster mask designed for semantic segmentation. We should extend VectorDataset to support:

raster output

  • semantic segmentation mask
  • instance segmentation mask

vector output

  • object detection bounding boxes
  • keypoint detection
  • object polygons?

Rationale

Currently VectorDataset can only be used for semantic segmentation, but there are many other applications that store data in vector shapefiles.

Implementation

We should decide whether we should always return all of these options, or whether the dataset will have a new parameter that decides which output will be returned.

Alternatives

Could also make a new dataset class.

Additional information

No response

Metadata

Metadata

Assignees

Labels

datasetsGeospatial or benchmark datasetsgood first issueA good issue for a new contributor to work on

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions