MCPcopy Create free account

hub / github.com/allenai/molmoact2 / functions

Functions8,779 in github.com/allenai/molmoact2

↓ 2 callersFunctiondownload_dataset
Pre-download dataset to avoid race conditions in multi-GPU training. Args: repo_id: HuggingFace dataset repository ID episod
experiments/lerobot/tests/training/test_multi_gpu.py:46
↓ 2 callersFunctiondraw_abc_labels
(image_f, annotations, mode="in_box", use_transparent=False)
experiments/olmo/hf_datasets/ai2d.py:33
↓ 2 callersMethodeager_attention_forward
( self, attention_mask, batch_size, head_dim, query_states, key_states, value_states )
experiments/lerobot/src/lerobot/policies/smolvla/smolvlm_with_expert.py:504
↓ 2 callersFunctionema_inplace
(old, new, decay)
experiments/lerobot/src/lerobot/policies/vqbet/vqbet_utils.py:943
↓ 2 callersFunctionembed_images
Embed image bytes into the dataset table before saving to Parquet. This function prepares a Hugging Face dataset for serialization by converting
experiments/lerobot/src/lerobot/datasets/utils.py:225
↓ 2 callersMethodembed_prefix
Embed images with SigLIP and language tokens with embedding layer.
experiments/lerobot/src/lerobot/policies/pi0/modeling_pi0.py:644
↓ 2 callersMethodembed_prefix
Embed images with SigLIP and language tokens with embedding layer to prepare for SmolVLM transformer processing.
experiments/lerobot/src/lerobot/policies/smolvla/modeling_smolvla.py:624
↓ 2 callersMethodembed_prefix
Embed images with SigLIP and language tokens with embedding layer.
experiments/lerobot/src/lerobot/policies/pi05/modeling_pi05.py:640
↓ 2 callersMethodembed_suffix
Embed state, noisy_actions, timestep to prepare for Expert Gemma processing.
experiments/lerobot/src/lerobot/policies/pi0/modeling_pi0.py:687
↓ 2 callersMethodembed_suffix
Embed state, noisy_actions, timestep to prepare for Expert Gemma processing.
experiments/lerobot/src/lerobot/policies/smolvla/modeling_smolvla.py:718
↓ 2 callersMethodembed_suffix
Embed noisy_actions, timestep to prepare for Expert Gemma processing.
experiments/lerobot/src/lerobot/policies/pi05/modeling_pi05.py:683
↓ 2 callersMethodenable_torque
Enable torque on selected motors.
experiments/lerobot/src/lerobot/motors/robstride/robstride.py:377
↓ 2 callersMethodeval_points
(self, gt_points, model_points, image_size, time_factor)
experiments/olmo/eval/evaluators.py:3429
↓ 2 callersFunctioneval_policy_all
Evaluate a nested `envs` dict: {task_group: {task_id: vec_env}}. This implementation flattens tasks, runs them sequentially or via ThreadPool
experiments/lerobot/src/lerobot/scripts/lerobot_eval.py:680
↓ 2 callersFunctionevaluate_one_sample
(events, response, prediction, openai_api_key, return_hit_num=False, is_recall=False, max_retry=10)
experiments/olmo/eval/dream_caption_utils.py:105
↓ 2 callersFunctionevaluate_video_point_tracking_with_masks
Evaluate predictions for a single video. Args: pred_trajectory: Predicted trajectory data Format: [{
experiments/olmo/eval/object_tracking_utils.py:658
↓ 2 callersFunctionextract_any_points
(text, metadata)
experiments/olmo/preprocessing/point_formatter.py:77
↓ 2 callersMethodextract_feature
(self, pixel_values)
experiments/lerobot/src/lerobot/policies/groot/eagle2_hg_model/modeling_eagle2_5_vl.py:299
↓ 2 callersMethodextract_multi_image_points
(self, text, image_w, image_h, extract_ids=False)
experiments/olmo/preprocessing/point_formatter.py:170
↓ 2 callersFunctionextract_short_answer
(prediction: float)
experiments/olmo/eval/vqa.py:239
↓ 2 callersFunctionextract_trajectories
(text, width, height, video_fps, format=None)
experiments/olmo/preprocessing/point_formatter.py:104
↓ 2 callersFunctionf1_score
(precision: float, recall: float, epsilon: float = 1e-10)
experiments/olmo/eval/evaluators.py:388
↓ 2 callersFunctionfake_rgb
(h, w)
experiments/lerobot/tests/policies/xvla/test_xvla_original_vs_lerobot.py:111
↓ 2 callersFunctionfeatures_factory
()
experiments/lerobot/tests/fixtures/dataset_factories.py:129
↓ 2 callersFunctionfilter_arg
(field_to_filter: str, args: Sequence[str] | None = None)
experiments/lerobot/src/lerobot/configs/parser.py:155
↓ 2 callersFunctionfilter_warnings
()
experiments/olmo/util.py:202
↓ 2 callersFunctionfind_available_ports
()
experiments/lerobot/src/lerobot/scripts/lerobot_find_port.py:30
↓ 2 callersMethodfind_cameras
Detects available cameras connected to the system. Returns: List[Dict[str, Any]]: A list of dictionaries, where each d
experiments/lerobot/src/lerobot/cameras/camera.py:91
↓ 2 callersMethodfind_checkpoints
Find sharded checkpoints within a directory.
experiments/olmo/train/checkpointer.py:215
↓ 2 callersMethodfind_closest_aspect_ratio
previous version mainly focus on ratio. We also consider area ratio here.
experiments/lerobot/src/lerobot/policies/groot/eagle2_hg_model/image_processing_eagle2_5_vl_fast.py:195
↓ 2 callersMethodfit
(self)
experiments/olmo/train/trainer.py:2329
↓ 2 callersFunctionflatten_forward_unflatten
Helper to temporarily flatten extra dims at the start of the image tensor. Args: fn: Callable that the image tensor will be passed to. It
experiments/lerobot/src/lerobot/policies/tdmpc/modeling_tdmpc.py:814
↓ 2 callersMethodformat_boxes
Format bounding boxes for detection output.
experiments/olmo/models/molmo/data_formatter.py:975
↓ 2 callersMethodformat_messages
(cls, parts)
experiments/olmo/data/academic_datasets.py:1660
↓ 2 callersMethodformat_options
(self, example)
experiments/olmo/models/molmo/data_formatter.py:930
↓ 2 callersMethodformat_output_timestamp
Format output timestamp as text For output timestamps, the model should always use a consistent format
experiments/olmo/models/molmo/data_formatter.py:1743
↓ 2 callersMethodformat_points
(self, example)
experiments/olmo/models/molmo/data_formatter.py:952
↓ 2 callersFunctionformat_time
TODO [QUESTION]: Merge with `format_timestamps` in DataFormatter? Format time value for model input/output. Args: time_value: Ti
experiments/olmo/eval/object_tracking_utils.py:29
↓ 2 callersMethodformat_video_input_points
Legacy method for formatting initial input points for user prompt.
experiments/olmo/models/molmo/data_formatter.py:1349
↓ 2 callersMethodforward
Run the batch through the model and compute the loss for training or validation.
experiments/lerobot/src/lerobot/policies/diffusion/modeling_diffusion.py:141
↓ 2 callersMethodforward
Run the batch through the model and compute the loss for training or validation.
experiments/lerobot/src/lerobot/policies/act/modeling_act.py:136
↓ 2 callersMethodforward_features_unpool
forward until avg pooling Args: x (_type_): input image tensor
experiments/lerobot/src/lerobot/policies/xvla/modeling_florence2.py:622
↓ 2 callersMethodforward_heuristic
Remove all pruned tokens found with the specified heuristic and rearrange them to reduce total batch size. Default heuristic
experiments/olmo/nn/temporal_image_vit.py:191
↓ 2 callersMethodforward_vlm
Encode text and multi-view images via Florence2 encoder.
experiments/lerobot/src/lerobot/policies/xvla/modeling_xvla.py:157
↓ 2 callersMethodforward_with_context
( self, actions: torch.Tensor, timesteps: torch.Tensor, *, context: Ac
experiments/olmo/hf_model/modeling_molmoact2.py:796
↓ 2 callersMethodfps
(self)
experiments/lerobot/src/lerobot/datasets/online_buffer.py:220
↓ 2 callersMethodfrom_pretrained
Override the from_pretrained method to handle key remapping and display important disclaimer.
experiments/lerobot/src/lerobot/policies/pi0_fast/modeling_pi0_fast.py:867
↓ 2 callersMethodfrom_stats
( cls, stats: Optional[Mapping[str, Any]], mode: str )
experiments/olmo/hf_model/modeling_molmoact2.py:945
↓ 2 callersMethodgenerate
( self, batch, attention_bias: Optional[torch.Tensor] = None, max_steps: int =
experiments/olmo/models/model.py:180
↓ 2 callersFunctiongenerate_all_frame_indices
Generate all frame indices, ordered by offset for cache-friendly access. Orders frames as: [0, 30, 60...], [1, 31, 61...], ..., [29, 59, 89...]
experiments/lerobot/src/lerobot/policies/sarm/compute_rabc_weights.py:429
↓ 2 callersFunctiongenerate_consecutive_options
(correct, min_val=0)
experiments/olmo/data/vixmo_datasets.py:1020
↓ 2 callersMethodgenerate_inference_result_from_observations
( self, observations: Dict[str, Any] | List[Dict[str, Any]], *, norm_tag: Opti
experiments/lerobot/src/lerobot/policies/molmoact2/modeling_molmoact2.py:1412
↓ 2 callersMethodgenerate_model_card
( self, dataset_repo_id: str, model_type: str, license: str | None, tags: list[str] | None )
experiments/lerobot/src/lerobot/policies/pretrained.py:247
↓ 2 callersMethodget_action_expert_parameters
(self)
experiments/olmo/models/molmoact2/molmoact2.py:1343
↓ 2 callersFunctionget_activation_fn
Return an activation function given a string.
experiments/lerobot/src/lerobot/policies/act/modeling_act.py:738
↓ 2 callersMethodget_attention_interface
(self)
experiments/lerobot/src/lerobot/policies/smolvla/smolvlm_with_expert.py:500
↓ 2 callersMethodget_beaker_url
(self)
experiments/olmo/train/trainer.py:235
↓ 2 callersFunctionget_candidate_target_fps
Return the subset of `video_fps` factors that remain multiples of `sampling_fps`. Examples: >>> get_candidate_target_fps(video_fps=6
experiments/olmo/hf_model/video_processing_molmoact2.py:200
↓ 2 callersFunctionget_canonical_statements
(model_caption: str, openai_api_key: str)
experiments/olmo/eval/vixmo_caption_utils.py:93
↓ 2 callersFunctionget_chat_response
Run a query through an OpenAI model
experiments/olmo/eval/dream_caption_utils.py:11
↓ 2 callersFunctionget_chunks
(prefix: str)
experiments/olmo/train/distributed_checkpointing.py:484
↓ 2 callersFunctionget_click_coords_from_bbox
Get the click point from the bounding box. Args: bbox: a list of four coordinates [x1, x2, y1, y2] mode: the mode to get the
experiments/olmo/data/pixmo_datasets.py:1419
↓ 2 callersMethodget_codebook_vector_from_indices
(self, indices)
experiments/lerobot/src/lerobot/policies/vqbet/vqbet_utils.py:398
↓ 2 callersMethodget_config
Returns the serializable configuration of the processor. Note: The tokenizer object itself is not serialized. If the processor was i
experiments/lerobot/src/lerobot/processor/tokenizer_processor.py:272
↓ 2 callersMethodget_connector_parameters
(self)
experiments/olmo/models/model.py:150
↓ 2 callersFunctionget_coords
(action)
experiments/olmo/eval/evaluators.py:400
↓ 2 callersMethodget_cp_rotary_embedding
(self, seq_len: int, device: torch.device)
experiments/olmo/nn/llm.py:1308
↓ 2 callersFunctionget_cv2_rotation
(rotation: Cv2Rotation)
experiments/lerobot/src/lerobot/cameras/utils.py:59
↓ 2 callersMethodget_data_by_key
Returns all data for a given data key as a Tensor.
experiments/lerobot/src/lerobot/datasets/online_buffer.py:294
↓ 2 callersMethodget_decoder
(self)
experiments/olmo/hf_model/modeling_molmoact2.py:2823
↓ 2 callersMethodget_decoder
(self)
experiments/lerobot/src/lerobot/policies/xvla/modeling_florence2.py:1987
↓ 2 callersFunctionget_default_load_path
(cfg)
experiments/scripts/prepare_pretrained_model.py:437
↓ 2 callersFunctionget_default_max_tokens
(name)
experiments/olmo/eval/eval_utils.py:217
↓ 2 callersFunctionget_element_size
Get the size in bytes of element of the given PyTorch dtype.
experiments/olmo/torch_util.py:248
↓ 2 callersMethodget_encoder
(self)
experiments/lerobot/src/lerobot/policies/xvla/modeling_florence2.py:1984
↓ 2 callersMethodget_eta
(self)
experiments/olmo/train/trainer.py:2315
↓ 2 callersFunctionget_evaluator
Gets the default evaluator for task `name`
experiments/olmo/eval/eval_utils.py:7
↓ 2 callersMethodget_fsd2_args
(self, autocast_precision)
experiments/olmo/train/trainer_config.py:209
↓ 2 callersFunctionget_gemma_config
Returns config for specified gemma variant.
experiments/lerobot/src/lerobot/policies/pi0/modeling_pi0.py:314
↓ 2 callersFunctionget_gemma_config
Returns config for specified gemma variant.
experiments/lerobot/src/lerobot/policies/pi05/modeling_pi05.py:311
↓ 2 callersFunctionget_image_collage_coords_from_video_points
Convert video point text to coordinates Args: text: The text containing video points video_w: The width of the video vide
experiments/olmo/html_utils.py:109
↓ 2 callersMethodget_input_embeddings
(self)
experiments/lerobot/src/lerobot/policies/xvla/modeling_florence2.py:2500
↓ 2 callersMethodget_last_depth_video_codes
(self)
experiments/lerobot/src/lerobot/policies/molmoact2/hf_backend.py:244
↓ 2 callersMethodget_latest
Get the latest encoded frame and its timestamp.
experiments/lerobot/src/lerobot/cameras/zmq/image_server.py:85
↓ 2 callersFunctionget_llm_output
Get the response from the LLM model. Args: prompt (str): The prompt to send to the model. openai_api_key (str): OpenAI API key.
experiments/olmo/eval/mlvu_utils.py:58
↓ 2 callersFunctionget_llm_output
( prompt: str, openai_api_key: str, system_prompt: str=None, max_tokens: int=128, maxtry: int=10 )
experiments/olmo/eval/temp_compass_utils.py:86
↓ 2 callersMethodget_llm_parameters
(self)
experiments/olmo/models/model.py:156
↓ 2 callersFunctionget_logger
Get a logger using the standardized logging setup from utils.py. Args: name: Logger name (e.g., 'policy_server', 'robot_client')
experiments/lerobot/src/lerobot/async_inference/helpers.py:175
↓ 2 callersMethodget_metric_file
(self, cfg: 'DatasetEvaluatorConfig')
experiments/olmo/eval/model_evaluator.py:267
↓ 2 callersFunctionget_model
(checkpoint, model, frame_loading_backend: str = "torchcodec_exact")
experiments/launch_scripts/train_lerobot.py:92
↓ 2 callersFunctionget_model_types
Get a dictionary of model names to their classes
experiments/olmo/models/model_config.py:14
↓ 2 callersFunctionget_molmoact_logger
()
examples/yam/gello_min/logging_utils.py:44
↓ 2 callersFunctionget_object_memory
(obj)
experiments/lerobot/tests/utils/test_replay_buffer.py:138
↓ 2 callersFunctionget_observation_features
Get observation features from the policy encoder. It act as cache for the observation features. when the encoder is frozen, the observation f
experiments/lerobot/src/lerobot/rl/learner.py:1017
↓ 2 callersMethodget_optimizer_preset
(self)
experiments/lerobot/src/lerobot/configs/policies.py:119
↓ 2 callersFunctionget_output_path
( repo_id: str, new_repo_id: str | None, root: Path | str | None, new_root: Path | str | None,
experiments/lerobot/src/lerobot/scripts/lerobot_edit_dataset.py:255
↓ 2 callersMethodget_output_shapes
(self)
experiments/olmo/preprocessing/multimodal_preprocessor.py:257
↓ 2 callersFunctionget_policy_stats
(ds_repo_id: str, policy_name: str, policy_kwargs: dict)
experiments/lerobot/tests/artifacts/policies/save_policy_to_safetensors.py:31
↓ 2 callersMethodget_raw_joint_positions
Get raw joint positions.
experiments/lerobot/src/lerobot/rl/gym_manipulator.py:298
↓ 2 callersFunctionget_recall_statements
( gt_statements: str, caption_str: str, openai_api_key: str )
experiments/olmo/eval/vixmo_caption_utils.py:273
← previousnext →1,501–1,600 of 8,779, ranked by callers