bundle.recon3d.datasets ======================= .. py:module:: bundle.recon3d.datasets .. autoapi-nested-parse:: Dataset management for the Recon3D pipeline. Handles downloading, extracting, and locating benchmark datasets used for testing and evaluation. Datasets are stored in a shared data root accessible to all recon3d pods. Attributes ---------- .. autoapisummary:: bundle.recon3d.datasets.log bundle.recon3d.datasets.DEFAULT_DATA_ROOT bundle.recon3d.datasets.DATASET_REGISTRY Classes ------- .. autoapisummary:: bundle.recon3d.datasets.DatasetId bundle.recon3d.datasets.DatasetInfo Functions --------- .. autoapisummary:: bundle.recon3d.datasets.fetch bundle.recon3d.datasets.locate_scene Module Contents --------------- .. py:data:: log .. py:data:: DEFAULT_DATA_ROOT .. py:class:: DatasetId Bases: :py:obj:`str`, :py:obj:`enum.Enum` Known benchmark datasets. .. py:attribute:: MIP_NERF_360 :value: '360_v2' .. py:data:: DATASET_REGISTRY :type: dict[DatasetId, tuple[str, str, list[str]]] .. py:class:: DatasetInfo(/, **data: Any) Bases: :py:obj:`bundle.core.data.Data` Metadata about a fetched dataset. .. py:attribute:: dataset_id :type: DatasetId .. py:attribute:: root :type: pathlib.Path .. py:attribute:: scenes :type: list[str] .. py:function:: fetch(dataset_id: DatasetId, data_root: pathlib.Path = DEFAULT_DATA_ROOT) -> DatasetInfo :async: Download and extract a dataset if not already present. :param dataset_id: Which dataset to fetch. :param data_root: Root directory for all datasets. :returns: DatasetInfo with the extracted root and available scenes. .. py:function:: locate_scene(dataset_root: pathlib.Path, scene: str) -> pathlib.Path Find the images directory for a scene within an extracted dataset. Prefers lower resolution variants to keep tests fast: images_4 > images_2 > images (following the ppisp convention). :param dataset_root: Root of the extracted dataset (e.g. /workspace/data/360_v2). :param scene: Scene name (e.g. "bicycle"). :returns: Path to the images directory.