Camera export (#1191)

* implement the camera exporter

* remove train_dataset from exporter

* fix linter errors

* add docstring

* correct comment

* fix linter errors

* make image_filenames a property of the dataset
This commit is contained in:
Martin Piala authored and GitHub committed 2022-12-31 22:38:43 -07:00
1 parent 642a9e00f0
commit a5eea5f14d
3 files changed
+101 -4

No files matched your search

+11 -1
View File
@@ -18,7 +18,8 @@ Dataset.
from __future__ import annotations
from copy import deepcopy
from typing import Dict
from pathlib import Path
from typing import Dict, List
import numpy as np
import numpy.typing as npt
@@ -115,3 +116,12 @@ class InputDataset(Dataset):
def __getitem__(self, image_idx: int) -> Dict:
data = self.get_data(image_idx)
return data
@property
def image_filenames(self) -> List[Path]:
"""
Returns image filenames for this dataset.
The order of filenames is the same as in the Cameras object for easy mapping.
"""
return self._dataparser_outputs.image_filenames