MCPcopy Create free account

hub / github.com/allenai/molmoact2 / functions

Functions8,779 in github.com/allenai/molmoact2

↓ 2 callersFunctionget_rng_state
Get the random state for `random`, `numpy`, and `torch`.
experiments/lerobot/src/lerobot/utils/random_utils.py:142
↓ 2 callersMethodget_robot_state
Robot-only observations (joint positions/velocities, EE pose, gripper). Same fields as ``get_obs()`` minus the ``*_rgb`` camera images. Use t
examples/yam/gello_min/env.py:91
↓ 2 callersMethodget_rope_index
Calculate 3D RoPE (Rotary Position Embedding) indices for vision and text tokens. This method computes position embeddings that acco
experiments/lerobot/src/lerobot/policies/wall_x/modeling_wall_x.py:513
↓ 2 callersFunctionget_safe_version
Return the specified version if available on repo, or the latest compatible one. If the exact version is not found, it looks for the latest versi
experiments/lerobot/src/lerobot/datasets/utils.py:506
↓ 2 callersMethodget_scheduler_preset
(self)
experiments/lerobot/src/lerobot/configs/policies.py:123
↓ 2 callersMethodget_spec
(cls, src: TokenizedVisionData)
experiments/olmo/preprocessing/preprocessor_utils.py:70
↓ 2 callersMethodget_stats
Get statistics for all timers. Returns a dictionary with mean, min, max, and sum for each timer.
experiments/olmo/train/timer.py:101
↓ 2 callersMethodget_task
Extracts the task description(s) from the transition's complementary data. Args: transition: The environment transition.
experiments/lerobot/src/lerobot/processor/tokenizer_processor.py:118
↓ 2 callersMethodget_teleop_events
Get extra control events from the teleoperator. Returns: A dictionary containing control events such as: - `
experiments/lerobot/src/lerobot/processor/hil_processor.py:59
↓ 2 callersMethodget_user_prompt
Build a list of strings of what a user might type in to the model for the given example, and its responses, by applying a prompt template to t
experiments/olmo/models/molmo/data_formatter.py:1759
↓ 2 callersFunctionget_video_info
(video_path: Path | str)
experiments/lerobot/src/lerobot/datasets/video_utils.py:976
↓ 2 callersMethodget_vit_parameters
(self)
experiments/olmo/models/model.py:153
↓ 2 callersFunctiongrpc_channel_options
( max_receive_message_length: int = MAX_MESSAGE_SIZE, max_send_message_length: int = MAX_MESSAGE_SIZE,
experiments/lerobot/src/lerobot/transport/utils.py:153
↓ 2 callersMethodgumbel_with_max
Sample `Gumbel(phi)` conditioned on the maximum value being equal to `T`. `phi` should have shape `(batch_size, num_classes)` and `T
experiments/olmo/nn/beam_search.py:533
↓ 2 callersFunctionimages_equal
(img1, img2)
experiments/lerobot/tests/datasets/test_aggregate.py:423
↓ 2 callersFunctioninfer_max_action_dim_from_lerobot_metadata
( robot_mixture: Sequence[KwargsMixture], *, tag_metadata_by_tag: Dict[str, Dict[str, object]], )
experiments/launch_scripts/lerobot_utils/train_plan.py:115
↓ 2 callersFunctioninfer_max_action_horizon_from_lerobot_metadata
( robot_mixture: Sequence[KwargsMixture], *, tag_metadata_by_tag: Dict[str, Dict[str, object]], )
experiments/launch_scripts/lerobot_utils/train_plan.py:88
↓ 2 callersMethodinference_eval
(self)
experiments/olmo/train/trainer.py:2209
↓ 2 callersFunctioninit_client
Initialize the right client for the given remote resource. This is helpful to avoid threading issues with boto3.
experiments/olmo/io.py:465
↓ 2 callersMethodinit_state
( self, start_class_log_probabilities: torch.Tensor, batch_size: int, num_classes: int )
experiments/olmo/nn/beam_search.py:94
↓ 2 callersFunctioninstantiate_from_dict
Recursively instantiate objects from a ``_target_``-style config dict.
examples/yam/gello_min/launch_utils.py:17
↓ 2 callersFunctioninstantiate_lerobot_groot
Instantiate LeRobot Groot policy with preprocessor and postprocessor.
experiments/lerobot/tests/policies/groot/test_groot_vs_original.py:99
↓ 2 callersFunctioninstantiate_lerobot_groot
Instantiate LeRobot Groot policy with preprocessor and postprocessor.
experiments/lerobot/tests/policies/groot/test_groot_lerobot.py:82
↓ 2 callersFunctioninstantiate_original_groot
Instantiate original Groot policy from NVIDIA's implementation.
experiments/lerobot/tests/policies/groot/test_groot_vs_original.py:136
↓ 2 callersMethodintegers
(self, low, high=None, size=None, dtype=np.int64, endpoint=False)
experiments/tests/data/test_lerobot_camera_keys_alternative.py:48
↓ 2 callersFunctioninteractions_stream
( shutdown_event: Event, interactions_queue: Queue, timeout: float, # type: ignore )
experiments/lerobot/src/lerobot/rl/actor.py:628
↓ 2 callersFunctioninvalid_delta_timestamps_factory
(valid_delta_timestamps_factory)
experiments/lerobot/tests/datasets/test_delta_timestamps.py:35
↓ 2 callersMethodinverse_kinematics
Compute inverse kinematics using placo solver. Args: current_joint_pos: Current joint positions in degrees (used as init
experiments/lerobot/src/lerobot/model/kinematics.py:79
↓ 2 callersFunctionis_dir
(path: PathOrStr)
experiments/olmo/io.py:312
↓ 2 callersFunctionis_distributed
Check if in a distributed context.
experiments/olmo/dist_util.py:389
↓ 2 callersFunctionis_headless
Detects if the Python script is running in a headless environment (e.g., without a display). This function attempts to import `pynput`, a li
experiments/lerobot/src/lerobot/utils/control_utils.py:40
↓ 2 callersFunctionis_interactive
()
experiments/olmo/util.py:295
↓ 2 callersFunctionis_point_in_tublet
Check if the point (t, x, y) is within the region defined by the boolean mask. Parameters: - point (tuple of floats): (t, x, y) coordina
experiments/olmo/eval/evaluators.py:3269
↓ 2 callersFunctionis_valid_version
Check if a string is a valid PEP 440 version. Args: version (str): The version string to check. Returns: bool: True if the v
experiments/lerobot/src/lerobot/datasets/utils.py:436
↓ 2 callersMethodlanguage_model
(self)
experiments/lerobot/src/lerobot/policies/pi_gemma.py:351
↓ 2 callersMethodlatent_dynamics_and_reward
Predict the next state's latent representation and the reward given a current latent and action. Args: z: (*, latent_dim) tensor
experiments/lerobot/src/lerobot/policies/tdmpc/modeling_tdmpc.py:609
↓ 2 callersFunctionlerobot_dataset_metadata_factory
( info_factory, stats_factory, tasks_factory, episodes_factory, mock_snapshot_download_fac
experiments/lerobot/tests/fixtures/dataset_factories.py:417
↓ 2 callersMethodload
(self)
experiments/olmo/data/academic_datasets.py:164
↓ 2 callersFunctionload_frame_segmentation_masks
Get all binary masks for frame from HF mask_item. Args: mask_item: Item from HuggingFace dataset frame_idx: Frame index
experiments/olmo/eval/object_tracking_utils.py:608
↓ 2 callersFunctionload_image_from_bytes
Load image from bytes to numpy array.
experiments/olmo/data/spatial_datasets.py:40
↓ 2 callersMethodload_metadata
(self)
experiments/lerobot/src/lerobot/datasets/lerobot_dataset.py:163
↓ 2 callersFunctionload_scheduler_state
(scheduler: LRScheduler, save_dir: Path)
experiments/lerobot/src/lerobot/optim/schedulers.py:140
↓ 2 callersFunctionload_training_state
Loads the training step, optimizer state, scheduler state, and rng state. This is used to resume a training run. Args: checkpoin
experiments/lerobot/src/lerobot/utils/train_utils.py:140
↓ 2 callersFunctionload_training_step
(save_dir: Path)
experiments/lerobot/src/lerobot/utils/train_utils.py:52
↓ 2 callersFunctionload_video_torchcodec
( video_path: str, frame_sampler: TimeSampler, clip=None, seek_mode="exact" )
experiments/olmo/data/video_loader.py:400
↓ 2 callersMethodlog_init
(self)
experiments/olmo/train/trainer.py:250
↓ 2 callersMethodloss_eval
(self)
experiments/olmo/train/trainer.py:2255
↓ 2 callersFunctionmake_default_robot_observation_processor
()
experiments/lerobot/src/lerobot/processor/factory.py:49
↓ 2 callersFunctionmake_delta_timestamps
(delta_indices: list[int] | None, fps: int)
experiments/lerobot/examples/tutorial/act/act_training_example.py:15
↓ 2 callersFunctionmake_env_pre_post_processors
Create preprocessor and postprocessor pipelines for environment observations. This function creates processor pipelines that transform raw e
experiments/lerobot/src/lerobot/envs/factory.py:42
↓ 2 callersFunctionmake_policy_obs
(obs, device: torch.device = "cpu")
experiments/lerobot/examples/tutorial/rl/hilserl_example.py:218
↓ 2 callersFunctionmake_processors
Create environment and action processors. Args: env: Robot environment instance. teleop_device: Teleoperator device for intervent
experiments/lerobot/src/lerobot/rl/gym_manipulator.py:356
↓ 2 callersFunctionmake_sarm_pre_post_processors
Create pre-processor and post-processor pipelines for SARM.
experiments/lerobot/src/lerobot/policies/sarm/processor_sarm.py:484
↓ 2 callersMethodmake_static_cache
(self, max_cache_len: int)
experiments/olmo/hf_model/inference.py:249
↓ 2 callersFunctionmake_wall_x_pre_post_processors
Constructs pre-processor and post-processor pipelines for the Wall-X policy. The pre-processing pipeline prepares input data for the model b
experiments/lerobot/src/lerobot/policies/wall_x/processor_wall_x.py:38
↓ 2 callersFunctionmake_xvla_pre_post_processors
Build the LeRobot processor pipelines for XVLA.
experiments/lerobot/src/lerobot/policies/xvla/processor_xvla.py:51
↓ 2 callersMethodmap_bounding_box
(self, box, dims)
experiments/olmo/hf_datasets/android_control.py:246
↓ 2 callersFunctionmap_robot_keys_to_lerobot_features
(robot: Robot)
experiments/lerobot/src/lerobot/async_inference/helpers.py:66
↓ 2 callersFunctionmath_vista_score
( response: str, metadata: dict, openai_api_key: str, use_api: bool = True, )
experiments/olmo/eval/vqa.py:340
↓ 2 callersMethodmax_dictionaries
(*other: Dict[str, 'TensorSpec'])
experiments/olmo/preprocessing/preprocessor_utils.py:92
↓ 2 callersMethodmc_qa_template
lmms-eval uses the MVBench's template, but llava-video uses the different one, so just follow the PerceptionTest's template
experiments/olmo/data/video_datasets.py:946
↓ 2 callersFunctionmock_snapshot_download_factory
This factory allows to patch snapshot_download such that when called, it will create expected files rather than making calls to the hub api.
experiments/lerobot/tests/fixtures/hub.py:35
↓ 2 callersFunctionmodel_llm_token_layout
(model: torch.nn.Module)
experiments/olmo/token_layout.py:82
↓ 2 callersFunctionmove_transition_to_device
(transition: Transition, device: str = "cpu")
experiments/lerobot/src/lerobot/utils/transition.py:34
↓ 2 callersMethodnormalize
(self, x: Any)
experiments/olmo/hf_model/modeling_molmoact2.py:1011
↓ 2 callersMethodnormalize_action
(self, action, repo_id: Optional[str])
experiments/olmo/data/robot_processing.py:310
↓ 2 callersFunctionnormalize_image
( image: np.ndarray, image_mean: list[float], image_std: list[float], )
experiments/olmo/hf_model/image_processing_molmoact2.py:28
↓ 2 callersMethodnormalize_image
(self, image)
experiments/olmo/preprocessing/image_preprocessor.py:424
↓ 2 callersMethodnormalize_image_tensor
(self, image)
experiments/olmo/preprocessing/image_preprocessor.py:416
↓ 2 callersFunctionnormalize_timestamps_and_points
Normalize the timestamps and points in the triplets to a range of [0, 100].
experiments/olmo/util.py:814
↓ 2 callersMethodnum_dofs
(self)
examples/yam/gello_min/yam.py:32
↓ 2 callersFunctionpack_one
(t, pattern)
experiments/lerobot/src/lerobot/policies/vqbet/vqbet_utils.py:952
↓ 2 callersFunctionpad_vector
Pad the last dimension of a vector to new_dim with zeros. Can be (batch_size x sequence_length x features_dimension) or (batch_size x feature
experiments/lerobot/src/lerobot/policies/pi0/modeling_pi0.py:143
↓ 2 callersFunctionpad_vector
Can be (batch_size x sequence_length x features_dimension) or (batch_size x features_dimension)
experiments/lerobot/src/lerobot/policies/smolvla/modeling_smolvla.py:156
↓ 2 callersFunctionpad_vector
(vector: Tensor, new_dim: int)
experiments/lerobot/src/lerobot/policies/xvla/modeling_xvla.py:521
↓ 2 callersFunctionpad_vector
Pad the last dimension of a vector to new_dim with zeros. Can be (batch_size x sequence_length x features_dimension) or (batch_size x feature
experiments/lerobot/src/lerobot/policies/pi05/modeling_pi05.py:140
↓ 2 callersFunctionparse_action
(action_str)
experiments/olmo/eval/evaluators.py:397
↓ 2 callersMethodparse_multi_choice_response
Changed from MMMU-style complex parsing into simple parsing. Fixed to avoid 'D. A book' be parsed as A. Same as original Long
experiments/olmo/eval/evaluators.py:1999
↓ 2 callersFunctionparse_plugin_args
Parse plugin-related arguments from command-line arguments. This function extracts arguments from command-line arguments that match a specified s
experiments/lerobot/src/lerobot/configs/parser.py:68
↓ 2 callersFunctionparse_response
(text: str, keys: List[str])
experiments/olmo/eval/mlvu_utils.py:81
↓ 2 callersFunctionparse_timestamp
Parse timestamp string like '00:00:01.089' to seconds.
experiments/scripts/extract_epic_kitchens_clips.py:7
↓ 2 callersMethodping
(self, port, id)
experiments/lerobot/src/lerobot/motors/motors_bus.py:219
↓ 2 callersFunctionport_droid
( raw_dir: Path, repo_id: str, push_to_hub: bool = False, num_shards: int | None = None, s
experiments/lerobot/examples/port_datasets/port_droid.py:308
↓ 2 callersMethodpredict
Multi-modal prediction method supporting text generation, fast action prediction, and diffusion-based action prediction. This method
experiments/lerobot/src/lerobot/policies/wall_x/modeling_wall_x.py:983
↓ 2 callersMethodpredict
( self, external_cam: np.ndarray, wrist_cam: np.ndarray, instruction: str,
examples/droid/host_server_droid.py:186
↓ 2 callersMethodpredict
( self, top_cam: np.ndarray, left_cam: np.ndarray, right_cam: np.ndarray,
examples/yam/host_server_yam.py:180
↓ 2 callersMethodpredict
( self, top_cam: Any, left_cam: Any, right_cam: Any, instruction: str,
examples/yam/molmoact_client.py:389
↓ 2 callersMethodpredict_action_chunk
Predict a chunk of actions given environment observations.
experiments/lerobot/src/lerobot/policies/act/modeling_act.py:125
↓ 2 callersMethodpredict_reward
Eval method. Returns predicted reward with the decision threshold as argument.
experiments/lerobot/src/lerobot/policies/sac/reward_model/modeling_classifier.py:269
↓ 2 callersMethodprepare_context
( self, *, encoder_kv_states: Sequence[Tuple[torch.Tensor, torch.Tensor]], enc
experiments/olmo/hf_model/modeling_molmoact2.py:708
↓ 2 callersFunctionprepare_image
Minimal preprocessing to turn int8 images to float32 in [0, 1], and create a memory-contiguous tensor
experiments/lerobot/src/lerobot/async_inference/helpers.py:107
↓ 2 callersMethodprepare_images
Apply SmolVLA preprocessing to the images, like resizing to 224x224 and padding to keep aspect ratio, and convert pixel range from [0.0, 1.0]
experiments/lerobot/src/lerobot/policies/smolvla/modeling_smolvla.py:402
↓ 2 callersMethodprepare_input
(self, inputs)
experiments/lerobot/src/lerobot/policies/groot/groot_n1.py:320
↓ 2 callersMethodprepare_modulation_cache
( self, timesteps: Sequence[torch.Tensor], )
experiments/olmo/hf_model/modeling_molmoact2.py:754
↓ 2 callersFunctionprepare_observation_for_inference
Converts observation data to model-ready PyTorch tensors. This function takes a dictionary of NumPy arrays, performs necessary preprocessing,
experiments/lerobot/src/lerobot/policies/utils.py:98
↓ 2 callersFunctionprepare_raw_observation
Matches keys from the raw robot_obs dict to the keys expected by a given policy (passed as policy_image_features).
experiments/lerobot/src/lerobot/async_inference/helpers.py:143
↓ 2 callersMethodprepare_state
Pad state
experiments/lerobot/src/lerobot/policies/pi0/modeling_pi0.py:1232
↓ 2 callersMethodprepare_state
Pad state
experiments/lerobot/src/lerobot/policies/smolvla/modeling_smolvla.py:471
↓ 2 callersMethodpreprocess
Default: return unchanged.
experiments/lerobot/src/lerobot/policies/xvla/action_hub.py:87
↓ 2 callersMethodpreprocess_inputs
Convert a batch of LeRobot dataset items to Wall-X model input format. This processes a batched dictionary where tensors have batch
experiments/lerobot/src/lerobot/policies/wall_x/modeling_wall_x.py:1736
← previousnext →1,601–1,700 of 8,779, ranked by callers