MCPcopy Create free account

hub / github.com/allenai/molmoact2 / functions

Functions8,779 in github.com/allenai/molmoact2

↓ 1 callersFunctionparse_llm_output
(llm_output: str, gt_answer: str)
experiments/olmo/eval/temp_compass_utils.py:110
↓ 1 callersMethodparse_mcq_lines
Assumes: - line 1 = question - lines 2..n = options (one per line) Accepts options like "(A) foo", "A) foo", "A.
experiments/olmo/data/video_datasets.py:711
↓ 1 callersFunctionparse_point_tuples
Parse point tuples from string format like '[(0.461, 0.527), (0.498, 0.521)]' Returns numpy array of shape (N, 2) with values in 0-1 range.
experiments/olmo/data/spatial_datasets.py:70
↓ 1 callersFunctionparse_result
(id_, question, response, all_choices, index2ans, gt)
experiments/olmo/eval/tomato_eval.py:74
↓ 1 callersMethodparse_segments
Parse temporal segments from text output. Expected format: "[start1-end1], [start2-end2], ..." Returns a list of [start, end]
experiments/olmo/eval/evaluators.py:1168
↓ 1 callersFunctionparse_single_point_prediction_to_point_trajectory
Parse single_point_track_per_frame model output. Expected format matches data_formatter.py: "[x, y, time], [x, y, time], [x, y, time
experiments/olmo/eval/object_tracking_utils.py:453
↓ 1 callersFunctionparse_tracking_prediction_to_point_trajectory
Extracts point coordinates and timestamps from raw text predictions and calculates frame indices based on video FPS. Converts into s
experiments/olmo/eval/object_tracking_utils.py:347
↓ 1 callersFunctionparse_tracking_prediction_with_occlusion_to_point_trajectory
( prediction_text: str, video_width: int, video_height: int, video_fps: int )
experiments/olmo/eval/point_tracking_utils.py:142
↓ 1 callersMethodparse_video_point_ground_start_end
(text, width, height, video_fps)
experiments/olmo/eval/object_tracking_utils.py:93
↓ 1 callersMethodparse_video_point_track_all_frames_with_occlusion
(text, width, height, video_fps)
experiments/olmo/eval/point_tracking_utils.py:52
↓ 1 callersMethodparse_video_point_track_per_frame
(text, width, height, video_fps)
experiments/olmo/eval/object_tracking_utils.py:87
↓ 1 callersMethodparse_video_single_point_track_per_frame
(text, width, height, video_fps)
experiments/olmo/eval/object_tracking_utils.py:99
↓ 1 callersFunctionpatch_setPacketTimeout
HACK: This patches the PortHandler behavior to set the correct packet timeouts. It fixes https://gitee.com/ftservo/SCServoSDK/issues/IBY2S6
experiments/lerobot/src/lerobot/motors/feetech/feetech.py:85
↓ 1 callersMethodpeek_ahead
Look `n` items ahead (n=1 == next item) without moving the cursor. Fills the ahead buffer if necessary.
experiments/lerobot/src/lerobot/datasets/utils.py:1319
↓ 1 callersMethodpeek_back
Look `n` items back (n=1 == previous item) without moving the cursor.
experiments/lerobot/src/lerobot/datasets/utils.py:1310
↓ 1 callersFunctionpeft_fsdp2_linear_shape_compat
(enabled: bool)
experiments/olmo/train/peft_compat.py:11
↓ 1 callersMethodpercentile
Return the q-quantile (q in [0,1]) of recorded latencies or None if empty.
experiments/lerobot/src/lerobot/policies/rtc/latency_tracker.py:58
↓ 1 callersMethodping
Ping a single motor and return its model number. Args: motor (NameOrID): Target motor (name or ID). num_retry (int, o
experiments/lerobot/src/lerobot/motors/motors_bus.py:932
↓ 1 callersMethodping
(self)
examples/yam/camera_client.py:79
↓ 1 callersMethodpixel_shuffle
(self, x, scale_factor=0.5)
experiments/lerobot/src/lerobot/policies/groot/eagle2_hg_model/modeling_eagle2_5_vl.py:287
↓ 1 callersMethodplan
Plan sequence of actions using TD-MPC inference. Args: z: (batch, latent_dim,) tensor for the initial state. Returns:
experiments/lerobot/src/lerobot/policies/tdmpc/modeling_tdmpc.py:166
↓ 1 callersMethodplot_final_actions_comparison
Plot final action predictions comparison on a single chart. Args: rtc_actions: Final actions from RTC policy no_rtc_a
experiments/lerobot/examples/rtc/eval_dataset.py:555
↓ 1 callersMethodplot_tracked_data
(self, rtc_tracked_steps, no_rtc_tracked_steps, prev_chunk_left_over, num_steps)
experiments/lerobot/examples/rtc/eval_dataset.py:672
↓ 1 callersMethodpoints_to_text
(self, points, scale, label_text, alt_text)
experiments/olmo/preprocessing/point_formatter.py:839
↓ 1 callersMethodpostprocess
Default: return unchanged.
experiments/lerobot/src/lerobot/policies/xvla/action_hub.py:96
↓ 1 callersFunctionpre_parser
(response, all_choices, index2ans)
experiments/olmo/eval/tomato_eval.py:51
↓ 1 callersFunctionpredict_action
Performs a single-step inference to predict a robot action from an observation. This function encapsulates the full inference pipeline:
experiments/lerobot/src/lerobot/utils/control_utils.py:67
↓ 1 callersMethodpredict_action
Predict actions using specified prediction mode. Args: predict_mode (str): Prediction mode, either "fast" or "diffusion"
experiments/lerobot/src/lerobot/policies/wall_x/modeling_wall_x.py:965
↓ 1 callersMethodpredict_action_chunk
Predict a chunk of actions given environment observations.
experiments/lerobot/src/lerobot/policies/diffusion/modeling_diffusion.py:94
↓ 1 callersMethodpredict_action_chunk
(self, batch: dict[str, Tensor])
experiments/lerobot/src/lerobot/policies/vqbet/modeling_vqbet.py:119
↓ 1 callersMethodpredict_action_chunk
Predict a chunk of actions given environment observations.
experiments/lerobot/src/lerobot/policies/tdmpc/modeling_tdmpc.py:107
↓ 1 callersMethodpredict_action_chunk
Predict a chunk of actions given environment observations.
experiments/lerobot/src/lerobot/policies/pi0_fast/modeling_pi0_fast.py:1282
↓ 1 callersMethodpredict_action_chunk
Predict action chunk for evaluation.
experiments/lerobot/src/lerobot/policies/wall_x/modeling_wall_x.py:1970
↓ 1 callersMethodpredict_action_chunk
Predict a chunk of actions for inference by delegating to Isaac-GR00T. Returns a tensor of shape (B, n_action_steps, action_dim).
experiments/lerobot/src/lerobot/policies/groot/modeling_groot.py:254
↓ 1 callersMethodpreload_annotated_tasks
(self)
experiments/olmo/data/lerobot_wrapper.py:2018
↓ 1 callersMethodprepare_action
Pad action
experiments/lerobot/src/lerobot/policies/pi0/modeling_pi0.py:1237
↓ 1 callersMethodprepare_action
Pad action
experiments/lerobot/src/lerobot/policies/smolvla/modeling_smolvla.py:477
↓ 1 callersMethodprepare_action
Pad action
experiments/lerobot/src/lerobot/policies/pi05/modeling_pi05.py:1208
↓ 1 callersFunctionprepare_action_for_discrete_tokenizer
(action: Optional[np.ndarray])
experiments/olmo/extra_tokens.py:140
↓ 1 callersMethodprepare_data_for_hota
Convert trajectory data to HOTA format. Returns: data: dict with keys needed for HOTA computation
experiments/olmo/eval/object_tracking_utils.py:791
↓ 1 callersMethodprepare_input
(self, obs, instruction)
examples/yam/molmoact_client.py:91
↓ 1 callersMethodprepare_rope_cache
( self, *, device: Union[str, torch.device], max_seq_len: Optional[int] = None
experiments/olmo/hf_model/modeling_molmoact2.py:2584
↓ 1 callersMethodprepare_state_dict_for_loading
Add cleaned-code compatibility keys that older MolmoAct2 checkpoints do not contain.
experiments/olmo/nn/action_expert.py:658
↓ 1 callersMethodprepare_tokens_with_masks
(self, x: Tensor)
experiments/scripts/generate_depth_annotation.py:274
↓ 1 callersMethodpreprocess_example
Preprocess a single example from the dataset to tracking data format. Returns: frame_trajectories: List of frame
experiments/olmo/data/video_object_tracking_datasets.py:1226
↓ 1 callersFunctionpreprocesser_call
Unified preprocessing function for Wall-X model handling text, image and video inputs. Processes inputs into format suitable for multimodal trans
experiments/lerobot/src/lerobot/policies/wall_x/utils.py:107
↓ 1 callersFunctionprocessDigitArticle
(inText)
experiments/olmo/eval/vqa.py:73
↓ 1 callersFunctionprocessPunctuation
(inText)
experiments/olmo/eval/vqa.py:62
↓ 1 callersFunctionprocess_action
(action)
experiments/olmo/hf_datasets/android_control.py:130
↓ 1 callersFunctionprocess_camera_image
Capture and process an image from a single camera.
experiments/lerobot/src/lerobot/scripts/lerobot_find_cameras.py:192
↓ 1 callersFunctionprocess_data
(data_files: Dict[str, str])
experiments/olmo/hf_datasets/android_control.py:33
↓ 1 callersFunctionprocess_episode
Process single episode and return action chunks.
experiments/lerobot/src/lerobot/scripts/lerobot_train_tokenizer.py:186
↓ 1 callersFunctionprocess_episode_frames
( bgr_images: list[np.ndarray], depth_model: DepthAnythingV2, vae: VQVAE, *, vae_image_siz
experiments/scripts/generate_depth_annotation.py:944
↓ 1 callersFunctionprocess_grounding_points
Process grounding point coordinates in text based on image resizing. Adjusts coordinate values in <point> tags to match resized image dimensions
experiments/lerobot/src/lerobot/policies/wall_x/utils.py:265
↓ 1 callersFunctionprocess_interaction_message
Process a single interaction message with consistent handling.
experiments/lerobot/src/lerobot/rl/learner.py:1111
↓ 1 callersFunctionprocess_interaction_messages
Process all available interaction messages from the queue. Args: interaction_message_queue: Queue for receiving interaction messages
experiments/lerobot/src/lerobot/rl/learner.py:1169
↓ 1 callersFunctionprocess_parquet_file
( *, parquet_path: Path, output_path: Path, dataset_root: Path, info: dict[str, Any],
experiments/scripts/generate_depth_annotation.py:1139
↓ 1 callersMethodprocess_qo
(self, question: str, options: List[str] | None)
experiments/olmo/data/academic_datasets.py:1503
↓ 1 callersFunctionprocess_single_episode
Process a single episode and return its statistics. Args: dataset: The LeRobot dataset episode_idx: Index of the episode to proce
experiments/lerobot/src/lerobot/datasets/v30/augment_dataset_quantile_stats.py:75
↓ 1 callersFunctionprocess_transitions
Process all available transitions from the queue. Args: transition_queue: Queue for receiving transitions from the actor replay_b
experiments/lerobot/src/lerobot/rl/learner.py:1126
↓ 1 callersFunctionprocess_video_clips
Process all clips for a single video in parallel. Args: video_data (tuple): Tuple of (video_path, clips_list) output_path (s
experiments/scripts/extract_ego4d_clips.py:124
↓ 1 callersMethodprocess_vision_info
( self, conversations: list[dict] | list[list[dict]], return_video_kwargs: bool = Fals
experiments/lerobot/src/lerobot/policies/groot/eagle2_hg_model/processing_eagle2_5_vl.py:472
↓ 1 callersFunctionprompt_instruction
Ask user for the task instruction for this rollout. Empty input → reuse ``last_prompt``.
examples/yam/eval_utils.py:485
↓ 1 callersFunctionprompt_label
DROID-style label prompt for timeout-ended rollouts. Returns ``"success"`` / ``"failure"`` / ``None`` (keep as eval). Reprompts on any other
examples/yam/eval_utils.py:497
↓ 1 callersMethodprune_with_scorer
Score tokens based on results from `TemporalTokenScorer`, then sort them by topk to prune them. Args: x (torch.Tensor): The input
experiments/olmo/nn/temporal_image_vit.py:497
↓ 1 callersMethodpull_from_repo
( self, allow_patterns: list[str] | str | None = None, ignore_patterns: list[str] | st
experiments/lerobot/src/lerobot/datasets/lerobot_dataset.py:171
↓ 1 callersMethodpull_from_repo
( self, allow_patterns: list[str] | str | None = None, ignore_patterns: list[str] | st
experiments/lerobot/src/lerobot/datasets/lerobot_dataset.py:851
↓ 1 callersMethodqa_template
(option_candidates, correct_choice, question)
experiments/olmo/data/video_datasets.py:229
↓ 1 callersMethodqa_template
(self, data)
experiments/olmo/data/video_datasets.py:749
↓ 1 callersMethodqa_template
(self, qa_data)
experiments/olmo/data/video_datasets.py:811
↓ 1 callersMethodqa_template
(self, data)
experiments/olmo/data/video_datasets.py:1456
↓ 1 callersMethodqa_template
(data)
experiments/olmo/data/video_datasets.py:1625
↓ 1 callersMethodqo_template
(self, question, options, format: str, sep: str = ".")
experiments/olmo/data/academic_datasets.py:951
↓ 1 callersMethodqo_template
(self, question: str, question_type: str, options: Optional[List[str]] = None)
experiments/olmo/data/video_datasets.py:6594
↓ 1 callersFunctionquat2axisangle
Converts quaternion to axis-angle format. Returns a unit vector direction scaled by its angle in radians. Args: quat (np.array):
experiments/lerobot/src/lerobot/policies/xvla/utils.py:47
↓ 1 callersMethodquestion_template
(self, question, options, question_type)
experiments/olmo/data/academic_datasets.py:1025
↓ 1 callersMethodquestion_template
(self, question, format)
experiments/olmo/data/academic_datasets.py:1103
↓ 1 callersMethodquestion_template
(self, question, options, format: str, sep: str = ".")
experiments/olmo/data/academic_datasets.py:1198
↓ 1 callersMethodquestion_template
(self, question, options)
experiments/olmo/data/video_datasets.py:1185
↓ 1 callersMethodquestion_template
(self, question, options)
experiments/olmo/data/video_datasets.py:1243
↓ 1 callersMethodquestion_template
(self, question, task)
experiments/olmo/data/video_datasets.py:1314
↓ 1 callersFunctionraise_feature_mismatch_error
Raises a standardized ValueError for feature mismatches between dataset/environment and policy config.
experiments/lerobot/src/lerobot/policies/utils.py:204
↓ 1 callersFunctionrandom_prune
Randomly prune tokens for sanity check. Args: valid_mask (torch.Tensor): A mask indicating valid tokens. num_to_prune (torch
experiments/olmo/nn/temporal_image_vit.py:959
↓ 1 callersFunctionrank0_resource_path
Call `resource_path` with the given args for the rank0 process, other ranks will wait until rank0 is done downloading. Should be called
experiments/olmo/util.py:422
↓ 1 callersMethodread
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/zmq/camera_zmq.py:215
↓ 1 callersMethodread
Reads a single frame synchronously from the camera. This method retrieves the most recent frame available in Reachy 2's low-level so
experiments/lerobot/src/lerobot/cameras/reachy2_camera/reachy2_camera.py:128
↓ 1 callersMethodread
Reads a single frame (color) synchronously from the camera. This is a blocking call. It waits for a coherent set of frames (color)
experiments/lerobot/src/lerobot/cameras/realsense/camera_realsense.py:375
↓ 1 callersMethodreadPort
(self, length)
experiments/lerobot/src/lerobot/motors/motors_bus.py:202
↓ 1 callersMethodread_calibration
(self)
experiments/lerobot/src/lerobot/motors/feetech/feetech.py:251
↓ 1 callersMethodread_calibration
(self)
experiments/lerobot/src/lerobot/motors/dynamixel/dynamixel.py:174
↓ 1 callersMethodread_depth
Reads a single frame (depth) synchronously from the camera. This is a blocking call. It waits for a coherent set of frames (depth)
experiments/lerobot/src/lerobot/cameras/realsense/camera_realsense.py:323
↓ 1 callersFunctionread_joint_point
(raw16: list[int], pair: tuple[int, int])
experiments/lerobot/src/lerobot/teleoperators/unitree_g1/exo_calib.py:168
↓ 1 callersMethodread_latest
Return the most recent frame captured immediately (Peeking). This method is non-blocking and returns whatever is currently in the mem
experiments/lerobot/src/lerobot/cameras/opencv/camera_opencv.py:533
↓ 1 callersMethodread_latest
Return the most recent (color) frame captured immediately (Peeking). This method is non-blocking and returns whatever is currently in the
experiments/lerobot/src/lerobot/cameras/realsense/camera_realsense.py:576
↓ 1 callersFunctionread_long_description
Read and return the project's long description for setup. This function reads `README.md` and replaces image links that point to the local `.
experiments/lerobot/setup.py:43
↓ 1 callersFunctionreal_world_qa_score
( target: str, prediction: str, metadata: dict, )
experiments/olmo/eval/vqa.py:322
↓ 1 callersFunctionreduce_a11y_tree
(a11y_tree)
experiments/olmo/hf_datasets/android_control_utils.py:157
↓ 1 callersFunctionreformat_webm_to_mp4_if_needed
Reformats a WebM file to MP4 format. Args: input_path (str): Path to the input WebM file. Returns: str: The path to the
experiments/olmo/data/video_datasets.py:169
↓ 1 callersFunctionrelaxed_correctness
Calculates relaxed correctness. The correctness tolerates certain error ratio defined by max_relative_change. See https://arxiv.org/pdf/2203.
experiments/olmo/eval/vqa.py:185
↓ 1 callersFunctionremove_duplicates
(a11y_tree)
experiments/olmo/hf_datasets/android_control_utils.py:224
← previousnext →3,401–3,500 of 8,779, ranked by callers