mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-25 10:29:51 +08:00
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:
1 parent
642a9e00f0
commit
a5eea5f14d
3 files changed
+101
-4
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user