dgs.models.dataset.dataset.ImageHistoryDataset.arbitrary_to_ds

abstract ImageHistoryDataset.arbitrary_to_ds(a: list[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.