fastdev.datasets.dexycb

Module Contents

class fastdev.datasets.dexycb.DexYCBDatasetConfig[source]

Configuration for DexYCBDataset.

data_root: str[source]
hand_side: Literal['left', 'right', 'both'] = 'left'[source]
setup: Literal['s0', 's1', 's2', 's3'] = 's0'[source]
  • [s0] Seen subjects, camera views, grasped objects, unseen frames

  • [s1] Unseen subjects

  • [s2] Unseen camera views

  • [s3] Unseen grasped objects

Reference

serials: List[str] | None = None[source]
return_color: bool = False[source]
return_depth: bool = False[source]
return_object_mesh: bool = False[source]
return_as_sequence: bool = False[source]
return_no_hand_frames: bool = True[source]
download_simplified_data_if_not_exist: bool = False[source]
force_rebuild_cache: bool = False[source]
__post_init__() None[source]
Return type:

None

class fastdev.datasets.dexycb.DexYCBDataset(config: DexYCBDatasetConfig, split: Literal['train', 'val', 'test', 'all'] = 'train')[source]

Bases: torch.utils.data.Dataset

DexYCBDataset.

Parameters:
  • config (DexYCBDatasetConfig) – configuration for the dataset.

  • split (Literal['train', 'val', 'test', 'all'])

Examples

>>> from fastdev.datasets.dexycb import DexYCBDataset, DexYCBDatasetConfig
>>> dataset = DexYCBDataset(DexYCBDatasetConfig())
ycb_classes[source]
config[source]
split = 'train'[source]
__len__()[source]
__getitem__(idx)[source]
property h[source]
property w[source]
property subjects[source]
property serials[source]
property sequences[source]
select_indices(seq: str, serial: str | None = None)[source]
Parameters:
  • seq (str)

  • serial (Optional[str])

build_collate_fn()[source]
static download_data(data_root: str)[source]
Parameters:

data_root (str)