from typing import Any from unik3d.datasets.sequence_dataset import SequenceDataset class ARKit(SequenceDataset): min_depth = 0.01 max_depth = 10.0 depth_scale = 1000.0 test_split = "Training.txt" train_split = "Training.txt" sequences_file = "sequences.json" hdf5_paths = ["ARKitS.hdf5"] def __init__( self, image_shape: tuple[int, int], split_file: str, test_mode: bool, normalize: bool, augmentations_db: dict[str, Any], resize_method: str, mini: float = 1.0, num_frames: int = 1, benchmark: bool = False, decode_fields: list[str] = ["image", "depth"], inplace_fields: list[str] = ["K", "cam2w"], **kwargs, ) -> None: super().__init__( image_shape=image_shape, split_file=split_file, test_mode=test_mode, benchmark=benchmark, normalize=normalize, augmentations_db=augmentations_db, resize_method=resize_method, mini=mini, num_frames=num_frames, decode_fields=decode_fields, inplace_fields=inplace_fields, **kwargs, ) def pre_pipeline(self, results): results = super().pre_pipeline(results) results["dense"] = [True] * self.num_frames * self.num_copies results["quality"] = [2] * self.num_frames * self.num_copies return results