MCPcopy Create free account

hub / github.com/arnavkj1995/WEAVER / functions

Functions311 in github.com/arnavkj1995/WEAVER

↓ 2 callersMethoduse_ema_weights
(self)
weaver/utils/tools.py:98
↓ 2 callersFunctionwm_rollout_and_score
Imagine one chunk and score with reward model + critic. Rolls out WEAVER for future_actions.shape[1] steps starting from context, then evalua
weaver/utils/wm_eval.py:182
↓ 1 callersMethod__init__
(self)
weaver/utils/metrics.py:70
↓ 1 callersMethod__init__
(self)
weaver/utils/model_metrics.py:283
↓ 1 callersMethod_aggregate_losses
Aggregate individual losses into a single total_loss for backward. Returns: total_loss: scalar tensor (live graph for backward)
weaver/wm/model.py:2000
↓ 1 callersFunction_align_lengths
Truncate to min length for LPIPS (requires same shape).
weaver/utils/eval.py:191
↓ 1 callersFunction_build_annotation
(global_idx, task_text, T, T_ctrl, obs_joints, obs_gripper, obs_cartesian, act_joint_po
weaver/synth_data_gen.py:422
↓ 1 callersFunction_build_pi_reqs_step1
Build B PI request dicts using real history frames (no WM decode needed).
weaver/synth_data_gen.py:90
↓ 1 callersFunction_build_pi_reqs_subsequent
Build B*N PI request dicts from decoded imagined frames.
weaver/synth_data_gen.py:103
↓ 1 callersFunction_commit_video_frame
Commit one video-rate frame: update the real-frame buffers and sync GT/imagined panels. Called every RGB_SKIP control steps to keep the video-rat
weaver/steer_pi_policy.py:271
↓ 1 callersFunction_compute_selection_scores
Phase 3 — Compute per-segment selection scores and return the best sample index. Returns: best_ns: (B,) int tensor — best sample index
weaver/synth_data_gen.py:299
↓ 1 callersMethod_dense_rope_ids
(self, P: int, device: torch.device)
weaver/wm/model.py:652
↓ 1 callersMethod_drop_tokens
Drop image patch tokens based on pre-computed ids_keep. Args: x: (B, T * N_total, D) flattened input T: Numb
weaver/wm/model.py:556
↓ 1 callersFunction_fk
Compute 4×4 end-effector transform for 7-DOF Panda joints.
weaver/robot/fk.py:16
↓ 1 callersMethod_forward_impl
( self, x: torch.Tensor, T: int, rope_ids: Optional[torch.Tensor] = None,
weaver/wm/nets.py:373
↓ 1 callersMethod_gather_sparse_tokens
Core sparse gather: keep only selected image tokens, preserve other tokens. Args: x: (B, N_total, D) where first n_img_t
weaver/wm/model.py:529
↓ 1 callersMethod_generate_sprint_ids
Generate random indices for SPRINT token dropping. Drops from image patch tokens only. Same ids_keep across all timesteps fo
weaver/wm/model.py:472
↓ 1 callersMethod_get_rope
Get cos/sin tensors for rope_mix. Args: rope_ids: (B, N) or (N,) indices into the precomputed table. Returns:
weaver/wm/nets.py:223
↓ 1 callersMethod_get_sparse_rope_ids
Compute rope_ids for sparse image tokens by gathering from the precomputed dense rope_ids. The dense rope_ids already encode
weaver/wm/model.py:503
↓ 1 callersFunction_joint_velocity_to_delta
(joint_velocity: np.ndarray)
weaver/robot/panda.py:37
↓ 1 callersFunction_load_and_split
Load video, split top/bottom and by view. Returns (real_views, pred_views) per key.
weaver/utils/tools.py:257
↓ 1 callersMethod_load_annotation
Load trajectory annotation file
weaver/datasets/droid.py:89
↓ 1 callersMethod_load_i3d_model
()
weaver/utils/metrics.py:78
↓ 1 callersMethod_load_i3d_model
Download and cache the I3D TorchScript model.
weaver/utils/model_metrics.py:291
↓ 1 callersMethod_pad_tokens
Pad sparse image tokens back to full size with [MASK] tokens. Args: x_sparse: (B, T * N_sparse, D) T: Number
weaver/wm/model.py:590
↓ 1 callersFunction_prepare_batch_context
Phase 1 — Encode the real context and query PI for the first action chunk. Encodes the n_history real frames as WM context, queries PI for N acti
weaver/synth_data_gen.py:144
↓ 1 callersFunction_prepare_context
Build context dict, history action window, and memory tokens from real-frame buffers.
weaver/steer_pi_policy.py:145
↓ 1 callersFunction_preprocess_states_actions
Extract video-rate states and actions from a raw DROID annotation dict.
weaver/replay_traj_reward.py:76
↓ 1 callersMethod_preprocess_states_actions
Preprocess full trajectory states and actions from annotation. Called once during __init__ to cache preprocessed data. Note: The ann
weaver/datasets/droid.py:343
↓ 1 callersFunction_resolve_task_text
(args_task, data_texts)
weaver/synth_data_gen.py:85
↓ 1 callersFunction_rollout_cached
Rollout via KV-cache (no reward scoring). Builds the combined (context + future) input tensors and calls generate_latent_rollouts_cached, whi
weaver/steer_pi_policy.py:58
↓ 1 callersFunction_run_imagination_loop
Phase 2 — Run M imagination chunks through WEAVER, interleaved with PI queries. Each chunk: a. Rolls out WEAVER for exec_len video-rate ste
weaver/synth_data_gen.py:196
↓ 1 callersFunction_run_new_chunk
Query PI, imagine all N samples, score, and return the best sample's execution state. Returns: pred_action_chunk: (act_horizon, 8) contro
weaver/steer_pi_policy.py:154
↓ 1 callersFunction_sample_clip_start_indices
Return clip start indices for a single video.
weaver/utils/metrics.py:435
↓ 1 callersFunction_save_debug_videos
Decode all B*N imagined trajectories and save per-segment thumbnail comparison videos.
weaver/synth_data_gen.py:322
↓ 1 callersFunction_save_trial_video
Save side-by-side GT (top) / imagined WM (bottom) video for one trial.
weaver/steer_pi_policy.py:293
↓ 1 callersFunction_save_winning_segment
Phase 4 — Decode, annotate, and save one winning trajectory. Returns the saved video path, or None if the segment was filtered out.
weaver/synth_data_gen.py:350
↓ 1 callersFunctionannotation_dir
(data_root: str, split: str)
datasets/compute_norm_stats.py:18
↓ 1 callersFunctionapply_finetune_config
(cfg_dict: dict)
weaver/finetune.py:84
↓ 1 callersFunctionapply_posttrain_config
(cfg_dict: dict)
weaver/reflow.py:45
↓ 1 callersFunctionbuild_annotation
( anno: dict, output_idx: int, episode_id_orig: str, video_length: int, rgb_skip: int,
datasets/preprocess_droid_ood.py:142
↓ 1 callersFunctionbuild_memory_tokens_from_real
Build memory tokens from t_memory-spaced real observation history.
weaver/steer_pi_policy.py:128
↓ 1 callersFunctionbuild_model
(cfg, device: str)
weaver/generate_views.py:51
↓ 1 callersFunctionbuild_weaver
(cfg)
weaver/finetune.py:157
↓ 1 callersFunctioncalculate_frechet_distance
(mu1, sigma1, mu2, sigma2, eps=1e-6)
weaver/utils/metrics.py:110
↓ 1 callersFunctionclean_state_dict
(state_dict)
weaver/generate_views.py:85
↓ 1 callersFunctionclean_state_dict
Strip DDP/compile prefixes (module., _orig_mod.) from checkpoint keys.
weaver/utils/wm_eval.py:50
↓ 1 callersFunctioncollect_episodes
Discover all (task_dir, ep_id) pairs across all input roots.
datasets/preprocess_droid_ood.py:182
↓ 1 callersFunctioncompute_fid_streaming
FID using pytorch-fid, streaming frames as PNGs to temp dirs.
weaver/utils/metrics.py:130
↓ 1 callersFunctioncompute_fvd
Compute FVD between real and generated videos using the StyleGAN-V approach. Instead of extracting one feature vector per video, this uses a
weaver/utils/model_metrics.py:364
↓ 1 callersFunctioncompute_lpips_streaming
LPIPS (VGG) computed streaming, one video at a time.
weaver/utils/metrics.py:187
↓ 1 callersFunctioncompute_norm_stats
( data_root: str, output_path: Optional[str] = None, max_trajectories: Optional[int] = None, r
datasets/compute_norm_stats.py:52
↓ 1 callersFunctioncompute_psnr_streaming
PSNR from TorchMetrics for images normalized to [0, 1].
weaver/utils/metrics.py:229
↓ 1 callersFunctioncompute_ssim_streaming
SSIM from TorchMetrics for images normalized to [0, 1].
weaver/utils/metrics.py:264
↓ 1 callersMethodcompute_temporal_loss
Temporal consistency loss: MSE((f_h - f_{h-1}) - (v_h - v_{h-1})). For v-pred: v_h = x1_h - x0_h (true velocity), f_h = pred_h (predicted vel
weaver/wm/model.py:1926
↓ 1 callersFunctioncompute_v_lambda
( rewards: torch.Tensor, values: torch.Tensor, discount_factor: float, lam: float, )
weaver/wm/model.py:161
↓ 1 callersFunctioncreate_loaders
(cfg, ddp: bool, batch_size: int)
weaver/finetune.py:112
↓ 1 callersFunctioncreate_loaders
(cfg, ddp: bool, batch_size: int)
weaver/reflow.py:453
↓ 1 callersFunctioncreate_synth_dataloader
Build a DataLoader for synthetic trajectory generation. Creates a PrecomputedDroid dataset with video frames enabled (needed for the first PI
weaver/datasets/dataset.py:80
↓ 1 callersMethoddecode
Decodes: (B, C, H/8, W/8) → (B, 3, H, W) (B, T, C, H/8, W/8) → (B, T, 3, H, W)
weaver/wm/encoders.py:127
↓ 1 callersFunctiondict_to_namespace
(d)
weaver/utils/config.py:28
↓ 1 callersFunctiondiscover_cameras
Auto-discover camera names from the first available trajectory directory.
weaver/utils/metrics.py:306
↓ 1 callersFunctioneef_pose_to_state
(T_matrix, gripper)
weaver/steer_pi_policy.py:93
↓ 1 callersFunctionenable_activation_checkpointing
(model, master_process: bool)
weaver/finetune.py:190
↓ 1 callersFunctionencode_camera_frames
( encoder: torch.nn.Module, frames: np.ndarray, batch_size: int, device: str, )
datasets/preprocess_droid.py:61
↓ 1 callersFunctionencode_camera_frames
Encode (T, H, W, 3) uint8 frames through SD3. Returns (T, tokens, channels).
datasets/preprocess_droid_ood.py:124
↓ 1 callersMethodencode_obs
(self, obs: dict[str, torch.Tensor])
weaver/wm/model.py:80
↓ 1 callersMethodforward_read
Eval-only future-token pass using cached prefix temporal K/V.
weaver/wm/nets.py:516
↓ 1 callersMethodforward_write
Eval-only full-sequence pass that returns prefix temporal K/V. This is intentionally separate from ``forward`` so training and torch.
weaver/wm/nets.py:472
↓ 1 callersFunctionfreeze_model
(model: torch.nn.Module)
weaver/reflow.py:102
↓ 1 callersFunctiongather_generation_inputs
(traj_info, cfg, img_keys, start_idx: int, use_real_history: bool, device: str)
weaver/generate_views.py:139
↓ 1 callersFunctiongenerate_and_save
(model, cfg, img_keys, args, device: str)
weaver/generate_views.py:222
↓ 1 callersMethodgenerate_latent_rollouts_variable_horizon
Generate rollouts for a variable number of future frames (no padding). Args: context: Encoded context dict with keys in self._img
weaver/wm/model.py:1326
↓ 1 callersFunctiongenerate_student_rollout_from_noise
( student_wm: WEAVER, x1_context: dict[str, torch.Tensor], x0: dict[str, torch.Tensor], action
weaver/reflow.py:209
↓ 1 callersFunctiongenerate_teacher_rollout_with_noise
( teacher_model: WEAVER, x1: dict[str, torch.Tensor], actions: torch.Tensor, memory=None,
weaver/reflow.py:128
↓ 1 callersMethodgenerate_videos
( self, x1: Dict[str, torch.Tensor], actions: torch.Tensor, instructions: Dict
weaver/wm/model.py:1578
↓ 1 callersFunctiongenerate_videos_full_with_rewards
Autoregressively predict future frames and return per-frame reward scores. The trajectory is divided into chunks of `bootstrap` frames. Each chun
weaver/replay_traj_reward.py:214
↓ 1 callersFunctionget_memory_tokens
(head)
weaver/synth_data_gen.py:218
↓ 1 callersFunctionget_traj_dirs
Get sorted list of trajectory directories present in both dirs with all cameras.
weaver/utils/metrics.py:344
↓ 1 callersFunctionimage_keys_from_cfg
(cfg)
weaver/generate_views.py:45
↓ 1 callersFunctionimage_keys_from_cfg
(cfg)
weaver/utils/wm_eval.py:44
↓ 1 callersFunctionjoint_vel_to_positions
Predict future absolute joint + gripper positions via the dynamics model. Pads the chunk to n_steps if shorter; returns only up to len(chunk) fra
weaver/robot/actions.py:41
↓ 1 callersFunctionload_eval_config
(checkpoint_dir: str, overrides: list[str], config_path: str | None = None)
weaver/generate_views.py:28
↓ 1 callersFunctionload_gt_reward_progress
(annotation: dict)
weaver/replay_traj_reward.py:183
↓ 1 callersFunctionload_single_camera
Load a single camera across all trajectories. Returns lists of per-video tensors, each (T_i, C, H, W) float [0,1].
weaver/utils/metrics.py:366
↓ 1 callersFunctionload_trajectories
(cfg, split: str, img_keys: list[str], max_trajectories: int)
weaver/generate_views.py:96
↓ 1 callersFunctionload_trajectory
Load a full trajectory: latent obs, GT video frames, states, actions, and memory. obs and actions span [0, end_frame] so the generation loop can
weaver/replay_traj_reward.py:102
↓ 1 callersFunctionmain
()
weaver/steer_pi_policy.py:351
↓ 1 callersFunctionmain
()
weaver/finetune.py:234
↓ 1 callersFunctionmain
()
weaver/pretrain.py:25
↓ 1 callersFunctionmain
()
weaver/replay_traj_reward.py:320
↓ 1 callersFunctionmain
()
weaver/reflow.py:541
↓ 1 callersFunctionmain
()
weaver/generate_views.py:335
↓ 1 callersFunctionmain
()
weaver/synth_data_gen.py:487
↓ 1 callersFunctionmain
()
weaver/utils/metrics.py:498
↓ 1 callersFunctionmain
()
datasets/preprocess_droid.py:272
↓ 1 callersFunctionmain
()
datasets/compute_norm_stats.py:102
↓ 1 callersFunctionmain
()
datasets/preprocess_droid_ood.py:198
↓ 1 callersFunctionmerge_tensors
Convert numpy arrays to torch tensors and move to device.
weaver/utils/tools.py:198
↓ 1 callersFunctionnamespace_to_dict
(obj)
weaver/utils/tools.py:104
← previousnext →101–200 of 311, ranked by callers