Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/allenai/molmoact2
/ functions
Functions
8,779 in github.com/allenai/molmoact2
⨍
Functions
8,779
◇
Types & classes
1,280
↳
Endpoints
41
↓ 2 callers
Method
process_backbone_output
(self, backbone_output: BatchFeature)
experiments/lerobot/src/lerobot/policies/groot/action_head/flow_matching_action_head.py:259
↓ 2 callers
Method
process_text_for_siglip
(message, metadata)
experiments/olmo/models/molmo2/molmo2_preprocessor.py:308
↓ 2 callers
Function
push_actor_policy_to_queue
(parameters_queue: Queue, policy: nn.Module)
experiments/lerobot/src/lerobot/rl/learner.py:1094
↓ 2 callers
Method
push_model_to_hub
( self, cfg: TrainPipelineConfig, peft_model=None, )
experiments/lerobot/src/lerobot/policies/pretrained.py:206
↓ 2 callers
Method
qa_template
(self, qa_data)
experiments/olmo/data/video_datasets.py:634
↓ 2 callers
Method
qa_template
(self, question, options, answer_id)
experiments/olmo/data/video_datasets.py:1073
↓ 2 callers
Method
read
Reads a single frame synchronously from the camera. This is a blocking call. It waits for the next available frame from the
experiments/lerobot/src/lerobot/cameras/opencv/camera_opencv.py:351
↓ 2 callers
Method
read
Read a value from a single motor.
experiments/lerobot/src/lerobot/motors/motors_bus.py:82
↓ 2 callers
Method
read
Read a frame from the camera. Args: img_size: The size of the image to return. If None, the original size is returned.
examples/yam/gello_min/realsense_camera.py:125
↓ 2 callers
Method
read_calibration
Read calibration parameters from the motors.
experiments/lerobot/src/lerobot/motors/motors_bus.py:112
↓ 2 callers
Function
read_json
(path: PathOrStr)
experiments/olmo/io.py:123
↓ 2 callers
Function
read_raw_from_serial
Read latest sample from serial; if buffer is backed up, keep only the newest.
experiments/lerobot/src/lerobot/teleoperators/unitree_g1/exo_serial.py:39
↓ 2 callers
Function
rearrange_tokens
Reassign token locations using first-fit descending greedy algorithm. The kept tokens will be rearranged into N slots per frame as packe
experiments/olmo/nn/temporal_image_vit.py:575
↓ 2 callers
Function
reindex_list
Reindexes numbered lines in a string to start from 1. Args: text (str): Multiline string with lines starting with a number and a per
experiments/olmo/eval/vixmo_caption_utils.py:184
↓ 2 callers
Function
remove_images
(question: str)
experiments/olmo/hf_datasets/mantis_instruct.py:56
↓ 2 callers
Function
rename_stats
Renames the top-level keys in a statistics dictionary using a provided mapping. This is a helper function typically used to keep normalizati
experiments/lerobot/src/lerobot/processor/rename_processor.py:70
↓ 2 callers
Function
repeat_kv
torch.repeat_interleave(x, dim=2, repeats=n_rep)
experiments/olmo/nn/llm.py:50
↓ 2 callers
Function
replace_images
(question, options, max_images=None)
experiments/olmo/data/academic_datasets.py:904
↓ 2 callers
Function
replace_images
(question, max_images=None)
experiments/olmo/hf_datasets/mantis_instruct.py:39
↓ 2 callers
Method
replace_placeholders
(self, all_strings: List[str])
experiments/olmo/data/academic_datasets.py:822
↓ 2 callers
Function
replay
(cfg: ReplayConfig)
experiments/lerobot/src/lerobot/scripts/lerobot_replay.py:98
↓ 2 callers
Method
reset
Reset the environment to its initial state. Args: seed (Optional[int]): Random seed for environment initialization.
experiments/lerobot/src/lerobot/envs/metaworld.py:197
↓ 2 callers
Method
reset
Clear buffered actions. Call at each episode boundary.
sim_eval/inference/client.py:58
↓ 2 callers
Method
reset_action_expert_depth_gate_parameters
(self)
experiments/olmo/models/molmoact2/molmoact2.py:305
↓ 2 callers
Method
reset_averages
Resets average meters.
experiments/lerobot/src/lerobot/utils/logging_utils.py:166
↓ 2 callers
Method
reset_connector_parameters
(self)
experiments/olmo/nn/vision_backbone.py:315
↓ 2 callers
Function
reset_state
()
experiments/lerobot/src/lerobot/teleoperators/unitree_g1/exo_calib.py:258
↓ 2 callers
Method
reset_with_pretrained_weights
(self)
experiments/olmo/nn/llm.py:775
↓ 2 callers
Function
resize_image
( image: np.ndarray, desired_output_size: list[int], resample: PILImageResampling, )
experiments/olmo/hf_model/image_processing_molmoact2.py:40
↓ 2 callers
Method
resize_image
(self, image, output_size, is_training, rng)
experiments/olmo/preprocessing/image_preprocessor.py:439
↓ 2 callers
Function
resize_or_init_action_expert_dim_for_checkpoint
( state_dict: Dict[str, torch.Tensor], model: torch.nn.Module, )
experiments/olmo/train/checkpoint_loading.py:593
↓ 2 callers
Function
resize_robot_observation_image
(image: torch.tensor, resize_dims: tuple[int, int, int])
experiments/lerobot/src/lerobot/async_inference/helpers.py:74
↓ 2 callers
Method
resize_token_embeddings
( self, new_num_tokens: int | None = None, pad_to_multiple_of=None, **kwargs )
experiments/lerobot/src/lerobot/policies/xvla/modeling_florence2.py:2503
↓ 2 callers
Function
resolve_delta_timestamps
Resolves delta_timestamps by reading from the 'delta_indices' properties of the PreTrainedConfig. Args: cfg (PreTrainedConfig): The PreTr
experiments/lerobot/src/lerobot/datasets/factory.py:38
↓ 2 callers
Function
resolve_family_boundary_token_ids
( tokenizer: Any, family: IndexedExtraTokenFamily, error_message: str, )
experiments/olmo/extra_tokens.py:238
↓ 2 callers
Function
resolve_single_token_id
(tokenizer: Any, token: str, error_message: str)
experiments/olmo/extra_tokens.py:231
↓ 2 callers
Function
rotate_half
Rotates half the hidden dims of the input.
experiments/olmo/hf_model/modeling_molmoact2.py:1934
↓ 2 callers
Method
run
(self)
experiments/lerobot/src/lerobot/datasets/video_utils.py:606
↓ 2 callers
Function
run_accelerate_training
Helper function to run training with accelerate launch. Args: config_args: List of config arguments to pass to lerobot_train.py
experiments/lerobot/tests/training/test_multi_gpu.py:59
↓ 2 callers
Function
run_command
(cmd, module, args)
experiments/lerobot/tests/test_cli_peft.py:17
↓ 2 callers
Function
running_mean_std_from_tensors
( tensors: Iterable[torch.Tensor], chunk_numel: int = 4_000_000, )
experiments/olmo/train/checkpoint_loading.py:258
↓ 2 callers
Function
running_median
(win: deque)
experiments/lerobot/src/lerobot/teleoperators/unitree_g1/exo_calib.py:165
↓ 2 callers
Function
safe_shard
Safe shards the dataset.
experiments/lerobot/src/lerobot/datasets/utils.py:1377
↓ 2 callers
Method
sample_beams
( self, log_probs: torch.Tensor, beam_size: int, state: StateType )
experiments/olmo/nn/beam_search.py:106
↓ 2 callers
Function
sample_images
(image_paths: list[str])
experiments/lerobot/src/lerobot/datasets/compute_stats.py:230
↓ 2 callers
Function
sample_indices
(data_len: int)
experiments/lerobot/src/lerobot/datasets/compute_stats.py:214
↓ 2 callers
Method
sample_nodes
( self, log_probs: torch.Tensor, per_node_beam_size: int, state: StateType )
experiments/olmo/nn/beam_search.py:250
↓ 2 callers
Method
sample_noise
(self, shape, device)
experiments/lerobot/src/lerobot/policies/smolvla/modeling_smolvla.py:608
↓ 2 callers
Method
sample_noise
(self, shape, device)
experiments/lerobot/src/lerobot/policies/pi05/modeling_pi05.py:624
↓ 2 callers
Function
sample_vectors
(samples, num)
experiments/lerobot/src/lerobot/policies/vqbet/vqbet_utils.py:1018
↓ 2 callers
Function
save_all_transforms
(cfg: ImageTransformsConfig, original_frame, output_dir, n_examples)
experiments/lerobot/src/lerobot/scripts/lerobot_imgtransform_viz.py:50
↓ 2 callers
Function
save_each_transform
(cfg: ImageTransformsConfig, original_frame, output_dir, n_examples)
experiments/lerobot/src/lerobot/scripts/lerobot_imgtransform_viz.py:63
↓ 2 callers
Method
save_episode_tasks
(self, tasks: list[str])
experiments/lerobot/src/lerobot/datasets/lerobot_dataset.py:310
↓ 2 callers
Method
save_lora_checkpoint
(self, save_and_remove: bool = True, epoch: Optional[int] = None)
experiments/olmo/train/trainer.py:1303
↓ 2 callers
Function
save_proportions
(annotations, prefix, subtask_list=None, is_auto=False)
experiments/lerobot/src/lerobot/data_processing/sarm_annotations/subtask_annotation.py:1163
↓ 2 callers
Function
save_unsharded
Save model, optim, and other training state to a local or remote directory unsharded :warning This can be very slow if saving to a remote dir
experiments/olmo/train/checkpointer.py:64
↓ 2 callers
Function
seed_all
Seed all rng objects.
experiments/olmo/torch_util.py:21
↓ 2 callers
Method
send_action
Command lekiwi to move to a target joint configuration. Translates to motor space + sends over ZMQ Args: action (RobotAction): ar
experiments/lerobot/src/lerobot/robots/lekiwi/lekiwi_client.py:307
↓ 2 callers
Method
send_action
(self, action: RobotAction)
experiments/lerobot/tests/mocks/mock_robot.py:128
↓ 2 callers
Method
send_feedback
(self, feedback: dict[str, float])
experiments/lerobot/src/lerobot/teleoperators/phone/teleop_phone.py:411
↓ 2 callers
Method
send_feedback
(self, feedback: dict[str, Any])
experiments/lerobot/tests/mocks/mock_teleop.py:98
↓ 2 callers
Function
serialize_numpy_rng_state
Returns the rng state for `numpy` in the form of a flat dict[str, torch.Tensor] to be saved using `safetensors.save_file()` or `torch.save()`
experiments/lerobot/src/lerobot/utils/random_utils.py:50
↓ 2 callers
Function
serialize_python_rng_state
Returns the rng state for `random` in the form of a flat dict[str, torch.Tensor] to be saved using `safetensors.save_file()` or `torch.save()
experiments/lerobot/src/lerobot/utils/random_utils.py:30
↓ 2 callers
Function
serialize_rng_state
Returns the rng state for `random`, `numpy`, and `torch`, in the form of a flat dict[str, torch.Tensor] to be saved using `safetensors.save_f
experiments/lerobot/src/lerobot/utils/random_utils.py:100
↓ 2 callers
Function
serialize_torch_rng_state
Returns the rng state for `torch` in the form of a flat dict[str, torch.Tensor] to be saved using `safetensors.save_file()` or `torch.save()`
experiments/lerobot/src/lerobot/utils/random_utils.py:80
↓ 2 callers
Function
serve
Start the PolicyServer with the given configuration. Args: config: PolicyServerConfig instance. If None, uses default configuration.
experiments/lerobot/src/lerobot/async_inference/policy_server.py:425
↓ 2 callers
Method
setPacketTimeoutMillis
(self, msec)
experiments/lerobot/src/lerobot/motors/motors_bus.py:205
↓ 2 callers
Method
set_enabled
(self, enabled: bool)
experiments/olmo/hf_model/inference.py:174
↓ 2 callers
Method
set_packing_config
(self, packing_config: Optional[Any])
experiments/olmo/preprocessing/multimodal_collator.py:95
↓ 2 callers
Function
set_rng_state
Set the random state for `random`, `numpy`, and `torch`. Args: random_state_dict: A dictionary of the form returned by `get_rng_state`.
experiments/lerobot/src/lerobot/utils/random_utils.py:154
↓ 2 callers
Function
setup_logger
Set up a console logger with consistent formatting (no duplicate handlers).
examples/yam/gello_min/logging_utils.py:26
↓ 2 callers
Method
should_log_this_step
(self)
experiments/olmo/train/trainer.py:2201
↓ 2 callers
Method
shuffle_options
(self, options: List[str], answer_idx: int, rng: np.random.RandomState)
experiments/olmo/data/academic_datasets.py:1386
↓ 2 callers
Method
state_dict
Returns normalization statistics as a flat state dictionary. This enables saving stats to safetensors files, similar to normalizer_p
experiments/lerobot/src/lerobot/policies/groot/processor_groot.py:400
↓ 2 callers
Function
step_env_and_process_transition
Execute one step with processor pipeline. Args: env: The robot environment transition: Current transition state acti
experiments/lerobot/src/lerobot/rl/gym_manipulator.py:519
↓ 2 callers
Method
stop
Stop the capture thread.
experiments/lerobot/src/lerobot/cameras/zmq/image_server.py:64
↓ 2 callers
Method
stop_base
(self)
experiments/lerobot/src/lerobot/robots/lekiwi/lekiwi.py:406
↓ 2 callers
Function
submit_next
(executor: ThreadPoolExecutor)
experiments/scripts/generate_depth_annotation.py:1095
↓ 2 callers
Method
sync_read
Read the same value from multiple motors simultaneously. Uses batched operations: sends all refresh commands, then collects all respo
experiments/lerobot/src/lerobot/motors/robstride/robstride.py:774
↓ 2 callers
Method
sync_read
Builds a "Sync_Read" broadcast instruction. https://emanual.robotis.com/docs/en/dxl/protocol2/#sync-read-0x82 The parameters
experiments/lerobot/tests/mocks/mock_dynamixel.py:262
↓ 2 callers
Function
synchronize_flag
(flag: bool, device: torch.device)
experiments/olmo/torch_util.py:208
↓ 2 callers
Method
system_metrics
(self)
experiments/olmo/train/trainer.py:2147
↓ 2 callers
Function
table_has_depth_columns
(path: Path)
experiments/scripts/generate_depth_annotation.py:1124
↓ 2 callers
Function
teleoperate
(cfg: TeleoperateConfig)
experiments/lerobot/src/lerobot/scripts/lerobot_teleoperate.py:209
↓ 2 callers
Function
template_mc_question
( question, options, rng, unlabelled=False, p_inline=0.1, p_use_instruction_template=0.5, p_label_
experiments/olmo/preprocessing/multiple_choice_templates.py:121
↓ 2 callers
Function
test_motor
Test a single motor and return responses.
experiments/lerobot/src/lerobot/scripts/lerobot_setup_can.py:123
↓ 2 callers
Function
time_to_seconds
(time_str: str)
experiments/olmo/data/video_datasets.py:699
↓ 2 callers
Function
to_float
(pred: str)
experiments/olmo/eval/vsi_bench_utils.py:17
↓ 2 callers
Function
to_parquet_with_hf_images
This function correctly writes to parquet a panda DataFrame that contains images encoded by HF dataset. This way, it can be loaded by HF dataset a
experiments/lerobot/src/lerobot/datasets/utils.py:1173
↓ 2 callers
Method
tokenize
(self, captions: Dict[str, List[str]])
experiments/olmo/eval/evaluators.py:2596
↓ 2 callers
Method
transform_features
( self, features: dict[PipelineFeatureType, dict[str, PolicyFeature]] )
experiments/lerobot/src/lerobot/robots/so_follower/robot_kinematic_processor.py:246
↓ 2 callers
Method
transform_features
(self, features)
experiments/lerobot/src/lerobot/processor/policy_robot_bridge.py:42
↓ 2 callers
Method
transform_features
(self, features)
experiments/lerobot/src/lerobot/processor/policy_robot_bridge.py:64
↓ 2 callers
Method
transform_features
Transforms: - Each key in the observation that appears in `rename_map` is renamed to its value. - Keys not in `rename_map` remain unch
experiments/lerobot/src/lerobot/processor/rename_processor.py:56
↓ 2 callers
Method
transform_features
Defines how this step modifies the description of pipeline features. This method is used to track changes in data shapes, dtypes, or modaliti
experiments/lerobot/src/lerobot/processor/pipeline.py:213
↓ 2 callers
Function
transitions_stream
(shutdown_event: Event, transitions_queue: Queue, timeout: float)
experiments/lerobot/src/lerobot/rl/actor.py:613
↓ 2 callers
Method
try_recv
Return the most recent frame dict if one is available, else None.
examples/yam/camera_client.py:123
↓ 2 callers
Method
txPacket
(self, port, txpacket)
experiments/lerobot/src/lerobot/motors/motors_bus.py:216
↓ 2 callers
Method
type
(self)
experiments/lerobot/src/lerobot/scripts/lerobot_edit_dataset.py:182
↓ 2 callers
Method
unnormalize
(self, x)
experiments/olmo/data/robot_processing.py:276
← previous
next →
1,701–1,800 of 8,779, ranked by callers