MCPcopy Create free account

hub / github.com/allenai/molmoact2 / functions

Functions8,779 in github.com/allenai/molmoact2

↓ 1 callersMethodbuild_batched_images
( self, input_ids: torch.LongTensor, pixel_values: torch.Tensor, image_token_p
experiments/olmo/hf_model/modeling_molmoact2.py:3288
↓ 1 callersMethodbuild_batched_videos
( self, input_ids: torch.LongTensor, pixel_values_videos: torch.Tensor, video_
experiments/olmo/hf_model/modeling_molmoact2.py:3461
↓ 1 callersMethodbuild_box_output
Build final box output based on mode. Args: box_str: Formatted box string count: Number of boxes
experiments/olmo/preprocessing/box_formatter.py:152
↓ 1 callersMethodbuild_box_str_from_coord_str
Build <boxes coords="...">label</boxes> string. Args: label: Text label alt_text: Alternative text (optional
experiments/olmo/preprocessing/box_formatter.py:126
↓ 1 callersFunctionbuild_data_mixture_checkpoint
( worker_states: List[WorkerState], world_size: int, num_workers: int, next_worker_id: int, )
experiments/olmo/train/trainer.py:119
↓ 1 callersFunctionbuild_discrete_action_string
(token_ids: Sequence[int])
experiments/olmo/extra_tokens.py:117
↓ 1 callersFunctionbuild_discrete_action_string_from_action
( action: Optional[np.ndarray], processor: Any, *, max_token_id: Optional[int] = None, on_
experiments/olmo/extra_tokens.py:194
↓ 1 callersFunctionbuild_final_text_input
( *, task: str, normalized_states: Any = None, style: str = "robot_action", setup_type: st
experiments/lerobot/src/lerobot/policies/molmoact2/prompt_utils.py:192
↓ 1 callersFunctionbuild_formatted_messages
( *, task: str, normalized_states: Any = None, style: str = "robot_action", setup_type: st
experiments/lerobot/src/lerobot/policies/molmoact2/prompt_utils.py:126
↓ 1 callersMethodbuild_input_embeddings
( self, input_ids: torch.LongTensor, images: Optional[torch.FloatTensor] = None, # im
experiments/olmo/hf_model/modeling_molmoact2.py:3613
↓ 1 callersFunctionbuild_instruction_templates
(question: str, options: str, option_type)
experiments/olmo/preprocessing/multiple_choice_templates.py:90
↓ 1 callersFunctionbuild_no_visible_initial_point_error
(example: Dict[str, Any])
experiments/olmo/models/molmo/data_formatter.py:26
↓ 1 callersFunctionbuild_option_instructions
(option_type)
experiments/olmo/preprocessing/multiple_choice_templates.py:31
↓ 1 callersFunctionbuild_option_name_instructions
(option_type)
experiments/olmo/preprocessing/multiple_choice_templates.py:9
↓ 1 callersFunctionbuild_option_name_templates
(question: str, options: str, option_type)
experiments/olmo/preprocessing/multiple_choice_templates.py:76
↓ 1 callersFunctionbuild_option_templates
(q, opts, instr)
experiments/olmo/preprocessing/multiple_choice_templates.py:56
↓ 1 callersFunctionbuild_overlapping_crops
Decompose an image into a set of overlapping crops :return crop_arr: [n_crops, h, w, 3] The crops :return patch_idx: [overlap_patch_h, overla
experiments/olmo/hf_model/image_processing_molmoact2.py:128
↓ 1 callersMethodbuild_overlapping_crops
Decompose an image into a set of overlapping crops :return crop_arr: [n_crops, h, w, 3] The crops :return mask_arr: [n_crops, h, w] T
experiments/olmo/preprocessing/image_preprocessor.py:474
↓ 1 callersMethodbuild_preprocessor
(self)
experiments/olmo/nn/vision_backbone.py:113
↓ 1 callersFunctionbuild_qualitative_table
( name, split, n, preprocessor, shuffle=True, show_patches=False, show_crops=False
experiments/scripts/dataset_visualize.py:32
↓ 1 callersFunctionbuild_resized_image
( image: np.ndarray, base_image_input_size: list[int], resample: PILImageResampling, image_mea
experiments/olmo/hf_model/video_processing_molmoact2.py:106
↓ 1 callersMethodbuild_single_image_box_coordinates
Build coordinate string for boxes: idx x1 y1 x2 y2 ... Args: rng: Random number generator boxes: Array of sh
experiments/olmo/preprocessing/box_formatter.py:62
↓ 1 callersFunctionbuild_subsegment_pos_ids
(subsegments)
experiments/olmo/preprocessing/text_preprocessor.py:14
↓ 1 callersFunctionbuild_video_asset
(video_src, src_folder, clip=None)
experiments/olmo/html_utils.py:186
↓ 1 callersMethodbuild_video_loader
(self)
experiments/olmo/data/video_loader.py:291
↓ 1 callersFunctionbuild_video_src
(video_src, src_folder, clip=None)
experiments/olmo/html_utils.py:163
↓ 1 callersMethodbuild_video_track_coordinates
(self, frames_data: List[PointTrajectoryEntry], scale, skip_occluded=True)
experiments/olmo/preprocessing/point_formatter.py:270
↓ 1 callersFunctionbuild_world_mesh
Build a :class:`~torch.distributed.device_mesh.DeviceMesh` suitable for the given parallel strategies. .. seealso:: Pass the mesh cr
experiments/olmo/dist_util.py:426
↓ 1 callersMethodbulid
(self, text_max_len, image_max_len)
experiments/olmo/data/dynamic_packer.py:264
↓ 1 callersMethodcalibrate
Calibrate the robot if applicable. If not, this should be a no-op. This method should collect any necessary data (e.g., motor offset
experiments/lerobot/src/lerobot/robots/robot.py:142
↓ 1 callersMethodcalibrate
(self)
experiments/lerobot/src/lerobot/robots/hope_jr/hope_jr_arm.py:107
↓ 1 callersMethodcalibrate
(self)
experiments/lerobot/src/lerobot/robots/hope_jr/hope_jr_hand.py:138
↓ 1 callersMethodcalibrate
(self)
experiments/lerobot/src/lerobot/robots/lekiwi/lekiwi.py:131
↓ 1 callersMethodcalibrate
Calibration not needed for SDK-based robot.
experiments/lerobot/src/lerobot/robots/earthrover_mini_plus/robot_earthrover_mini_plus.py:132
↓ 1 callersMethodcalibrate
(self)
experiments/lerobot/src/lerobot/robots/so_follower/so_follower.py:111
↓ 1 callersMethodcalibrate
Run calibration procedure for OpenArms robot. The calibration procedure: 1. Disable torque 2. Ask user to position a
experiments/lerobot/src/lerobot/robots/openarm_follower/openarm_follower.py:159
↓ 1 callersMethodcalibrate
(self)
experiments/lerobot/src/lerobot/robots/koch_follower/koch_follower.py:111
↓ 1 callersMethodcalibrate
(self)
experiments/lerobot/src/lerobot/robots/omx_follower/omx_follower.py:113
↓ 1 callersMethodcalibrate
(self)
experiments/lerobot/src/lerobot/teleoperators/homunculus/homunculus_arm.py:115
↓ 1 callersMethodcalibrate
(self)
experiments/lerobot/src/lerobot/teleoperators/homunculus/homunculus_glove.py:141
↓ 1 callersMethodcalibrate
(self)
experiments/lerobot/src/lerobot/teleoperators/koch_leader/koch_leader.py:88
↓ 1 callersMethodcalibrate
(self)
experiments/lerobot/src/lerobot/teleoperators/omx_leader/omx_leader.py:87
↓ 1 callersMethodcalibrate
(self)
experiments/lerobot/src/lerobot/teleoperators/phone/teleop_phone.py:97
↓ 1 callersMethodcalibrate
(self)
experiments/lerobot/src/lerobot/teleoperators/phone/teleop_phone.py:238
↓ 1 callersMethodcalibrate
(self)
experiments/lerobot/src/lerobot/teleoperators/so_leader/so_leader.py:84
↓ 1 callersMethodcalibrate
Run calibration procedure for OpenArm Mini. 1. Disable torque 2. Ask user to position arms in hanging position with grippers
experiments/lerobot/src/lerobot/teleoperators/openarm_mini/openarm_mini.py:130
↓ 1 callersMethodcalibrate
Run calibration procedure for OpenArms leader. The calibration procedure: 1. Disable torque (if not already disabled)
experiments/lerobot/src/lerobot/teleoperators/openarm_leader/openarm_leader.py:119
↓ 1 callersMethodcalibrate
(self)
experiments/lerobot/tests/mocks/mock_teleop.py:82
↓ 1 callersMethodcalibrate
(self)
experiments/lerobot/tests/mocks/mock_robot.py:112
↓ 1 callersFunctioncall_azure_gpt_api
(events, reference, prediction, openai_api_key, maxtry: int = 100)
experiments/olmo/eval/dream_caption_utils.py:73
↓ 1 callersFunctioncall_azure_gpt_api_for_events
(caption, openai_api_key, maxtry: int = 100)
experiments/olmo/eval/dream_caption_utils.py:127
↓ 1 callersMethodcan_peek_ahead
Check if we can peek ahead `steps` items. This may involve trying to fill the ahead buffer.
experiments/lerobot/src/lerobot/datasets/utils.py:1357
↓ 1 callersMethodcan_peek_back
Check if we can go back `steps` items without raising an IndexError.
experiments/lerobot/src/lerobot/datasets/utils.py:1351
↓ 1 callersMethodcan_use
( self, next_input_ids: torch.Tensor, *, past_key_values: Cache, atten
experiments/olmo/hf_model/inference.py:284
↓ 1 callersMethodcan_use_action_flow
(self, inputs: _ActionFlowInputs)
experiments/olmo/hf_model/inference.py:177
↓ 1 callersFunctioncausal_attention_bias
(seq_len: int, device: torch.device)
experiments/olmo/nn/llm.py:1562
↓ 1 callersMethodcheck
(self, device)
experiments/olmo/train/trainer.py:331
↓ 1 callersMethodcheck
(self)
experiments/olmo/train/trainer.py:384
↓ 1 callersMethodcheck
(self)
experiments/olmo/train/trainer.py:399
↓ 1 callersFunctioncheck_datasets_formats
(repo_ids: list)
experiments/lerobot/benchmarks/video/run_video_benchmark.py:70
↓ 1 callersFunctioncheck_env_attributes_and_types
(env: gym.vector.VectorEnv)
experiments/lerobot/src/lerobot/envs/utils.py:138
↓ 1 callersMethodcheck_forward_kwargs
(self)
experiments/lerobot/src/lerobot/policies/groot/eagle2_hg_model/modeling_eagle2_5_vl.py:163
↓ 1 callersMethodcheck_if_cancelled
(self)
experiments/olmo/train/trainer.py:2291
↓ 1 callersFunctioncheck_is_number
Check if the given string a number.
experiments/olmo/eval/mmmu_eval_utils.py:99
↓ 1 callersFunctioncheckpoint_llm_token_layout
(checkpoint_dir: str | None)
experiments/olmo/token_layout.py:138
↓ 1 callersFunctioncider_metric
(preds: List[str], gts: List[List[str]])
experiments/olmo/eval/evaluators.py:2620
↓ 1 callersFunctionclean_state_dict
Remove a substring (e.g. '._orig_mod') from all keys in a state dict. Args: state_dict (dict): The original state dict. remo
experiments/lerobot/src/lerobot/processor/migrate_policy_normalization.py:286
↓ 1 callersFunctioncleanup_cameras
Disconnect all cameras.
experiments/lerobot/src/lerobot/scripts/lerobot_find_cameras.py:219
↓ 1 callersFunctioncleanup_local_dirs
Delete local source and converted dataset directories.
examples/yam/lerobot_convert.py:515
↓ 1 callersMethodclearPort
(self)
experiments/lerobot/src/lerobot/motors/motors_bus.py:196
↓ 1 callersFunctionclip_grad_norm
(parameters, max_grad_norm: float, norm_type: float = 2.0, foreach: Optional[bool] = None)
experiments/olmo/torch_util.py:255
↓ 1 callersFunctioncmd_forward_loop
Receive commands from ZMQ and forward to DDS.
experiments/lerobot/src/lerobot/robots/unitree_g1/run_g1_server.py:128
↓ 1 callersFunctioncollate
(features: list[dict[str, Any]], eagle_processor: ProcessorMixin)
experiments/lerobot/src/lerobot/policies/groot/processor_groot.py:499
↓ 1 callersFunctioncollect_torchcodec_runtime_info
()
experiments/olmo/torchcodec_utils.py:73
↓ 1 callersMethodcommand_joint_pos
(self, target_pos)
examples/yam/gello_min/yam.py:80
↓ 1 callersMethodcompile_args
(self)
experiments/olmo/train/trainer_config.py:96
↓ 1 callersMethodcomplementary_data
Processes a 'complementary_data' dictionary. Subclasses must implement this method. Args: complementary_data: The input 'compleme
experiments/lerobot/src/lerobot/processor/pipeline.py:1677
↓ 1 callersMethodcompute_batch_weights
Compute RA-BC weights for a batch. For each sample: 1. Get progress at current frame 2. Get progress at frame + chun
experiments/lerobot/src/lerobot/utils/rabc.py:149
↓ 1 callersFunctioncompute_compression_stats
Compute compression statistics.
experiments/lerobot/src/lerobot/scripts/lerobot_train_tokenizer.py:336
↓ 1 callersMethodcompute_dense_reward
(self, obs: Any, action: torch.Tensor, info: dict)
sim_eval/tasks/droid_tasks/droid_put_everything_in_box.py:200
↓ 1 callersMethodcompute_dense_reward
(self, obs: Any, action: torch.Tensor, info: dict)
sim_eval/tasks/yam_tasks/bimanual_put_everything_in_box.py:210
↓ 1 callersMethodcompute_hota
Compute HOTA metrics given prepared data. Adapted from TrackEval HOTA implementation.
experiments/olmo/eval/object_tracking_utils.py:890
↓ 1 callersFunctioncompute_iou
(bbox1: list, bbox2: list, verbose: bool=False)
experiments/olmo/eval/evaluators.py:1067
↓ 1 callersMethodcompute_iou
Compute IoU (Intersection over Union) between two temporal segments.
experiments/olmo/eval/evaluators.py:1192
↓ 1 callersFunctioncompute_layer_complete
( layer_idx, inputs_embeds, attention_mask, position_ids, adarms_cond, paligemma, gemma_expert )
experiments/lerobot/src/lerobot/policies/pi0/modeling_pi0.py:229
↓ 1 callersFunctioncompute_layer_complete
( layer_idx, inputs_embeds, attention_mask, position_ids, adarms_cond, paligemma, gemma_expert )
experiments/lerobot/src/lerobot/policies/pi05/modeling_pi05.py:226
↓ 1 callersMethodcompute_loss
This function expects `batch` to have (at least): { "observation.state": (B, n_obs_steps, state_dim) "observ
experiments/lerobot/src/lerobot/policies/diffusion/modeling_diffusion.py:311
↓ 1 callersMethodcompute_loss_actor
( self, observations, observation_features: Tensor | None = None, )
experiments/lerobot/src/lerobot/policies/sac/modeling_sac.py:375
↓ 1 callersMethodcompute_loss_critic
( self, observations, actions, rewards, next_observations, don
experiments/lerobot/src/lerobot/policies/sac/modeling_sac.py:247
↓ 1 callersMethodcompute_loss_discrete_critic
( self, observations, actions, rewards, next_observations, don
experiments/lerobot/src/lerobot/policies/sac/modeling_sac.py:308
↓ 1 callersMethodcompute_loss_temperature
Compute the temperature loss
experiments/lerobot/src/lerobot/policies/sac/modeling_sac.py:367
↓ 1 callersMethodcompute_metrics
Compute precision, recall, and F1 score for predicted segments. Uses IoU threshold to determine if a prediction matches a ground trut
experiments/olmo/eval/evaluators.py:1213
↓ 1 callersFunctioncompute_precision
(row_ind: np.ndarray, col_ind: np.ndarray, preds: np.ndarray, masks: List[np.ndarray])
experiments/olmo/eval/evaluators.py:372
↓ 1 callersFunctioncompute_precision
Compute precision: correctly placed points / total predicted points. (Adapted from olmo.eval.evaluators.py)
experiments/olmo/eval/object_tracking_utils.py:528
↓ 1 callersFunctioncompute_precision_tublet
(row_ind: np.ndarray, col_ind: np.ndarray, preds: np.ndarray, masks_list: List[Dict[float, np.ndarray]])
experiments/olmo/eval/evaluators.py:3282
↓ 1 callersFunctioncompute_quantile_stats_for_dataset
Compute quantile statistics for all episodes in the dataset. Args: dataset: The LeRobot dataset to compute statistics for Returns:
experiments/lerobot/src/lerobot/datasets/v30/augment_dataset_quantile_stats.py:129
↓ 1 callersFunctioncompute_recall
(row_ind: np.ndarray, col_ind: np.ndarray, preds: np.ndarray, masks: List[np.ndarray])
experiments/olmo/eval/evaluators.py:380
↓ 1 callersFunctioncompute_recall
Compute recall: correctly placed points / total ground truth points. (Adapted from olmo.eval.evaluators.py)
experiments/olmo/eval/object_tracking_utils.py:544
↓ 1 callersFunctioncompute_recall_tublet
(row_ind: np.ndarray, col_ind: np.ndarray, preds: np.ndarray, masks_list: List[Dict[float, np.ndarray]])
experiments/olmo/eval/evaluators.py:3289
↓ 1 callersMethodcompute_rope_parameters
( self, seq_len: int, dim: int, device: torch.device, rope_type: RopeT
experiments/olmo/nn/llm.py:1244
← previousnext →2,601–2,700 of 8,779, ranked by callers