MCPcopy Create free account

hub / github.com/allenai/molmoact2 / functions

Functions8,779 in github.com/allenai/molmoact2

↓ 6 callersFunctionmake_pi05_pre_post_processors
Constructs pre-processor and post-processor pipelines for the PI0 policy. The pre-processing pipeline prepares input data for the model by:
experiments/lerobot/src/lerobot/policies/pi05/processor_pi05.py:96
↓ 6 callersFunctionmake_teleoperator_from_config
(config: TeleoperatorConfig)
experiments/lerobot/src/lerobot/teleoperators/utils.py:36
↓ 6 callersFunctionmove_to_device
(o: T, device: torch.device)
experiments/olmo/torch_util.py:136
↓ 6 callersFunctionnormalize_click_coords
Normalize the coordinates to [0, upper_bound] Args: x: the x coordinate y: the y coordinate image_w: the width of the
experiments/olmo/data/pixmo_datasets.py:1451
↓ 6 callersMethodping
Builds a 'Ping' status packet. Args: scs_id (int): ID of the servo responding. error (int, optional): Error to be ret
experiments/lerobot/tests/mocks/mock_feetech.py:233
↓ 6 callersFunctionpostprocess_prompt
Get a human-readable prompt by compressing the image tokens
experiments/olmo/html_utils.py:695
↓ 6 callersMethodpredict_action_chunk
( self, batch: dict[str, Tensor], noise: Tensor | None = None, **kwargs: Unpack[ActionSelectKwargs]
experiments/lerobot/src/lerobot/policies/smolvla/modeling_smolvla.py:310
↓ 6 callersFunctionpreprocess_answer
(ans, cache={})
experiments/olmo/eval/vqa.py:89
↓ 6 callersFunctionpython_object_to_bytes
(python_object: Any)
experiments/lerobot/src/lerobot/transport/utils.py:128
↓ 6 callersMethodread_raw
(self)
experiments/lerobot/src/lerobot/teleoperators/unitree_g1/exo_serial.py:110
↓ 6 callersMethodreset_parameters
(self)
experiments/olmo/nn/temporal_image_vit.py:91
↓ 6 callersFunctionsave_optimizer_state
Save optimizer state to disk. Args: optimizer: Either a single optimizer or a dictionary of optimizers. save_dir: Directory to sa
experiments/lerobot/src/lerobot/optim/optimizers.py:283
↓ 6 callersMethodsend_action
Send an action command to the robot. Args: action (RobotAction): Dictionary representing the desired action. Its structu
experiments/lerobot/src/lerobot/robots/robot.py:194
↓ 6 callersMethodset_baudrate
Set a new UART baud-rate on the port. Args: baudrate (int): Desired baud-rate in bits / second. Raises: Runt
experiments/lerobot/src/lerobot/motors/motors_bus.py:698
↓ 6 callersFunctionstate_to_bytes
Convert model state dict to flat array for transmission
experiments/lerobot/src/lerobot/transport/utils.py:113
↓ 6 callersFunctionstats_factory
()
experiments/lerobot/tests/fixtures/dataset_factories.py:191
↓ 6 callersFunctiontasks_factory
()
experiments/lerobot/tests/fixtures/dataset_factories.py:221
↓ 6 callersMethodtf
(self, path: str, mat: np.ndarray)
experiments/lerobot/src/lerobot/teleoperators/unitree_g1/exo_ik.py:87
↓ 6 callersMethodtokenizer
(self)
experiments/olmo/preprocessing/multimodal_preprocessor.py:261
↓ 6 callersMethodupdate
( self, key_states: torch.Tensor, value_states: torch.Tensor, *args, *
experiments/olmo/hf_model/inference.py:117
↓ 6 callersMethodupdate
Update configuration parameters. Args: **kwargs: Key-value pairs to update Returns: X2RDataProcessingConfig:
experiments/lerobot/src/lerobot/policies/wall_x/utils.py:90
↓ 6 callersMethodupdate_with_decay
(self, buffer_name, new_value, decay)
experiments/lerobot/src/lerobot/policies/vqbet/vqbet_utils.py:1262
↓ 6 callersFunctionuse_threads
(cfg: TrainRLServerPipelineConfig)
experiments/lerobot/src/lerobot/rl/learner.py:1044
↓ 6 callersFunctionwrite_image
Saves a NumPy array or PIL Image to a file. This function handles both NumPy arrays and PIL Image objects, converting the former to a PI
experiments/lerobot/src/lerobot/datasets/image_writer.py:71
↓ 6 callersFunctionwrite_json
Write data to a JSON file. Creates parent directories if they don't exist. Args: data (dict): The dictionary to write. fpath
experiments/lerobot/src/lerobot/datasets/utils.py:258
↓ 5 callersMethodQs
Predict state-action value for all of the learned Q functions. Args: z: (*, latent_dim) tensor for the current state's latent rep
experiments/lerobot/src/lerobot/policies/tdmpc/modeling_tdmpc.py:663
↓ 5 callersMethod__init__
(self, config: GemmaConfig, **kwargs)
experiments/lerobot/src/lerobot/policies/pi_gemma.py:198
↓ 5 callersMethod__init__
GPT model gets hyperparameters from a config object. Please refer configuration_vqbet.py for more details.
experiments/lerobot/src/lerobot/policies/vqbet/vqbet_utils.py:174
↓ 5 callersFunction_create_mock_lerobot_features
Create mock lerobot features mapping similar to what hw_to_dataset_features returns.
experiments/lerobot/tests/async_inference/test_helpers.py:223
↓ 5 callersFunction_create_mock_policy_image_features
Create mock policy image features with different resolutions.
experiments/lerobot/tests/async_inference/test_helpers.py:244
↓ 5 callersFunction_create_mock_robot_observation
Create a mock robot observation with motor positions and camera images.
experiments/lerobot/tests/async_inference/test_helpers.py:211
↓ 5 callersMethod_decode_motor_state
Decode motor state from CAN data. Returns: Tuple of (position_degrees, velocity_deg_per_sec, torque, temp_mos)
experiments/lerobot/src/lerobot/motors/robstride/robstride.py:665
↓ 5 callersFunction_flatten_dims
Flatten *dims* into a single dimension called *name*. :param device_mesh: The world-mesh object. Only views of *device_mesh* are actually mu
experiments/olmo/dist_util.py:250
↓ 5 callersMethod_float_to_uint
Convert float to unsigned integer for CAN transmission.
experiments/lerobot/src/lerobot/motors/robstride/robstride.py:652
↓ 5 callersMethod_float_to_uint
Convert float to unsigned integer for CAN transmission.
experiments/lerobot/src/lerobot/motors/damiao/damiao.py:529
↓ 5 callersFunction_get_env_int
(name: str, default: int)
experiments/olmo/data/lerobot_wrapper.py:537
↓ 5 callersFunction_get_env_json
(name: str)
experiments/olmo/data/lerobot_wrapper.py:873
↓ 5 callersMethod_get_image_file_dir
(self, episode_index: int, image_key: str)
experiments/lerobot/src/lerobot/datasets/lerobot_dataset.py:1158
↓ 5 callersMethod_get_motor_name
Get motor name from name or ID.
experiments/lerobot/src/lerobot/motors/damiao/damiao.py:837
↓ 5 callersFunction_is_hist
(metric_name)
experiments/olmo/eval/loss_evaluator.py:30
↓ 5 callersFunction_is_molmoact2_policy_type
(policy_cfg: PreTrainedConfig)
experiments/scripts/run_open_loop_inference_lerobot.py:166
↓ 5 callersFunction_make_actions
Generate `count` consecutive TimedAction objects starting at timestep `start_t`.
experiments/lerobot/tests/async_inference/test_robot_client.py:73
↓ 5 callersMethod_normalize_and_round_points
Helper to normalize and round points.
experiments/olmo/preprocessing/point_formatter.py:700
↓ 5 callersFunction_normalize_hub_result
Normalize possible return types from hub `make_env` into the mapping: { suite_name: { task_id: vector_env } } Accepts: - dict (as
experiments/lerobot/src/lerobot/envs/utils.py:330
↓ 5 callersFunction_normalize_optional_string_sequence
(values: Optional[Sequence[str]], *, label: str)
experiments/olmo/data/lerobot_wrapper.py:636
↓ 5 callersFunction_normalize_registered_lerobot_tag_metadata
( tag_metadata_by_tag: Dict[str, Dict[str, object]], )
experiments/launch_scripts/lerobot_utils/train_plan.py:345
↓ 5 callersMethod_require_action_expert
(self)
experiments/olmo/models/molmoact2/molmoact2.py:350
↓ 5 callersFunction_require_non_negative_int
(value: object, *, label: str)
experiments/olmo/data/lerobot_wrapper.py:588
↓ 5 callersMethod_resolve_action_horizon
(self, action_horizon: Optional[int] = None)
experiments/olmo/hf_model/modeling_molmoact2.py:3165
↓ 5 callersMethod_resolve_camera_order
( self, example: Dict[str, Any], rng: np.random.Generator, mapped_index: Optio
experiments/olmo/data/lerobot_wrapper.py:2348
↓ 5 callersFunction_resolve_depth_dataset_root
(base: str, dataset_repo_id: str)
experiments/olmo/data/lerobot_wrapper.py:1010
↓ 5 callersFunction_resolve_repo_camera_keys
( tag: str, *, available_cameras: Sequence[str], camera_keys: Sequence[str], )
experiments/olmo/data/lerobot_wrapper.py:678
↓ 5 callersMethod_resolve_step_class
Resolve step class from registry or import path. This method implements a two-tier resolution strategy: **Tier 1: Registry-based res
experiments/lerobot/src/lerobot/processor/pipeline.py:792
↓ 5 callersMethod_run_depth_decode_step
( self, token_ids: torch.Tensor, *, past_key_values: Cache, attention_
experiments/olmo/hf_model/modeling_molmoact2.py:4138
↓ 5 callersMethod_select_normalized_human_readable_label
Select a normalized label and find its human-readable equivalent.
experiments/olmo/models/molmo/data_formatter.py:848
↓ 5 callersMethod_serialize_data
Converts an unsigned integer value into a list of byte-sized integers to be sent via a communication protocol. Depending on the proto
experiments/lerobot/src/lerobot/motors/motors_bus.py:905
↓ 5 callersFunction_should_retry_with_main_revision
Detect LeRobot version-resolution failures where forcing revision=main is safer.
experiments/olmo/data/lerobot_wrapper.py:1076
↓ 5 callersFunction_to_mask
(x, *, fallback_like: Optional[np.ndarray] = None)
experiments/olmo/data/robot_processing.py:21
↓ 5 callersFunction_to_numpy
(value: Any)
experiments/scripts/run_open_loop_inference_lerobot.py:186
↓ 5 callersFunction_to_numpy
(value: Any)
experiments/lerobot/src/lerobot/policies/molmoact2/modeling_molmoact2.py:69
↓ 5 callersFunctionapply_rewind_augmentation
Generate rewind frame indices for temporal augmentation. Rewind simulates going backwards through previously seen frames, starting from
experiments/lerobot/src/lerobot/policies/sarm/sarm_utils.py:135
↓ 5 callersFunctionapply_rope
Applies RoPE positions [B, L] to x [B, L, H, D].
experiments/lerobot/src/lerobot/policies/smolvla/smolvlm_with_expert.py:28
↓ 5 callersFunctionassert_same_address
(model_ctrl_table: dict[str, dict], motor_models: list[str], data_name: str)
experiments/lerobot/src/lerobot/motors/motors_bus.py:137
↓ 5 callersMethodbatch_decode
This method forwards all its arguments to LlamaTokenizerFast's [`~PreTrainedTokenizer.batch_decode`]. Please refer to the docstring o
experiments/lerobot/src/lerobot/policies/groot/eagle2_hg_model/processing_eagle2_5_vl.py:430
↓ 5 callersMethodbuild
(cls, config: MolmoVisionBackboneConfig, outut_dim, device=None)
experiments/olmo/nn/vision_backbone.py:312
↓ 5 callersMethodbuild
Build multiple Adam optimizers. Args: params: Must be a dict[str, Iterable[Parameter]] mapping parameter group names
experiments/lerobot/src/lerobot/optim/optimizers.py:248
↓ 5 callersFunctionbuild_action_added_tokens
(num_action_tokens: int)
experiments/olmo/extra_tokens.py:97
↓ 5 callersFunctionbuild_control_added_tokens
()
experiments/olmo/extra_tokens.py:113
↓ 5 callersFunctionbuild_dataset_frame
Construct a single data frame from raw values based on dataset features. A "frame" is a dictionary containing all the data for a single timestep,
experiments/lerobot/src/lerobot/datasets/utils.py:667
↓ 5 callersFunctionbuild_setup_added_tokens
()
experiments/olmo/extra_tokens.py:109
↓ 5 callersFunctionbuild_single_lerobot_mixture
Build a one-tag LeRobot mixture. Add most new LeRobot datasets by adding a small builder that calls this helper and then registering it in MO
experiments/launch_scripts/data_mixtures.py:104
↓ 5 callersFunctionbuild_state_added_tokens
(num_state_tokens: int)
experiments/olmo/extra_tokens.py:101
↓ 5 callersFunctionbytes_buffer_size
(buffer: io.BytesIO)
experiments/lerobot/src/lerobot/transport/utils.py:38
↓ 5 callersFunctioncalculate_episode_data_index
Calculate episode data index for the provided HuggingFace Dataset. Relies on episode_index column of hf_dataset. Parameters: - hf_datase
experiments/lerobot/src/lerobot/datasets/push_dataset_to_hub/utils.py:22
↓ 5 callersMethodcalculate_rewards
Calculate rewards for given text, video, and state representations. This is the canonical method for SARM reward computation, used f
experiments/lerobot/src/lerobot/policies/sarm/modeling_sarm.py:474
↓ 5 callersMethodcancel_episode
Cancel the current episode, stopping encoder threads and cleaning up.
experiments/lerobot/src/lerobot/datasets/video_utils.py:873
↓ 5 callersFunctionclear_directory
Clear out the contents of a local or remote directory. .. warning:: This function is potentially very destructive! By defau
experiments/olmo/io.py:367
↓ 5 callersFunctioncompute_absolute_indices
Compute absolute frame indices with clamping for bidirectional observation sequence. Bidirectional sampling centered on target frame: - Befor
experiments/lerobot/src/lerobot/policies/sarm/sarm_utils.py:87
↓ 5 callersMethodconnect
Connects to the RealSense camera specified in the configuration. Initializes the RealSense pipeline, configures the required streams
experiments/lerobot/src/lerobot/cameras/realsense/camera_realsense.py:157
↓ 5 callersFunctioncreate_default_stats
Create default dataset statistics for testing.
experiments/lerobot/tests/processor/test_smolvla_processor.py:81
↓ 5 callersMethodcreate_repo
(self)
experiments/lerobot/examples/port_datasets/slurm_upload.py:64
↓ 5 callersFunctioncreate_train_batch_with_visual_input
( batch_size: int = 8, state_dim: int = 10, action_dim: int = 10 )
experiments/lerobot/tests/policies/test_sac_policy.py:116
↓ 5 callersFunctiondir_is_empty
Check if a local or remote directory is empty. This also returns true if the directory does not exist. :param dir: Path/URL to the direc
experiments/olmo/io.py:319
↓ 5 callersFunctionencode_video_frames
More info on ffmpeg arguments tuning on `benchmark/video/README.md`
experiments/lerobot/src/lerobot/datasets/video_utils.py:390
↓ 5 callersFunctionenter_pressed
()
experiments/lerobot/src/lerobot/utils/utils.py:260
↓ 5 callersFunctionepisodes_factory
(tasks_factory, stats_factory)
experiments/lerobot/tests/fixtures/dataset_factories.py:232
↓ 5 callersMethodforward
Run the batch through the model and compute the loss for training.
experiments/lerobot/src/lerobot/policies/pi0_fast/modeling_pi0_fast.py:1326
↓ 5 callersFunctionfreeze_module
(module: torch.nn.Module, exclude_params: Optional[List[str]] = None)
experiments/olmo/torch_util.py:230
↓ 5 callersMethodget_action_dim
(self, repo_id: Optional[str])
experiments/olmo/data/robot_processing.py:384
↓ 5 callersMethodget_config
(self)
experiments/lerobot/tests/processor/test_pipeline.py:70
↓ 5 callersFunctionget_ctrl_table
(model_ctrl_table: dict[str, dict], model: str)
experiments/lerobot/src/lerobot/motors/motors_bus.py:122
↓ 5 callersFunctionget_default_device
()
experiments/olmo/torch_util.py:162
↓ 5 callersFunctionget_evaluation
Gets the default evaluation config for task (or task:split string) `name`
experiments/olmo/eval/eval_utils.py:329
↓ 5 callersFunctionget_html_image_with_boxes
Build a HTML element containing `image_src` and the boxes in `boxes` on top of it. Provides a way to draw annotated images without have to load/m
experiments/olmo/html_utils.py:591
↓ 5 callersMethodget_max_cache_shape
(self, layer_idx: int = 0)
experiments/olmo/hf_model/inference.py:160
↓ 5 callersMethodget_obs
Get observation from the environment. Returns: obs: observation from the environment.
examples/yam/gello_min/env.py:108
↓ 5 callersMethodget_observation
Retrieve the current observation from the robot. Returns: RobotObservation: A flat dictionary representing the robot's c
experiments/lerobot/src/lerobot/robots/robot.py:182
↓ 5 callersMethodget_observation
(self)
experiments/lerobot/src/lerobot/async_inference/helpers.py:233
↓ 5 callersMethodget_observation
(self)
experiments/lerobot/tests/mocks/mock_robot.py:119
↓ 5 callersMethodget_quantized_max_len
(self)
experiments/olmo/data/dynamic_packer.py:390
← previousnext →501–600 of 8,779, ranked by callers