############################
# GAIA Webbed dataset, but trained as SINGLE-VIEW with a randomly-sampled
# camera per __getitem__. Variant of `gaia_iked11_41.yaml`:
#   - cameras_core lists ALL 11 cameras
#   - cameras_core_sample: 1 → pick one at random each iteration
#   - no cameras_aux (single-view recipe)
# Same underlying tarball dataset (split_all__IKED_32) and same labels/length.
# Pair with an experiment using num_views=1 (e.g. rwm3_gaia_wan_iked1.py
# alongside this YAML), NOT the 11-view rwm11_gaia.py.
dataset:
    name: Webbed
    path: [
        [s3://gaia-e2e-wfm-datasets/anydata/cv_webbed/videos/GAIA/split_all__IKED_32/split_all_1_0.json, 1],
    ]
    labels: [rgb,extrinsics,intrinsics]
    # The iked11 reference data is packaged with 32-frame tarball windows
    # (path: split_all__IKED_32). With multi_tarfiles=1 we read one tarball at
    # a time, so `length` must be <= 32 — pick 17 to match our InP experiment
    # below (state_t=5, tokenizer_chunk_duration=17 = (17-1)/4+1 latent frames).
    length: 17
    # `multi_tarfiles: auto` produces list-of-list urls that wbd.SimpleShardList
    # rejects (asserts urls[0] is str). `1` gives flat urls = strings. To run at
    # length>32 you'd need multi_tarfiles=auto + a custom shard_type that
    # handles tarball-group stitching.
    multi_tarfiles: 1
    # ONE outer group listing all 11 cameras (the webbed loader indexes the OUTER
    # cameras_core list by *dataset path* — BaseWebbed.py:183 `self.cameras_core[i]` —
    # so with a single path only cameras_core[0] is used). The webdataset url_opener
    # then `random.shuffle()`s this inner list and takes [:cameras_core_sample], so a
    # flat 11-camera inner list + sample=1 gives a uniformly random camera per sample.
    # (An earlier version listed 11 one-camera OUTER groups, which always resolved to
    # cameras_core[0]=front_wide — i.e. never random.)
    cameras_core: [[front_wide, front_pvm, front_tele, left_side_forward, left_side_pvm, left_side_rearward, right_side_forward, right_side_pvm, right_side_rearward, rear_tele, rear_pvm]]
    cameras_core_mode: skip
    cameras_core_sample: 1
    augmentation:
        resize: [-16,320]
    custom:
        frame_rate: 10.0
        frame_stride: 1
        prompt: "drive forward"
        reference_camera: false
        scale_factor: 0.25
############################
