dgs.models.dataset.MOT.MOTImage.get_path_in_dataset¶
- MOTImage.get_path_in_dataset(path: str) str ¶
Given an arbitrary file- or directory-path, return its absolute path.
check whether the path is a valid absolute path
check whether the path is a valid project path
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.