dgs.models.dataset.dataset.ImageDataset.arbitrary_to_ds

abstract ImageDataset.arbitrary_to_ds(a: any, idx: int) list[State][source]

Given a single image ID or filepath, obtain the image, bbox, and possibly more information, then convert everything to a State object.

The index idx is given additionally, though it might not be used.