dgs.models.dataset.keypoint_rcnn.KeypointRCNNImageBackbone.get_path_in_dataset

KeypointRCNNImageBackbone.get_path_in_dataset(path: str) str

Given an arbitrary file- or directory-path, return its absolute path.

  1. check whether the path is a valid absolute path

  2. check whether the path is a valid project path

  3. check whether the path is an existing path within self.params[“dataset_path”]

Returns:

The absolute found path to the file or directory.

Raises:

FileNotFoundError – If the path is not found.