dgs.models.dataset.keypoint_rcnn.KeypointRCNNImageBackbone.arbitrary_to_ds¶
- KeypointRCNNImageBackbone.arbitrary_to_ds(a: str, idx: int) list[State] [source]¶
Given a filepath, predict the bounding boxes and key-points of the respective image. Return a State containing all the available information. Because the state is known, the image is not saved in the State, to reduce the space-overhead on the GPU.
- Parameters:
a – A single path to an image file.
idx – The index of the file path within
self.data
.
- Returns:
A list containing one single
State
that describes zero or more detections of the given image.