bundle.recon3d.datasets

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

Classes

DatasetId

Known benchmark datasets.

DatasetInfo

Metadata about a fetched dataset.

Functions

fetch(dataset_id[, data_root]) → DatasetInfo

Download and extract a dataset if not already present.

locate_scene(dataset_root, scene) → pathlib.Path

Find the images directory for a scene within an extracted dataset.

Module Contents

bundle.recon3d.datasets.log
bundle.recon3d.datasets.DEFAULT_DATA_ROOT
class bundle.recon3d.datasets.DatasetId[source]

Bases: str, enum.Enum

Known benchmark datasets.

MIP_NERF_360 = '360_v2'
bundle.recon3d.datasets.DATASET_REGISTRY: dict[DatasetId, tuple[str, str, list[str]]]
class bundle.recon3d.datasets.DatasetInfo(/, **data: Any)[source]

Bases: bundle.core.data.Data

Metadata about a fetched dataset.

dataset_id: DatasetId
root: pathlib.Path
scenes: list[str]
async bundle.recon3d.datasets.fetch(dataset_id: DatasetId, data_root: pathlib.Path = DEFAULT_DATA_ROOT) → DatasetInfo[source]

Download and extract a dataset if not already present.

Parameters:
  • dataset_id – Which dataset to fetch.

  • data_root – Root directory for all datasets.

Returns:

DatasetInfo with the extracted root and available scenes.

bundle.recon3d.datasets.locate_scene(dataset_root: pathlib.Path, scene: str) → pathlib.Path[source]

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).

Parameters:
  • dataset_root – Root of the extracted dataset (e.g. /workspace/data/360_v2).

  • scene – Scene name (e.g. “bicycle”).

Returns:

Path to the images directory.