############################
# AnyData "Unified" config for the locally-downloaded GAIA adverse_weather subset
# (cv_unified_adverse_weather). Scenes live as per-scene dirs under
#   /workspace/data/cv_unified_adverse_weather/videos/parquet_all_weather/<chunk>/<scene>/
# each with metadata.json + rgb/<camera>.mp4 (storage: videos, 299 frames @ 10fps) +
# lowdim/<camera>.npz. The split_all.json (10,562 scenes) + metadata_shared.json
# (downloaded alongside) drive discovery; metadata_shared declares storage=videos.
#
# Single-frame (length=1) image mode for Wan-Fun-Control (text + canny -> image).
# We restrict cameras_core to the seven native 16:9 (720x1280) cameras and drop the
# four PVM cameras (720x900) so a fixed 704x1280 resize introduces no aspect
# distortion and all samples share one resolution (enables batch > 1).
############################
dataset:
    name: Unified
    # Rain+snow subset (4,294/10,562 scenes) built by _awtmp/build_rain_snow_split.py:
    # refined caption keyword rules (active rain / wet pavement / snow on road; excludes
    # snow-capped-mountain scenery). Swap back to split_all.json for the full mixed set.
    path: [/workspace/data/cv_unified_adverse_weather/videos/parquet_all_weather/split_rain_snow.json]
    # rgb only — NOT 'language': loading the language label pulls lowdim/<cam>.npz
    # (intrinsics/extrinsics), and a few scenes are missing those npz -> the dataset
    # would skip+retry and eventually trip its cumulative error cap on a long run.
    # We don't need intrinsics/extrinsics; the caption is read straight from each
    # scene's metadata.json by AdverseWeatherCannyDataset (no lowdim dependency).
    labels: [rgb]
    length: 1
    cameras_core: [front_wide,front_tele,left_side_forward,left_side_rearward,rear_tele,right_side_forward,right_side_rearward]
    cameras_core_mode: skip
    cameras_core_sample: 1
    augmentation:
        resize: [704,1280]
    custom:
        frame_rate: 10.0
        frame_stride: 1
        prompt: "a driving scene"
        reference_camera: false
        scale_factor: 0.125
############################
