↓ 1 callersFunctionpreprocess_droid(
data_root: str,
output_root: str,
batch_size: int = 4,
image_size: Tuple[int, int] = (192, 3
datasets/preprocess_droid.py:78
↓ 1 callersFunctionprocess_video_framesRead source video, apply frameskip, resize, reorder cameras. Returns (T, H, 3*W, 3) uint8 RGB array.
datasets/preprocess_droid_ood.py:83
Method__init__(self, data_root: str, traj_id: int, data_type: str, load_on_init: bool = False, encoder_type: str = "svd", an
weaver/datasets/droid.py:73
Functioncompute_psnr_ssim Compute SSIM & PSNR in smaller chunks to avoid OOM. Args: real, fake: (N, C, H, W) or (B, T, C, H, W) batch_size: how ma
weaver/utils/model_metrics.py:222
Methoddecode Decodes: (B, N, D) → (B, 3, H, W) (B, T, N, D) → (B, T, 3, H, W)
weaver/wm/encoders.py:246
Methodforward Args: x: Images of shape (B, 3, H, W) in range [0, 1] Returns: features: (B, 2048) feature vectors
weaver/utils/model_metrics.py:136
Methodforward Args: x: Videos of shape (B, 3, T, H, W) in range [0, 1] Returns: features: (B, 400) pre-softmax logits
weaver/utils/model_metrics.py:311
Methodforward joint: (B, action_dim) or (B, 1, action_dim) — current joint positions joint_vel: (action_num, action_dim) or (B, acti
weaver/dynamics/model.py:60
Methodforward Encodes: (B, C, H, W) → (B, 4, H/8, W/8) (B, T, C, H, W) → (B, T, 4, H/8, W/8)
weaver/wm/encoders.py:94
Methodforward Encodes: (B, C, H, W) → (B, N, D) where N = (H/8/spatial_size) * (W/8/spatial_size), D = latent_channels * spatial_size^2
weaver/wm/encoders.py:213