MCPcopy Create free account

hub / github.com/MIKUZ12/DreamZero-Libero / functions

Functions1,297 in github.com/MIKUZ12/DreamZero-Libero

↓ 3 callersFunctionget_frames_by_timestamps
Get frames from a video at specified timestamps. Args: video_path (str): Path to the video file. timestamps (list[int] | np.ndarr
groot/vla/common/utils/misc/video_utils.py:238
↓ 3 callersMethodget_key_meta
Get the metadata for a key in the LeRobot modality metadata. Args: key (str): The key to get the metadata for. Returns:
groot/vla/data/schema/lerobot.py:146
↓ 3 callersMethodget_modality_metadata
(self, key: str)
groot/vla/data/transform/concat.py:198
↓ 3 callersFunctionget_module_device
Returns: first model parameter's device
groot/vla/common/utils/misc/torch_utils.py:403
↓ 3 callersMethodget_parquet_path
Get the parquet path for a trajectory.
groot/vla/data/dataset/lerobot.py:1333
↓ 3 callersMethodget_state
(self, idx)
scripts/open_loop_yam.py:111
↓ 3 callersMethodget_step_data
Get the RAW data for a single step in a trajectory. No transforms are applied. Args: trajectory_id (int): The name of the traject
groot/vla/data/dataset/lerobot.py:1294
↓ 3 callersMethodinverse
(self, x: torch.Tensor)
groot/vla/data/transform/state_action.py:188
↓ 3 callersFunctionis_hydra_initialized
()
groot/vla/common/utils/io/config_utils.py:25
↓ 3 callersMethodis_rotation_key
(self, key: str)
groot/vla/data/transform/concat.py:246
↓ 3 callersMethodkeep
(self)
groot/vla/model/dreamzero/modules/vram_management.py:30
↓ 3 callersMethodmodel_dump
(self, *args, **kwargs)
groot/vla/data/transform/state_action.py:514
↓ 3 callersMethodprecompute_freqs_cis
(self, dim: int, end: int = 1024, theta: float = 10000.0)
groot/vla/model/dreamzero/modules/wan_video_dit.py:165
↓ 3 callersMethodprecompute_freqs_cis
(self, dim: int, end: int = 1024, theta: float = 10000.0)
groot/vla/model/dreamzero/modules/wan_video_dit.py:215
↓ 3 callersMethodprint_trainable_params
Print trainable parameters of the diffusion model.
groot/vla/model/dreamzero/action_head/wan_flow_matching_action_tf.py:361
↓ 3 callersMethodreset
(self, reset_info: Dict)
eval_utils/policy_client.py:79
↓ 3 callersMethodreset
(self)
eval_utils/run_sim_eval.py:63
↓ 3 callersMethodreset
(self, reset_info: dict | None = None)
eval_utils/run_libero_eval.py:63
↓ 3 callersMethodsample
(self, imgs, deterministic=False)
groot/vla/model/dreamzero/modules/wan_video_vae.py:1032
↓ 3 callersMethodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the sample with the multistep UniPC.
groot/vla/model/dreamzero/modules/flow_unipc_multistep_scheduler.py:534
↓ 3 callersFunctionwrite_json
(path: Path, payload: dict)
eval_utils/diagnose_libero_fit.py:721
↓ 2 callersMethod__init__
(self, entry)
groot/vla/model/dreamzero/modules/wan_video_camera_controller.py:80
↓ 2 callersMethod_accumulate_video
(self, key: str, value)
eval_utils/run_libero_server.py:93
↓ 2 callersMethod_apply_funcs
(x: torch.Tensor, funcs: list)
groot/vla/data/transform/state_action.py:65
↓ 2 callersMethod_blockwise_causal_flash_attn
Implement blockwise causal attention using flash_attention. Matches the pattern from _prepare_blockwise_causal_attn_mask:
groot/vla/model/dreamzero/modules/wan_video_dit_action_casual_chunk.py:307
↓ 2 callersMethod_broadcast_payload
(self, payload: dict)
eval_utils/run_libero_server.py:296
↓ 2 callersMethod_broadcast_signal
(self, signal: int)
eval_utils/run_libero_server.py:290
↓ 2 callersMethod_calculate_relative_stats_for_key_per_horizon
Calculate relative action statistics for each delta index (horizon step) separately. Unlike `_calculate_relative_stats_for_key` which
groot/vla/data/dataset/lerobot.py:727
↓ 2 callersMethod_convert_observation
(self, obs: dict)
eval_utils/run_libero_server.py:147
↓ 2 callersMethod_create_freqs
( self, grid_size: torch.Tensor, start_frame: int, )
groot/vla/model/dreamzero/modules/wan_video_dit_action_casual_chunk.py:2151
↓ 2 callersMethod_decode_video_pred
(self, video_pred: torch.Tensor)
eval_utils/run_libero_server.py:207
↓ 2 callersFunction_draw_value
(value: float, color: tuple[int, int, int], band_top: int, band_bottom: int)
eval_utils/visualize_libero_teacher_forced_trace.py:74
↓ 2 callersMethod_ensure_session
(self, obs: dict)
eval_utils/run_libero_server.py:138
↓ 2 callersMethod_ensure_vae_on_device
Lazily move the VAE to the correct device/dtype on first use.
groot/vla/model/dreamzero/action_head/wan_flow_matching_action_tf.py:569
↓ 2 callersFunction_expands
repeat vars like kernel and stride to match dim
groot/vla/common/utils/data_structure/shape_utils.py:36
↓ 2 callersFunction_extract_frames_ffmpeg
Extract specific frames using ffmpeg.
groot/vla/common/utils/misc/video_utils.py:71
↓ 2 callersMethod_extract_observation
(self, obs_dict, *, save_to_disk=False)
eval_utils/run_sim_eval.py:114
↓ 2 callersMethod_forward_with_video
(self, obs: dict)
eval_utils/run_libero_server.py:173
↓ 2 callersFunction_get_batch_size
(x)
groot/vla/common/utils/misc/array_tensor_utils.py:199
↓ 2 callersMethod_get_caches
( self, kv_caches_input: list[KVCacheType], )
groot/vla/model/dreamzero/action_head/wan_flow_matching_action_tf.py:812
↓ 2 callersFunction_get_device
(x)
groot/vla/common/utils/misc/torch_utils.py:161
↓ 2 callersMethod_get_interpolation
Get the interpolation mode for the given backend. Args: interpolation (str): The interpolation mode. backend
groot/vla/data/transform/video.py:210
↓ 2 callersFunction_load_checkpoint_subset
(model, state_dict: dict[str, torch.Tensor])
groot/vla/experiment/base.py:91
↓ 2 callersMethod_load_trajectory_data
Load trajectory data from parquet file. Args: traj_id: The trajectory ID to load. Returns:
groot/vla/data/dataset/lerobot.py:952
↓ 2 callersFunction_make_obs_from_video
Build an observation dict from real video frames. For 1 frame: each image key is (H, W, 3). For 4 frames: each image key is (4, H, W, 3).
test_client_AR.py:104
↓ 2 callersMethod_reset_action_head_state
(self)
eval_utils/run_libero_server.py:58
↓ 2 callersMethod_reset_local_buffers
(self)
eval_utils/run_libero_server.py:69
↓ 2 callersMethod_reset_state
Internal method to reset policy state. Args: save_video: Whether to save accumulated video before reset.
socket_test_optimized_AR.py:345
↓ 2 callersMethod_threshold_sample
"Dynamic thresholding: At each sampling step we set s to a certain percentile absolute pixel value in xt0 (the prediction of x_0 at t
groot/vla/model/dreamzero/modules/flow_unipc_multistep_scheduler.py:191
↓ 2 callersMethod_validate_interpolation
(cls, interpolation: str)
groot/vla/data/transform/video.py:206
↓ 2 callersMethod_worker_loop
Worker loop for non-rank-0 processes to participate in distributed inference.
socket_test_optimized_AR.py:515
↓ 2 callersMethodadd_frame
This function only adds the frame to the episode_buffer. Apart from images — which are written in a temporary directory — nothing is
scripts/data/convert_agibot.py:558
↓ 2 callersMethodadd_lora_to_model
(self, model, lora_rank=4, lora_alpha=4, lora_target_modules="q,k,v,o,ffn.0,ffn.2", init_lora_weights="kaiming
groot/vla/model/dreamzero/action_head/wan_flow_matching_action_tf.py:605
↓ 2 callersMethodadd_noise
(self, original_samples, noise, timestep)
groot/vla/model/dreamzero/modules/flow_match_scheduler.py:73
↓ 2 callersFunctionany_get_shape
(x)
groot/vla/common/utils/misc/array_tensor_utils.py:248
↓ 2 callersMethodapply
(self, data: dict)
groot/vla/model/dreamzero/transform/dreamzero_cotrain.py:654
↓ 2 callersMethodapply_single
(self, data: dict)
groot/vla/model/dreamzero/transform/dreamzero_cotrain.py:543
↓ 2 callersMethodbuild_1d_mask
(self, length, left_bound, right_bound, border_width, device)
groot/vla/model/dreamzero/modules/wan_video_vae.py:1064
↓ 2 callersMethodbuild_mask
(self, data, is_bound, border_width)
groot/vla/model/dreamzero/modules/wan_video_vae.py:1074
↓ 2 callersMethodcache_next_shard
Cache the next shard in a background thread.
groot/vla/data/dataset/lerobot_sharded.py:1550
↓ 2 callersFunctioncausal_rope_action_apply
(x, freqs, freqs_action, freqs_state, action_register_length, num_action_per_block, num_state_per_block, actio
groot/vla/model/dreamzero/modules/wan_video_dit_action_casual_chunk.py:93
↓ 2 callersFunctioncollate
(features: List[dict], tokenizer: AutoTokenizer, num_views=3, embodiment_tag_mapping=None)
groot/vla/model/dreamzero/transform/dreamzero_cotrain.py:86
↓ 2 callersMethodcompute_overall_statistics
Computes overall statistics from per-task statistics using dataset sample weights. Args: per_task_stats: List of per-tas
groot/vla/data/dataset/lerobot.py:2258
↓ 2 callersFunctioncompute_trace_row
(step_index: int, pred_raw: np.ndarray, pred_eval: np.ndarray, gt_chunk: np.ndarray)
eval_utils/diagnose_libero_fit.py:367
↓ 2 callersFunctioncreate_seeded_dataloader
(dataset, batch_size, seed)
scripts/data/convert_agibot.py:340
↓ 2 callersFunctioncreate_tasks_jsonl
Create tasks.jsonl file with unique task names and action texts.
scripts/data/convert_agibot.py:921
↓ 2 callersFunctiondetect_dataset_format
Detect whether the dataset follows old or new format structure
scripts/data/convert_agibot.py:584
↓ 2 callersMethodencode_image
(self, image, num_frames, height, width)
groot/vla/model/dreamzero/action_head/wan_flow_matching_action_tf.py:582
↓ 2 callersMethodencode_prompt
(self, input_ids, attention_mask)
groot/vla/model/dreamzero/action_head/wan_flow_matching_action_tf.py:561
↓ 2 callersFunctionencode_video
(frames: np.ndarray, output_path: Path, fps: int)
scripts/data/convert_libero.py:95
↓ 2 callersFunctionensure_libero_imports
(libero_root: Path)
eval_utils/run_libero_eval.py:194
↓ 2 callersFunctionfast_map_structure
Faster map_structure implementation which skips some error checking.
groot/vla/common/utils/data_structure/tree_utils.py:82
↓ 2 callersFunctionformat_gripper_label
(value: float)
eval_utils/visualize_libero_teacher_forced_trace.py:40
↓ 2 callersMethodforward
imgs: [B, 3, H, W] of torch.float32. - mean: [0.48145466, 0.4578275, 0.40821073] - std: [0.26862954, 0.2613025
groot/vla/model/dreamzero/modules/wan_video_image_encoder.py:575
↓ 2 callersMethodforward
(self, x: torch.Tensor, first_chunk=False)
groot/vla/model/dreamzero/modules/wan_video_vae.py:413
↓ 2 callersFunctionfp16_clamp
(x)
groot/vla/model/dreamzero/modules/wan_video_text_encoder.py:8
↓ 2 callersMethodgenerate_noise
(self, shape, seed=None, device="cpu", dtype=torch.float16)
groot/vla/model/dreamzero/action_head/wan_flow_matching_action_tf.py:807
↓ 2 callersMethodgenerate_shards_sample_schedule
(self)
groot/vla/data/dataset/lerobot_sharded.py:1419
↓ 2 callersMethodget_action
( self, backbone_output: BatchFeature, action_input: BatchFeature, num_action_
groot/vla/model/n1_5/action_head/base_action_head.py:15
↓ 2 callersMethodget_action
( self, inputs: dict, )
groot/vla/model/dreamzero/base_vla.py:151
↓ 2 callersMethodget_dream_actions
Get DREAM action data for a trajectory by step indices. Args: trajectory_id (int): The ID of the trajectory. key (str
groot/vla/data/dataset/lerobot.py:1608
↓ 2 callersMethodget_episode_chunk
Get the chunk index for an episode index.
groot/vla/data/dataset/lerobot.py:1366
↓ 2 callersMethodget_initial_actions
Load initial actions from the dataset if available. Returns: list: List containing initial actions if the file exists, empty list
groot/vla/data/dataset/lerobot.py:1801
↓ 2 callersMethodget_language
Get the language annotation data for a trajectory by step indices. Args: trajectory_id (int): The ID of the trajectory.
groot/vla/data/dataset/lerobot.py:1646
↓ 2 callersMethodget_lapa_action
Get LAPA action data for a trajectory by step indices. Args: trajectory_id (int): The ID of the trajectory. key (str)
groot/vla/data/dataset/lerobot.py:1570
↓ 2 callersMethodget_rl_info
Get the reward data for a trajectory by step indices. If the step indices are out of range, pad with first/last step data. Args:
groot/vla/data/dataset/lerobot.py:1728
↓ 2 callersMethodget_state_action_dims
Get the dimension of a state or action key from the dataset metadata.
groot/vla/data/transform/concat.py:208
↓ 2 callersMethodget_state_action_dims_post_transform
This function is used to get the dims of the state/action keys after transform is applied. It is different from the `get_state_action
groot/vla/data/transform/concat.py:215
↓ 2 callersFunctionget_task_instruction
Get task language instruction
scripts/data/convert_agibot.py:902
↓ 2 callersMethodget_transform
(self, mode: Literal["train", "eval"] = "train")
groot/vla/data/transform/video.py:223
↓ 2 callersFunctionglobal_once
Try this to automate the name: https://gist.github.com/techtonik/2151727#gistcomment-2333747
groot/vla/common/utils/misc/misc_utils.py:208
↓ 2 callersFunctionhdf5_is_subset
Check if this HDF5 group is a subset of another HDF5 group.
groot/vla/common/utils/io/hdf5_utils.py:39
↓ 2 callersFunctionhydra_config
()
groot/vla/common/utils/io/config_utils.py:29
↓ 2 callersMethodinfer
(self, obs)
eval_utils/policy_server.py:120
↓ 2 callersMethodinfer
(self, obs: dict)
eval_utils/run_libero_server.py:219
↓ 2 callersMethodinfer
(self, obs: dict, instruction: str)
eval_utils/run_libero_eval.py:112
↓ 2 callersFunctioninit_weights_on_device
(device = torch.device("meta"), include_buffers :bool = False)
groot/vla/model/dreamzero/modules/utils.py:7
↓ 2 callersMethodinject_lora_after_loading
Inject LoRA adapters after pretrained weights have been loaded. This should be called when defer_lora_injection=True.
groot/vla/model/dreamzero/action_head/wan_flow_matching_action_tf.py:378
↓ 2 callersFunctioninsert_before_ext
log.txt -> log.ep50.txt
groot/vla/common/utils/io/file_utils.py:561
↓ 2 callersFunctionis_array_tensor
(obj)
groot/vla/common/utils/misc/array_tensor_utils.py:20
← previousnext →101–200 of 1,297, ranked by callers