Dataset Viewer
Auto-converted to Parquet Duplicate
num_clips
int64
lat_per_clip
int64
clip_frames
int64
temporal_downsample
int64
channel_mean
list
channel_std
list
vae_checkpoint
null
vae_kwargs
dict
1,920
25
97
4
[ 0.20311139523983002, -0.7245767116546631, 0.3884124159812927, -0.3891321122646332, 1.1012279987335205, 0.4922700524330139, -0.6165921688079834, -0.3959619700908661, -0.4718964695930481, -0.7035577297210693, -0.9139173626899719, 0.26834309101104736, -0.2505759000778198, -0.5722838640213013,...
[ 0.9168542623519897, 0.7309258580207825, 0.8209602236747742, 0.7895018458366394, 0.7322016954421997, 0.7854174375534058, 0.8542202115058899, 0.7066319584846497, 0.7305580377578735, 0.7533389329910278, 0.9695752859115601, 0.7432045936584473, 0.9322052001953125, 0.7680855393409729, 0.684847...
null
{ "_target_": "models.wan_vae.WanVAE", "pretrained_model_name_or_path": "Wan-AI/Wan2.2-TI2V-5B-Diffusers", "subfolder": "vae", "dtype": "bfloat16" }

mini-carla-192x320-wan-2p2-vae

Wan2.2-VAE-encoded latents of a small CARLA driving dataset (192x320, native resolution, no resize). Produced for training miniworld, a minimal flow-matching world-model framework, by caching pixel clips through the frozen pretrained Wan2.2 video VAE instead of a locally-trained one.

Data size

Source pixel dataset mini_192x320_low: 320 episodes, 600 frames each (192x320, 20 fps) β€” ~33 GB
Clips in this cache 1,920 (6 non-overlapping 97-frame clips per episode)
Latent frames 48,000
Latent shape (48000, 48, 12, 20) β€” (N, C, h, w), float16
Total size 1.1 GB (latents.npy is 1.05 GB of that)

Each latent frame covers 4 pixel frames (except the very first latent of an episode, which covers 1 β€” see "Clip layout" below), so 48,000 latents β‰ˆ 191,000 pixel frames' worth of driving footage compressed to a 30x smaller footprint.

Files

  • latents.npy β€” (48000, 48, 12, 20) float16, per-channel normalised to zero mean / unit variance (see channel_mean / channel_std in meta.json to invert).
  • actions.npy β€” (48000, 12) float32. Each row is 4 pixel frames' worth of (throttle, steer, brake) concatenated in time order (one latent = 4 pixel frames = 4x3 action values), not averaged β€” averaging would make two different steering profiles inside one window indistinguishable.
  • ep_ids.npy β€” (48000,) int64. Groups latent frames into clips; a clip never straddles two ep_ids.
  • meta.json β€” provenance and everything needed to invert normalisation: channel_mean, channel_std, temporal_downsample (4), clip_frames (97), lat_per_clip (25), and vae_kwargs (the exact VAE config that produced this cache β€” models.wan_vae.WanVAE wrapping Wan-AI/Wan2.2-TI2V-5B-Diffusers's VAE, frozen, vae_checkpoint: null since nothing local was trained).

Clip layout

Encoding streams each 600-frame episode through the VAE continuously (not per-clip), so every latent keeps the causal encoder's full receptive field, then slices the resulting per-episode latent sequence into non-overlapping 25-latent groups β€” each becoming one clip with its own ep_id. Only the first group of an episode starts at the VAE's single-frame latent (index 0, encoded alone against replicate padding); every later group starts at a latent that already covers 4 pixel frames. All latents are still fully causal (streamed from the episode's real start), just not all "first-latent" clips begin at a literal frame 1.

Loading

Plain numpy, no extra dependencies:

import json
import numpy as np
from huggingface_hub import snapshot_download

local_dir = snapshot_download("kamwoh/mini-carla-192x320-wan-2p2-vae", repo_type="dataset")

latents = np.load(f"{local_dir}/latents.npy", mmap_mode="r")  # (48000, 48, 12, 20) float16
actions = np.load(f"{local_dir}/actions.npy")                  # (48000, 12) float32
ep_ids  = np.load(f"{local_dir}/ep_ids.npy")                    # (48000,) int64
with open(f"{local_dir}/meta.json") as f:
    meta = json.load(f)

# undo per-channel normalisation to get raw Wan2.2 latents back
mean = np.asarray(meta["channel_mean"], dtype=np.float32)
std = np.asarray(meta["channel_std"], dtype=np.float32)
raw = latents[:4].astype(np.float32) * std[None, :, None, None] + mean[None, :, None, None]

To decode back to pixels, feed raw (channels-first, time axis inserted) to models.wan_vae.WanVAE.decode_from_latent in the miniworld repo β€” it applies Wan's own latents_mean / latents_std before calling diffusers.AutoencoderKLWan.decode.

With miniworld's own dataset class

Drop-in for datasets/carla_latent.py's CarlaLatentDataset β€” just point data_dir at the downloaded snapshot:

from datasets.carla_latent import CarlaLatentDataset

ds = CarlaLatentDataset(data_dir=local_dir, frames_per_clip=25)  # 25 = full 97-frame clip
item = ds[0]  # {"image": (25, 48, 12, 20), "action": (25, 12)}

frames_per_clip can be smaller (e.g. 1 for single-latent-frame training) since every clip is sliced from the same cache; see configs/experiment/carla_latent_97*.yaml in the miniworld repo for the training configs this cache was built for.

Provenance

Built with encode_latents.py from the miniworld repo:

python encode_latents.py model=wan_vae dataset.data_dir=<mini_192x320_low pixel dir> \
    out_dir=<this cache> clip_frames=97

No local VAE checkpoint β€” models.wan_vae.WanVAE wraps the frozen, pretrained Wan-AI/Wan2.2-TI2V-5B-Diffusers VAE (16x spatial / 4x temporal compression, 48 latent channels), used purely as an encoder here.

Downloads last month
34