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
↓ 1 callers
Function
save
(state_dict: Dict[str, Any], path: Path)
experiments/olmo/train/distributed_checkpointing.py:469
↓ 1 callers
Function
save_dataset_to_safetensors
(output_dir, repo_id="lerobot/pusht")
experiments/lerobot/tests/artifacts/datasets/save_dataset_to_safetensors.py:37
↓ 1 callers
Function
save_decoded_frames
( imgs_dir: Path, save_dir: Path, frames: torch.Tensor, timestamps: list[float], fps: int )
experiments/lerobot/benchmarks/video/run_video_benchmark.py:99
↓ 1 callers
Function
save_default_config_transform
(original_frame: torch.Tensor, output_dir: Path)
experiments/lerobot/tests/artifacts/image_transforms/save_image_transforms_to_safetensors.py:34
↓ 1 callers
Function
save_first_episode
(imgs_dir: Path, dataset: LeRobotDataset)
experiments/lerobot/benchmarks/video/run_video_benchmark.py:113
↓ 1 callers
Function
save_image
(args)
experiments/olmo/preprocessing/image_preprocessor.py:147
↓ 1 callers
Function
save_image
Saves a single image to disk using Pillow. Handles color conversion if necessary.
experiments/lerobot/src/lerobot/scripts/lerobot_find_cameras.py:132
↓ 1 callers
Function
save_images_from_all_cameras
Connects to detected cameras (optionally filtered by type) and saves images from each. Uses default stream profiles for width, height, and FP
experiments/lerobot/src/lerobot/scripts/lerobot_find_cameras.py:230
↓ 1 callers
Function
save_model_and_optim_state
Save model and optimizer state dictionaries. The model state can be a sharded model, in which case this method will correctly handle the opti
experiments/olmo/train/distributed_checkpointing.py:98
↓ 1 callers
Function
save_policy_to_safetensors
(output_dir: Path, ds_repo_id: str, policy_name: str, policy_kwargs: dict)
experiments/lerobot/tests/artifacts/policies/save_policy_to_safetensors.py:111
↓ 1 callers
Function
save_rng_state
(save_dir: Path)
experiments/lerobot/src/lerobot/utils/random_utils.py:130
↓ 1 callers
Function
save_single_transforms
(original_frame: torch.Tensor, output_dir: Path)
experiments/lerobot/tests/artifacts/image_transforms/save_image_transforms_to_safetensors.py:44
↓ 1 callers
Function
save_training_checkpoint
Save training checkpoint and associated data. This function performs the following steps: 1. Creates a checkpoint directory with the cur
experiments/lerobot/src/lerobot/rl/learner.py:674
↓ 1 callers
Function
say
(text: str, blocking: bool = False)
experiments/lerobot/src/lerobot/utils/utils.py:198
↓ 1 callers
Function
scifi_relaxed_correctness
( target: str, prediction: str, max_relative_change: float = 0.05)
experiments/olmo/eval/vqa.py:226
↓ 1 callers
Method
score
Score the final predictions found by beam search. Returns a tensor of the final sequence scores of shape `(batch_size, beam_size)`.
experiments/olmo/nn/beam_search.py:565
↓ 1 callers
Function
seconds_to_timestamp
(seconds)
experiments/olmo/preprocessing/point_formatter.py:518
↓ 1 callers
Method
seen_example
Whether the checkpointed dataloader already produced example number `on_example`
experiments/olmo/data/iterable_dataset_mixture.py:68
↓ 1 callers
Method
select_action
Select a single action given environment observations.
experiments/lerobot/src/lerobot/policies/pi0/modeling_pi0.py:1243
↓ 1 callers
Method
select_action
Select single action for environment execution.
experiments/lerobot/src/lerobot/policies/wall_x/modeling_wall_x.py:2008
↓ 1 callers
Method
select_action
Select a single action given environment observations.
experiments/lerobot/src/lerobot/policies/pi05/modeling_pi05.py:1214
↓ 1 callers
Function
select_ego_schema_option
(prediction: str, options: List[str])
experiments/olmo/eval/vqa.py:499
↓ 1 callers
Function
select_fit_subset
Select and filter points for ellipse fitting. Trims outliers by radius and downsamples.
experiments/lerobot/src/lerobot/teleoperators/unitree_g1/exo_calib.py:172
↓ 1 callers
Function
select_perception_test_option
(prediction: str)
experiments/olmo/eval/vqa.py:406
↓ 1 callers
Function
select_rect_roi
Allows the user to draw a rectangular ROI on the image. The user must click and drag to draw the rectangle. - While dragging, the rectan
experiments/lerobot/src/lerobot/rl/crop_dataset_roi.py:31
↓ 1 callers
Function
select_square_roi_for_images
For each image in the provided dictionary, open a window to allow the user to select a rectangular ROI. Returns a dictionary mapping each key
experiments/lerobot/src/lerobot/rl/crop_dataset_roi.py:120
↓ 1 callers
Function
select_subset_2d_knapsack
Vectorized 2D knapsack dynamic program solver
experiments/olmo/data/dynamic_packer.py:277
↓ 1 callers
Function
select_subset_3d_knapsack
Vectorized 3D knapsack dynamic program solver.
experiments/olmo/data/dynamic_packer.py:320
↓ 1 callers
Function
select_tiling
Divide in image of size [w, h] in up to max_num_patches of size patch_size
experiments/olmo/preprocessing/image_preprocessor.py:354
↓ 1 callers
Function
select_tiling
Divide in image of size [w, h] in up to max_num_patches of size patch_size
experiments/olmo/hf_model/image_processing_molmoact2.py:75
↓ 1 callers
Method
select_vqa_answer
(self, answers, rng)
experiments/olmo/models/molmo/data_formatter.py:1587
↓ 1 callers
Method
send_action
Command lekiwi to move to a target joint configuration. The relative action magnitude may be clipped depending on the configuration parameter
experiments/lerobot/src/lerobot/robots/lekiwi/lekiwi.py:370
↓ 1 callers
Method
send_action
(self, action: RobotAction)
experiments/lerobot/src/lerobot/robots/unitree_g1/unitree_g1.py:463
↓ 1 callers
Method
send_observation
Send observation to the policy server. Returns True if the observation was sent successfully, False otherwise.
experiments/lerobot/src/lerobot/async_inference/robot_client.py:184
↓ 1 callers
Method
send_request
Send the captured image and instruction to the inference server using json_numpy. Returns the action output as received from the serv
examples/yam/molmoact_client.py:174
↓ 1 callers
Function
serialize_dict
Serialize a dictionary containing tensors or numpy arrays to be JSON-compatible. Converts torch.Tensor, np.ndarray, and np.generic types to lists
experiments/lerobot/src/lerobot/datasets/utils.py:196
↓ 1 callers
Method
setBaudRate
(self, baudrate)
experiments/lerobot/src/lerobot/motors/motors_bus.py:199
↓ 1 callers
Method
set_decoder
(self, decoder)
experiments/olmo/hf_model/modeling_molmoact2.py:2820
↓ 1 callers
Method
set_delta_timestamps
Set delta_timestamps converting the values to numpy arrays. The conversion is for an optimization in the __getitem__. The loop is much slower
experiments/lerobot/src/lerobot/datasets/online_buffer.py:123
↓ 1 callers
Function
set_env_variables
()
experiments/olmo/util.py:268
↓ 1 callers
Method
set_frozen_modules_to_eval_mode
Huggingface will call model.train() at each training_step. To ensure the expected behaviors for modules like dropout, batchnorm, etc.
experiments/lerobot/src/lerobot/policies/groot/groot_n1.py:119
↓ 1 callers
Method
set_frozen_modules_to_eval_mode
Huggingface will call model.train() at each training_step. To ensure the expected behaviors for modules like dropout, batchnorm, etc.
experiments/lerobot/src/lerobot/policies/groot/action_head/flow_matching_action_head.py:236
↓ 1 callers
Method
set_requires_grad
(self)
experiments/lerobot/src/lerobot/policies/smolvla/modeling_smolvla.py:604
↓ 1 callers
Method
set_requires_grad
(self)
experiments/lerobot/src/lerobot/policies/smolvla/smolvlm_with_expert.py:138
↓ 1 callers
Method
set_tick
(self, v)
experiments/lerobot/src/lerobot/motors/calibration_gui.py:89
↓ 1 callers
Method
set_timeout
Change the packet timeout used by the SDK. Args: timeout_ms (int | None, optional): Timeout in *milliseconds*. If `None` (default
experiments/lerobot/src/lerobot/motors/motors_bus.py:680
↓ 1 callers
Method
set_trainable_parameters
(self, tune_projector: bool, tune_diffusion_model: bool)
experiments/lerobot/src/lerobot/policies/groot/action_head/flow_matching_action_head.py:213
↓ 1 callers
Function
setup_can
(cfg: CANSetupConfig)
experiments/lerobot/src/lerobot/scripts/lerobot_setup_can.py:339
↓ 1 callers
Function
setup_gcp_credentials
()
experiments/olmo/util.py:555
↓ 1 callers
Function
setup_interface
Configure a CAN interface.
experiments/lerobot/src/lerobot/scripts/lerobot_setup_can.py:96
↓ 1 callers
Function
setup_logging
:param rank0_only: INFO and below messages will only be emitted on the rank0 process.
experiments/olmo/util.py:96
↓ 1 callers
Function
setup_motors
(cfg: SetupConfig)
experiments/lerobot/src/lerobot/scripts/lerobot_setup_motors.py:77
↓ 1 callers
Method
setup_motors
(self)
experiments/lerobot/src/lerobot/robots/lekiwi/lekiwi.py:201
↓ 1 callers
Function
setup_output_dataset
( dataset_root: Path, output_root: Path, info: dict[str, Any], camera_key: str, *, gri
experiments/scripts/generate_depth_annotation.py:754
↓ 1 callers
Function
setup_pil
()
experiments/olmo/data/download_urls.py:37
↓ 1 callers
Function
setup_s3_credentials
()
experiments/olmo/util.py:566
↓ 1 callers
Method
should_checkpoint_block
(self, block_idx: int)
experiments/olmo/nn/llm.py:684
↓ 1 callers
Method
should_intervene
Return True if intervention flag was set.
experiments/lerobot/src/lerobot/teleoperators/gamepad/gamepad_utils.py:79
↓ 1 callers
Function
should_keep
(key: str, patterns: tuple[str])
experiments/lerobot/src/lerobot/datasets/pipeline_features.py:47
↓ 1 callers
Method
should_log_optim_metrics_this_step
(self)
experiments/olmo/train/trainer.py:2187
↓ 1 callers
Function
should_use_vlm_loader_for_step
(seed: int, step: int, vlm_loader_rate: Optional[float])
experiments/olmo/train/trainer.py:150
↓ 1 callers
Function
shuffle_options
Shuffle MCQ options and update answer index accordingly. This prevents position bias (e.g., always selecting 'A') during training. Args:
experiments/olmo/data/spatial_datasets.py:48
↓ 1 callers
Function
siglip_resize_and_pad
( image: np.ndarray, desired_output_size: Tuple[int, int], float32=True )
experiments/olmo/preprocessing/image_preprocessor.py:280
↓ 1 callers
Function
slightly_off_delta_timestamps_factory
(valid_delta_timestamps_factory)
experiments/lerobot/tests/datasets/test_delta_timestamps.py:49
↓ 1 callers
Method
solve_ik
(self, left_wrist, right_wrist, current_lr_arm_motor_q=None, current_lr_arm_motor_dq=None)
experiments/lerobot/src/lerobot/robots/unitree_g1/g1_kinematics.py:232
↓ 1 callers
Method
solve_tau
(self, current_lr_arm_motor_q=None, current_lr_arm_motor_dq=None)
experiments/lerobot/src/lerobot/robots/unitree_g1/g1_kinematics.py:270
↓ 1 callers
Function
speed_test
Test communication speed with motors.
experiments/lerobot/src/lerobot/scripts/lerobot_setup_can.py:213
↓ 1 callers
Method
split_batch
(self, batch: Dict[str, Any])
experiments/olmo/train/trainer.py:2026
↓ 1 callers
Method
split_gcs_path
(url: str)
experiments/olmo/io.py:974
↓ 1 callers
Function
split_list
(lst, split_size)
experiments/olmo/util.py:494
↓ 1 callers
Function
start_learner_threads
Start the learner threads for training. Args: cfg (TrainRLServerPipelineConfig): Training configuration wandb_logger (WandBL
experiments/lerobot/src/lerobot/rl/learner.py:180
↓ 1 callers
Method
state_adapter
(self)
sim_eval/inference/client.py:47
↓ 1 callers
Method
state_dict
(self)
experiments/lerobot/tests/processor/test_smolvla_processor.py:184
↓ 1 callers
Method
step
Step the environment forward. Args: joints: joint angles command to step the environment with. Returns: obs:
examples/yam/gello_min/env.py:59
↓ 1 callers
Method
stop
Stop the timer and return elapsed time.
experiments/olmo/train/timer.py:211
↓ 1 callers
Method
stop
Stop the server
experiments/lerobot/src/lerobot/async_inference/policy_server.py:418
↓ 1 callers
Method
stop_image_writer
Whenever wrapping this dataset inside a parallelized DataLoader, this needs to be called first to remove the image_writer in order fo
experiments/lerobot/src/lerobot/datasets/lerobot_dataset.py:1617
↓ 1 callers
Method
storage_meta
(self)
experiments/olmo/train/remote_filesystem.py:314
↓ 1 callers
Function
strip_action_supervision_from_batch
(batch: Dict[str, Any])
experiments/olmo/train/trainer.py:167
↓ 1 callers
Function
strip_prefix
(key: str, prefixes_to_strip: tuple[str])
experiments/lerobot/src/lerobot/datasets/pipeline_features.py:53
↓ 1 callers
Function
swish
(x)
experiments/lerobot/src/lerobot/policies/groot/action_head/action_encoder.py:20
↓ 1 callers
Method
sync_write
Builds a "Sync_Write" broadcast instruction. https://emanual.robotis.com/docs/en/dxl/protocol2/#sync-write-0x83 The paramete
experiments/lerobot/tests/mocks/mock_dynamixel.py:298
↓ 1 callers
Function
synchronize_value
(value: V, device: torch.device)
experiments/olmo/torch_util.py:199
↓ 1 callers
Function
table_string
Table as listoflists to evenly spaces string
experiments/olmo/util.py:599
↓ 1 callers
Function
teleop_loop
This function continuously reads actions from a teleoperation device, processes them through optional pipelines, sends them to a robot, and o
experiments/lerobot/src/lerobot/scripts/lerobot_teleoperate.py:127
↓ 1 callers
Function
temp_compass_score
( prediction: str, metadata: dict, openai_api_key: str, use_api: bool = True, )
experiments/olmo/eval/temp_compass_utils.py:260
↓ 1 callers
Method
template_options
(self, example, is_training, rng)
experiments/olmo/models/molmo/data_formatter.py:881
↓ 1 callers
Function
test_damiao_motor
()
experiments/lerobot/tests/motors/test_damiao.py:15
↓ 1 callers
Function
test_interface
Test all motors on a CAN interface.
experiments/lerobot/src/lerobot/scripts/lerobot_setup_can.py:162
↓ 1 callers
Function
test_is_counting_question
()
experiments/olmo/data/detecting_counting_question.py:103
↓ 1 callers
Function
timestep_embedding
Create sinusoidal timestep embeddings. Parameters ---------- t : torch.Tensor Shape [B]. Each element is a timestep index, m
experiments/lerobot/src/lerobot/policies/xvla/soft_transformer.py:183
↓ 1 callers
Method
to_bfloat16_for_selected_params
(self, precision: Literal["bfloat16", "float32"] = "bfloat16")
experiments/lerobot/src/lerobot/policies/pi0/modeling_pi0.py:400
↓ 1 callers
Method
to_bfloat16_for_selected_params
(self, precision: Literal["bfloat16", "float32"] = "bfloat16")
experiments/lerobot/src/lerobot/policies/pi0_fast/modeling_pi0_fast.py:232
↓ 1 callers
Method
to_bfloat16_for_selected_params
(self)
experiments/lerobot/src/lerobot/policies/wall_x/modeling_wall_x.py:427
↓ 1 callers
Method
to_bfloat16_for_selected_params
(self, precision: Literal["bfloat16", "float32"] = "bfloat16")
experiments/lerobot/src/lerobot/policies/pi05/modeling_pi05.py:397
↓ 1 callers
Method
to_dict
(self)
experiments/lerobot/src/lerobot/teleoperators/unitree_g1/exo_calib.py:68
↓ 1 callers
Function
to_hwc_uint8_numpy
(chw_float32_torch: torch.Tensor)
experiments/lerobot/src/lerobot/scripts/lerobot_dataset_viz.py:79
↓ 1 callers
Function
to_numpy_image
Convert image tensor to numpy uint8 (H, W, C).
experiments/lerobot/src/lerobot/policies/sarm/compute_rabc_weights.py:119
↓ 1 callers
Function
to_rgb
(pil_image: Image.Image)
experiments/lerobot/src/lerobot/policies/groot/eagle2_hg_model/processing_eagle2_5_vl.py:43
↓ 1 callers
Function
token_type_ids_mask_function
This function adds the correct offsets to the `q_idx` and `kv_idx` as the torch API can only accept lengths, not start and end indices.
experiments/olmo/hf_model/modeling_molmoact2.py:2739
← previous
next →
3,601–3,700 of 8,779, ranked by callers