MCPcopy Create free account

hub / github.com/allenai/molmoact2 / functions

Functions8,779 in github.com/allenai/molmoact2

↓ 2 callersMethodapply_connector
( self, pooling_fn: nn.Module, projector_fn: nn.Module, image_features: torch.
experiments/olmo/nn/vision_backbone.py:438
↓ 2 callersMethodapply_fsdp2
(self, **kwargs)
experiments/olmo/nn/llm.py:825
↓ 2 callersMethodapply_llama3_scaling_factor
(self, inv_freq: torch.Tensor)
experiments/olmo/nn/llm.py:1145
↓ 2 callersFunctionapply_rotary_pos_emb_vision
( q: torch.Tensor, k: torch.Tensor, cos: torch.Tensor, sin: torch.Tensor )
experiments/lerobot/src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:221
↓ 2 callersMethodas_pt
(self)
experiments/olmo/config.py:124
↓ 2 callersFunctionassert_observation_equal
Helper to assert two observations are equal.
experiments/lerobot/tests/transport/test_transport_utils.py:523
↓ 2 callersFunctionassert_video_frames_integrity
Test that video frames are correctly preserved and frame indices are updated.
experiments/lerobot/tests/datasets/test_aggregate.py:144
↓ 2 callersMethodasync_read
Reads the latest available frame asynchronously. Args: timeout_ms (float): Maximum time in milliseconds to wait for a fr
experiments/lerobot/src/lerobot/cameras/zmq/camera_zmq.py:303
↓ 2 callersFunctionauto_downsample_height_width
(img: np.ndarray, target_size: int = 150, max_size_threshold: int = 300)
experiments/lerobot/src/lerobot/datasets/compute_stats.py:219
↓ 2 callersMethodaxes
(self, path: str, axis_len: float = 0.1, axis_w: int = 6)
experiments/lerobot/src/lerobot/teleoperators/unitree_g1/exo_ik.py:69
↓ 2 callersFunctionbatch_pixels_to_patches
Reshape images of [n_images, h, w, 3] -> [n_images, n_patches, pixels_per_patch]
experiments/olmo/hf_model/image_processing_molmoact2.py:220
↓ 2 callersMethodbroadcast_ping
(self, num_retry: int = 0, raise_on_error: bool = False)
experiments/lerobot/src/lerobot/motors/feetech/feetech.py:405
↓ 2 callersMethodbroadcast_ping
(self, num_retry: int = 0, raise_on_error: bool = False)
experiments/lerobot/src/lerobot/motors/dynamixel/dynamixel.py:249
↓ 2 callersMethodbuild
(self)
experiments/olmo/eval/model_evaluator.py:223
↓ 2 callersMethodbuild
(self)
experiments/olmo/train/optim.py:521
↓ 2 callersMethodbuild
(self, optimizer: Optimizer, num_training_steps: int)
experiments/lerobot/src/lerobot/optim/schedulers.py:64
↓ 2 callersFunctionbuild_action_space
Instantiate a registered action space by name.
experiments/lerobot/src/lerobot/policies/xvla/action_hub.py:44
↓ 2 callersMethodbuild_broadcast_ping_stub
(self, ids: list[int] | None = None, num_invalid_try: int = 0)
experiments/lerobot/tests/mocks/mock_feetech.py:308
↓ 2 callersMethodbuild_cache
( self, *, seq_len: int, device: torch.device, dtype: torch.dtype,
experiments/olmo/hf_model/modeling_molmoact2.py:171
↓ 2 callersMethodbuild_connector
(self, llm_config, device)
experiments/olmo/nn/vision_backbone.py:270
↓ 2 callersMethodbuild_dataset_evaluator
( self, model_config: MolmoConfig, mesh: DeviceMesh, device,
experiments/olmo/eval/loss_evaluator.py:297
↓ 2 callersMethodbuild_dataset_evaluator
( self, model_config, mesh, default_save_dir, device, )
experiments/olmo/eval/inf_evaluator.py:502
↓ 2 callersFunctionbuild_discrete_depth_string
( token_ids: Optional[Sequence[int]], *, num_depth_tokens: int = DEFAULT_NUM_DEPTH_TOKENS, )
experiments/olmo/extra_tokens.py:121
↓ 2 callersFunctionbuild_discrete_state_string
( state: Optional[np.ndarray], num_state_tokens: int = DEFAULT_NUM_STATE_TOKENS, )
experiments/olmo/extra_tokens.py:285
↓ 2 callersMethodbuild_eval_dataloader
( self, model_config: MolmoConfig, mesh: DeviceMesh, batch_size: int,
experiments/olmo/data/data_loader.py:172
↓ 2 callersMethodbuild_evaluator
( self, model_config, device, default_save_dir,
experiments/olmo/eval/model_evaluator.py:125
↓ 2 callersFunctionbuild_html_table
(data: List[Dict[str, Any]], col_widths=None, fixed_width=False, style=None)
experiments/olmo/html_utils.py:473
↓ 2 callersMethodbuild_image_preprocessor
(self, tokenizer, image_preprocessor, image_padding_mask, legacy_image_mask=False)
experiments/olmo/preprocessing/multicrop_preprocessor.py:49
↓ 2 callersFunctionbuild_indexed_token_id_to_bin_map
( tokenizer: Any, added_tokens: Iterable[str], family: IndexedExtraTokenFamily, *, require
experiments/olmo/extra_tokens.py:208
↓ 2 callersFunctionbuild_lerobot_dataset
( dataset_name: str, split: str, *, n_obs_steps: Optional[int] = None, action_horizon: Opt
experiments/olmo/data/lerobot_wrapper.py:2849
↓ 2 callersMethodbuild_ping_stub
(self, scs_id: int, num_invalid_try: int = 0, error: int = 0)
experiments/lerobot/tests/mocks/mock_feetech.py:320
↓ 2 callersFunctionbuild_prompt_fields
( *, task: str, style: str = "robot_action", normalized_states: Any = None, discrete_state
experiments/lerobot/src/lerobot/policies/molmoact2/prompt_utils.py:82
↓ 2 callersFunctionbuild_resized_image
( image: np.ndarray, base_image_input_size: list[int], resample: PILImageResampling, image_mea
experiments/olmo/hf_model/image_processing_molmoact2.py:108
↓ 2 callersFunctionbuild_robot_prompt_fields
( task: str, *, style: str, discrete_state_string: str = "", setup_type: str = "", con
experiments/olmo/extra_tokens.py:325
↓ 2 callersMethodbuild_sequential_sync_read_stub
( self, address: int, length: int, ids_values: dict[int, list[int]] | None = None )
experiments/lerobot/tests/mocks/mock_feetech.py:396
↓ 2 callersMethodbuild_single_image_coordinates
Build coordinates for a single image
experiments/olmo/preprocessing/point_formatter.py:415
↓ 2 callersMethodbuild_sync_write_stub
( self, address: int, length: int, ids_values: dict[int, int], num_invalid_try: int = 0 )
experiments/lerobot/tests/mocks/mock_feetech.py:418
↓ 2 callersMethodbuild_text_preprocessor
(self, tokenizer, max_seq_len)
experiments/olmo/preprocessing/text_preprocessor.py:56
↓ 2 callersFunctionbuild_tokenizer
( tokenizer_type, has_extra_token=True, tokenizer_dir="gs://mm-olmo/tokenizer", pad_tokenizer_to=N
experiments/olmo/tokenizer.py:161
↓ 2 callersMethodbuild_train_dataloader
( self, model_config: MolmoConfig, mesh: DeviceMesh, global_batch_size: int,
experiments/olmo/data/data_loader.py:425
↓ 2 callersFunctioncalibrate
(cfg: CalibrateConfig)
experiments/lerobot/src/lerobot/scripts/lerobot_calibrate.py:80
↓ 2 callersMethodcalibrate
(self)
experiments/lerobot/src/lerobot/teleoperators/unitree_g1/exo_serial.py:121
↓ 2 callersMethodcalibrate_center
(self, raw16: list[int] | None, side: str)
experiments/lerobot/src/lerobot/teleoperators/unitree_g1/unitree_g1.py:104
↓ 2 callersFunctioncast_stats_to_numpy
Recursively cast numerical values in a stats dictionary to numpy arrays. Args: stats (dict): The statistics dictionary. Returns:
experiments/lerobot/src/lerobot/datasets/utils.py:304
↓ 2 callersFunctioncfg_to_group
Return a group name for logging. Optionally returns group name as list.
experiments/lerobot/src/lerobot/rl/wandb_utils.py:29
↓ 2 callersFunctioncheck_version_compatibility
Check for version compatibility between a dataset and the current codebase. Args: repo_id (str): The repository ID for logging purposes.
experiments/lerobot/src/lerobot/datasets/utils.py:452
↓ 2 callersFunctioncleanup_memory
Clean up GPU/MPS memory to prevent OOM errors between tests.
experiments/lerobot/tests/policies/groot/test_groot_vs_original.py:69
↓ 2 callersFunctioncleanup_memory
Clean up GPU/MPS memory to prevent OOM errors between tests.
experiments/lerobot/tests/policies/groot/test_groot_lerobot.py:52
↓ 2 callersMethodclearParam
(self)
experiments/lerobot/src/lerobot/motors/motors_bus.py:264
↓ 2 callersFunctionclone_state
(state: dict)
experiments/lerobot/tests/utils/test_replay_buffer.py:38
↓ 2 callersMethodclosePort
(self)
experiments/lerobot/src/lerobot/motors/motors_bus.py:195
↓ 2 callersMethodclosePort
(self)
experiments/lerobot/tests/mocks/mock_motors_bus.py:96
↓ 2 callersFunctionclose_service_stub
(channel, server)
experiments/lerobot/tests/rl/test_actor.py:62
↓ 2 callersMethodcompute
(self)
experiments/olmo/eval/loss_evaluator.py:53
↓ 2 callersFunctioncompute_cosine_sims
Compute cosine similarities between pooled patches. Args: x (torch.Tensor): Input tensor of shape (B*T, N, D). pooled_patches_idx
experiments/olmo/nn/temporal_image_vit.py:701
↓ 2 callersFunctioncompute_forward_kinematics_joints_to_ee
( joints: dict[str, Any], kinematics: RobotKinematics, motor_names: list[str] )
experiments/lerobot/src/lerobot/robots/so_follower/robot_kinematic_processor.py:404
↓ 2 callersMethodcompute_g1_joints_from_exo
Performs FK on exoskeleton to get end-effector poses in world frame, after which it solves IK on G1 to return joint angles matching t
experiments/lerobot/src/lerobot/teleoperators/unitree_g1/exo_ik.py:309
↓ 2 callersMethodcompute_loss
(self, pred: torch.Tensor, target: torch.Tensor)
experiments/lerobot/src/lerobot/policies/xvla/action_hub.py:77
↓ 2 callersFunctioncompute_relative_change
(target: float, prediction: float)
experiments/olmo/eval/vqa.py:235
↓ 2 callersFunctionconcat_data_files
(paths_to_cat, new_root, chunk_idx, file_idx, image_keys)
experiments/lerobot/src/lerobot/datasets/v30/convert_dataset_v21_to_v30.py:181
↓ 2 callersFunctionconcatenate_batch_transitions
Concatenates two BatchTransition objects into one. This function merges the right BatchTransition into the left one by concatenating all
experiments/lerobot/src/lerobot/rl/buffer.py:761
↓ 2 callersMethodconnect
(self, calibrate: bool = True)
experiments/lerobot/src/lerobot/robots/unitree_g1/unitree_g1.py:291
↓ 2 callersMethodconnect
(self)
experiments/lerobot/src/lerobot/teleoperators/phone/teleop_phone.py:387
↓ 2 callersMethodconnect
(self)
experiments/lerobot/src/lerobot/teleoperators/keyboard/teleop_keyboard.py:90
↓ 2 callersMethodconstrain_to_multiple_of
(self, x: float, min_val: int = 0, max_val: int | None = None)
experiments/scripts/generate_depth_annotation.py:476
↓ 2 callersMethodcontrol_loop
Combined function for executing actions and streaming observations
experiments/lerobot/src/lerobot/async_inference/robot_client.py:459
↓ 2 callersFunctionconvert_features_to_policy_features
Converts a feature dictionary from the old config format to the new `PolicyFeature` format. Args: features_dict: The feature diction
experiments/lerobot/src/lerobot/processor/migrate_policy_normalization.py:365
↓ 2 callersFunctionconvert_legacy_config
Converts old monolithic model configs into the new format This also include some old backwards-compatibility fixes that are no longer needed
experiments/olmo/nn/legacy_config.py:64
↓ 2 callersFunctionconvert_lerobot_to_original_format
Convert LeRobot batch format to original Groot format. The original Groot expects observations in this format: { "video.<camera_name>
experiments/lerobot/tests/policies/groot/test_groot_vs_original.py:244
↓ 2 callersFunctionconvert_molmoact2
( state_dict: dict[str, Any], config: MolmoAct2Config, weight_tying: bool, )
experiments/olmo/hf_model/convert_molmoact2_to_hf.py:505
↓ 2 callersFunctioncreate_branch
Create a branch on an existing Hugging Face repo. Deletes the branch if it already exists before creating it. Args: repo_id (str): T
experiments/lerobot/src/lerobot/datasets/utils.py:915
↓ 2 callersMethodcreate_chunks
(self, lst, n)
experiments/lerobot/examples/port_datasets/slurm_upload.py:103
↓ 2 callersFunctioncreate_default_train_batch
( batch_size: int = 8, state_dim: int = 10, action_dim: int = 10 )
experiments/lerobot/tests/policies/test_sac_policy.py:104
↓ 2 callersFunctioncreate_dummy_action
(batch_size: int, action_dim: int = 10)
experiments/lerobot/tests/policies/test_sac_policy.py:100
↓ 2 callersFunctioncreate_dummy_data
Create dummy data for testing both implementations.
experiments/lerobot/tests/policies/groot/test_groot_vs_original.py:215
↓ 2 callersFunctioncreate_dummy_data
Create a dummy data batch for testing.
experiments/lerobot/tests/policies/groot/test_groot_lerobot.py:119
↓ 2 callersFunctioncreate_dummy_state
(batch_size: int, state_dim: int = 10)
experiments/lerobot/tests/policies/test_sac_policy.py:87
↓ 2 callersFunctioncreate_dummy_with_visual_input
(batch_size: int, state_dim: int = 10)
experiments/lerobot/tests/policies/test_sac_policy.py:93
↓ 2 callersFunctioncreate_learner_service_stub
()
experiments/lerobot/tests/rl/test_actor.py:29
↓ 2 callersFunctioncreate_lerobot_dataset_v30
( episodes, output_dir, repo_id, fps, robot_type, skip_initial_frames=0, action_mo
examples/yam/lerobot_convert.py:376
↓ 2 callersFunctioncreate_observation_batch_with_visual_input
(batch_size: int = 8, state_dim: int = 10)
experiments/lerobot/tests/policies/test_sac_policy.py:134
↓ 2 callersFunctioncreate_random_image
()
experiments/lerobot/tests/utils/test_replay_buffer.py:59
↓ 2 callersFunctioncycle
Create a dataloader-safe cyclical iterator. This is an equivalent of `itertools.cycle` but is safe for use with PyTorch DataLoaders with mult
experiments/lerobot/src/lerobot/datasets/utils.py:894
↓ 2 callersFunctiondecode_video_frames
Decodes video frames using the specified backend. Args: video_path (Path): Path to the video file. timestamps (list[float]):
experiments/lerobot/src/lerobot/datasets/video_utils.py:127
↓ 2 callersFunctiondecode_video_frames_torchcodec
Loads frames associated with the requested timestamps of a video using torchcodec. Args: video_path: Path to the video file. time
experiments/lerobot/src/lerobot/datasets/video_utils.py:306
↓ 2 callersFunctiondefault_remote_input
Return a zeroed-out remote input dict (axes + buttons).
experiments/lerobot/src/lerobot/robots/unitree_g1/g1_utils.py:31
↓ 2 callersMethoddenoise_step
Apply one denoising step of the noise `x_t` at a given timestep.
experiments/lerobot/src/lerobot/policies/smolvla/modeling_smolvla.py:870
↓ 2 callersMethoddenoise_step
Apply one denoising step of the noise `x_t` at a given timestep.
experiments/lerobot/src/lerobot/policies/pi05/modeling_pi05.py:865
↓ 2 callersMethoddenorm
(self, images: Tensor)
experiments/scripts/generate_depth_annotation.py:646
↓ 2 callersFunctiondeserialize_numpy_rng_state
Restores the rng state for `numpy` from a dictionary produced by `serialize_numpy_rng_state()`.
experiments/lerobot/src/lerobot/utils/random_utils.py:66
↓ 2 callersFunctiondeserialize_python_rng_state
Restores the rng state for `random` from a dictionary produced by `serialize_python_rng_state()`.
experiments/lerobot/src/lerobot/utils/random_utils.py:42
↓ 2 callersFunctiondeserialize_rng_state
Restores the rng state for `random`, `numpy`, and `torch` from a dictionary produced by `serialize_rng_state()`.
experiments/lerobot/src/lerobot/utils/random_utils.py:116
↓ 2 callersFunctiondeserialize_torch_rng_state
Restores the rng state for `torch` from a dictionary produced by `serialize_torch_rng_state()`.
experiments/lerobot/src/lerobot/utils/random_utils.py:91
↓ 2 callersMethoddetokenize_actions
Detokenizes action tokens back to continuous actions. This method converts predicted action tokens from the model back to continuous
experiments/lerobot/src/lerobot/policies/pi0_fast/modeling_pi0_fast.py:1176
↓ 2 callersMethoddisable_torque
Disable torque on selected motors. Disabling Torque allows to write to the motors' permanent memory area (EPROM/EEPROM). Args:
experiments/lerobot/src/lerobot/motors/motors_bus.py:634
↓ 2 callersMethoddisconnect
Disconnect from the teleoperator and perform any necessary cleanup.
experiments/lerobot/src/lerobot/teleoperators/teleoperator.py:206
↓ 2 callersMethoddisconnect
(self)
experiments/lerobot/src/lerobot/teleoperators/keyboard/teleop_keyboard.py:140
↓ 2 callersMethoddisconnect
Disconnect from the camera and release resources.
experiments/lerobot/src/lerobot/cameras/camera.py:182
↓ 2 callersMethoddisconnect
Disconnects from the camera and cleans up resources. Stops the background read thread (if running) and releases the OpenCV V
experiments/lerobot/src/lerobot/cameras/opencv/camera_opencv.py:567
↓ 2 callersFunctiondist
(a, b)
experiments/lerobot/src/lerobot/motors/calibration_gui.py:45
← previousnext →1,401–1,500 of 8,779, ranked by callers