MCPcopy Create free account

hub / github.com/allenai/molmoact2 / functions

Functions8,779 in github.com/allenai/molmoact2

↓ 3 callersMethodget_interfaces
(self)
experiments/lerobot/src/lerobot/scripts/lerobot_setup_can.py:73
↓ 3 callersMethodget_metadata
(self, repo_id: Optional[str])
experiments/olmo/data/robot_processing.py:362
↓ 3 callersMethodget_observations
Get the current observations of the robot. This is to extract all the information that is available from the robot, such as joint pos
examples/yam/gello_min/robot.py:41
↓ 3 callersFunctionget_output_shape
Calculates the output shape of a PyTorch module given an input shape. Args: module (nn.Module): a PyTorch module input_shape
experiments/lerobot/src/lerobot/policies/utils.py:67
↓ 3 callersFunctionget_preprocessor
()
experiments/tests/data/test_preprocessor.py:12
↓ 3 callersMethodget_quantized_value
(self, val: int)
experiments/olmo/data/dynamic_packer.py:387
↓ 3 callersFunctionget_safe_default_codec
()
experiments/lerobot/src/lerobot/datasets/video_utils.py:117
↓ 3 callersMethodget_save_dir
Get directory to save the eval results
experiments/olmo/eval/model_evaluator.py:232
↓ 3 callersMethodget_segmentation_masks_for_example
Burst test set only annotates masks at 1 fps instead of all frames, so we need to specify frame index in the masks. Retrieve segment
experiments/olmo/data/video_object_tracking_datasets.py:670
↓ 3 callersFunctionget_step_checkpoint_dir
Returns the checkpoint sub-directory corresponding to the step number.
experiments/lerobot/src/lerobot/utils/train_utils.py:42
↓ 3 callersMethodget_task_index
Given a task in natural language, returns its task_index if the task already exists in the dataset, otherwise return None.
experiments/lerobot/src/lerobot/datasets/lerobot_dataset.py:300
↓ 3 callersFunctionget_video_duration_in_s
Get the duration of a video file in seconds using PyAV. Args: video_path: Path to the video file. Returns: Duration of
experiments/lerobot/src/lerobot/datasets/video_utils.py:1022
↓ 3 callersFunctionguess_feature_info
Return a dictionary with the 'dtype' and 'shape' for a given tensor or scalar value. If it looks like a 3D (C,H,W) shape, we might consider i
experiments/lerobot/src/lerobot/rl/buffer.py:739
↓ 3 callersFunctionhas_method
(cls: object, method_name: str)
experiments/lerobot/src/lerobot/utils/utils.py:243
↓ 3 callersFunctionhf_dataset_factory
(features_factory, tasks_factory, episodes_factory, img_array_factory)
experiments/lerobot/tests/fixtures/dataset_factories.py:357
↓ 3 callersFunctionimg_factory
(img_array_factory)
experiments/lerobot/tests/fixtures/dataset_factories.py:120
↓ 3 callersMethodinit_rtc_processor
Initialize RTC processor if RTC is enabled in config.
experiments/lerobot/src/lerobot/policies/pi0/modeling_pi0.py:1151
↓ 3 callersFunctioninside_slurm
Check whether the python process was launched through slurm
experiments/lerobot/src/lerobot/utils/utils.py:34
↓ 3 callersFunctioninterpolate_frame_scores
Interpolate frame scores to a target number of frames using bilinear interpolation. Args: scores: Original scores array, sampled at
experiments/olmo/util.py:773
↓ 3 callersFunctioninterpolate_position_embeddings
( position_embeddings: torch.Tensor, num_patches: int, dim: int, patch_size: int, height:
experiments/scripts/prepare_pretrained_model.py:57
↓ 3 callersMethodinv
Invert this rotation. Composition of a rotation with its inverse results in an identity transformation. Returns:
experiments/lerobot/src/lerobot/utils/rotation.py:224
↓ 3 callersFunctionis_lerobot_tag
(tag: object)
experiments/launch_scripts/data_mixtures.py:22
↓ 3 callersFunctionis_point_in_region
Check if the point (x, y) is within the region defined by the boolean mask. Parameters: - point (tuple of floats): x/y-coordinate of the
experiments/olmo/eval/evaluators.py:346
↓ 3 callersFunctionis_point_in_region
Check if point falls within the segmentation mask region. (Copied from olmo.eval.evaluators.py)
experiments/olmo/eval/object_tracking_utils.py:509
↓ 3 callersFunctionitem_to_torch
Convert all items in a dictionary to PyTorch tensors where appropriate. This function is used to convert an item from a streaming dataset to PyTo
experiments/lerobot/src/lerobot/datasets/utils.py:1190
↓ 3 callersMethodlist
(self)
experiments/olmo/registry.py:46
↓ 3 callersFunctionllm_activation_checkpoint_function
(cfg: 'LlmConfig')
experiments/olmo/nn/llm.py:169
↓ 3 callersFunctionload_annotations_from_dataset
Load annotations from LeRobot dataset parquet files.
experiments/lerobot/src/lerobot/data_processing/sarm_annotations/subtask_annotation.py:841
↓ 3 callersFunctionload_json
Load data from a JSON file. Args: fpath (Path): Path to the JSON file. Returns: Any: The data loaded from the JSON file.
experiments/lerobot/src/lerobot/datasets/utils.py:245
↓ 3 callersFunctionload_jsonlines
(fpath: Path)
experiments/lerobot/src/lerobot/datasets/v30/convert_dataset_v21_to_v30.py:136
↓ 3 callersFunctionload_nested_dataset
Find parquet files in provided directory {pq_dir}/chunk-xxx/file-xxx.parquet Convert parquet files to pyarrow memory mapped in a cache folder for
experiments/lerobot/src/lerobot/datasets/utils.py:106
↓ 3 callersFunctionload_plugin
Load and initialize a plugin from a given Python package path. This function attempts to load a plugin by importing its package and any submodule
experiments/lerobot/src/lerobot/configs/parser.py:103
↓ 3 callersFunctionload_sarm_resources
Load SARM model, dataset, and preprocessor. Returns: Tuple of (dataset, reward_model, preprocessor)
experiments/lerobot/src/lerobot/policies/sarm/compute_rabc_weights.py:79
↓ 3 callersFunctionload_video_decord
Load video frames with decord
experiments/olmo/data/video_loader.py:489
↓ 3 callersFunctionlog
(t, eps=1e-20)
experiments/lerobot/src/lerobot/policies/vqbet/vqbet_utils.py:939
↓ 3 callersFunctionlog_metrics_to_console
(prefix: str, metrics: Dict[str, float])
experiments/olmo/util.py:515
↓ 3 callersFunctionlog_model_info
(fsdp_model, olmo_model)
experiments/olmo/train/run_trainer.py:56
↓ 3 callersMethodloss_fn
for given ground truth action values (target), and prediction (pred) this function calculates the overall loss. predicted_action: pr
experiments/lerobot/src/lerobot/policies/vqbet/modeling_vqbet.py:574
↓ 3 callersFunctionmake_att_2d_masks
Copied from big_vision. Tokens can attend to valid inputs tokens which have a cumulative mask_ar smaller or equal to theirs. This way `mask_a
experiments/lerobot/src/lerobot/policies/pi0/modeling_pi0.py:111
↓ 3 callersFunctionmake_att_2d_masks
Copied from big_vision. Tokens can attend to valid inputs tokens which have a cumulative mask_ar smaller or equal to theirs. This way `mask_a
experiments/lerobot/src/lerobot/policies/smolvla/modeling_smolvla.py:101
↓ 3 callersFunctionmake_att_2d_masks
Copied from big_vision. Tokens can attend to valid inputs tokens which have a cumulative mask_ar smaller or equal to theirs. This way `mask_a
experiments/lerobot/src/lerobot/policies/pi05/modeling_pi05.py:108
↓ 3 callersFunctionmake_default_robot_action_processor
()
experiments/lerobot/src/lerobot/processor/factory.py:38
↓ 3 callersFunctionmake_delta_timestamps
(delta_indices: list[int] | None, fps: int)
experiments/lerobot/examples/tutorial/diffusion/diffusion_training_example.py:15
↓ 3 callersFunctionmake_device_from_device_class
Dynamically instantiates an object from its `ChoiceRegistry` configuration. This factory uses the module path and class name from the `confi
experiments/lerobot/src/lerobot/utils/import_utils.py:81
↓ 3 callersFunctionmake_env_config
(env_type: str, **kwargs)
experiments/lerobot/src/lerobot/envs/factory.py:31
↓ 3 callersFunctionmake_groot_pre_post_processors
Create preprocessor and postprocessor for Groot policy. This creates a processing pipeline that transforms LeRobot data format into the forma
experiments/lerobot/src/lerobot/policies/groot/processor_groot.py:67
↓ 3 callersFunctionmake_lerobot_observation
Make a lerobot observation from a raw observation.
experiments/lerobot/src/lerobot/async_inference/helpers.py:135
↓ 3 callersFunctionmake_optimizer_and_scheduler
Generates the optimizer and scheduler based on configs. Args: cfg (TrainPipelineConfig): The training config that contains optimizer and
experiments/lerobot/src/lerobot/optim/factory.py:25
↓ 3 callersMethodmaybe_add_pos_embed
(self, tensor: Tensor, pos_embed: Tensor | None)
experiments/lerobot/src/lerobot/policies/act/modeling_act.py:615
↓ 3 callersMethodnew
(cls: Type[C], **kwargs)
experiments/olmo/config.py:30
↓ 3 callersFunctionnormalize
(x, min_val, max_val)
experiments/lerobot/src/lerobot/policies/smolvla/modeling_smolvla.py:170
↓ 3 callersFunctionnormalize_str
Normalize the str to lower case and make them float numbers if possible.
experiments/olmo/eval/mmmu_eval_utils.py:111
↓ 3 callersFunctionobservation_normalizer
Return a NormalizerProcessorStep that only has observation stats (no action).
experiments/lerobot/tests/processor/test_normalize_processor.py:131
↓ 3 callersFunctionobservations_similar
Check if two observations are similar, under a tolerance threshold. Measures distance between observations as the difference in joint-space betwee
experiments/lerobot/src/lerobot/async_inference/helpers.py:281
↓ 3 callersMethodpad
( self, x: torch.Tensor, seq_dim: int, value: Union[int, float], lengt
experiments/olmo/nn/cp_load_balancer.py:244
↓ 3 callersFunctionpad_state_to_max_dim
Pad the state tensor's last dimension to max_state_dim with zeros.
experiments/lerobot/src/lerobot/policies/sarm/sarm_utils.py:203
↓ 3 callersFunctionpad_tensor
Efficiently pads a tensor along sequence dimension to match max_len. Args: tensor (torch.Tensor): Shape (B, L, ...) or (B, L).
experiments/lerobot/src/lerobot/policies/smolvla/modeling_smolvla.py:505
↓ 3 callersFunctionparse_arg
(arg_name: str, args: Sequence[str] | None = None)
experiments/lerobot/src/lerobot/configs/parser.py:58
↓ 3 callersMethodparse_index
(self, token: str)
experiments/olmo/extra_tokens.py:32
↓ 3 callersFunctionparse_mc_options_parentheses
Parse '(A) xxx (B) xxx' format (used by RefSpatial). Handles nested parentheses like '(A) (0.407, 0.852) (B) (0.195, 0.681)'. Returns (qu
experiments/olmo/data/spatial_datasets.py:135
↓ 3 callersFunctionparse_mc_options_standard
Parse 'Options:\nA. xxx\nB. xxx' or 'A. xxx\nB. xxx' format. Returns (question_without_options, list_of_options).
experiments/olmo/data/spatial_datasets.py:90
↓ 3 callersMethodparse_prediction
Parse model prediction text to standardized trajectory format. Supported prediction types: - video_point_track_all_frames
experiments/olmo/eval/point_tracking_utils.py:58
↓ 3 callersFunctionpeak_gpu_memory
Get the peak GPU memory usage in MB across all ranks. Only rank 0 will get the final result.
experiments/olmo/torch_util.py:174
↓ 3 callersMethodpredict_action
(self, payload: Dict[str, Any])
experiments/scripts/serve_policy.py:561
↓ 3 callersMethodproprioception_proj
Project proprioceptive data to hidden space.
experiments/lerobot/src/lerobot/policies/wall_x/modeling_wall_x.py:235
↓ 3 callersFunctionpush_transitions_to_transport_queue
Send transitions to learner in smaller chunks to avoid network issues. Args: transitions: List of transitions to send message_que
experiments/lerobot/src/lerobot/rl/actor.py:684
↓ 3 callersFunctionquery_gpt
(prompt: str, openai_api_key: str, system_prompt: str = None, maxtry: int = 10)
experiments/olmo/eval/video_caption_utils.py:73
↓ 3 callersMethodread
Read a value from a single motor. Positions are always in degrees.
experiments/lerobot/src/lerobot/motors/damiao/damiao.py:586
↓ 3 callersMethodregister
(self, builder_id: str, entry_point, kwargs=None)
experiments/olmo/registry.py:25
↓ 3 callersMethodregister
A class decorator to register a ProcessorStep. Args: name: The name to register the class under. If None, the class's `__name__`
experiments/lerobot/src/lerobot/processor/pipeline.py:71
↓ 3 callersMethodregister_after_step_hook
Registers a function to be called after each step. Args: fn: A callable that accepts the step index and the current transition.
experiments/lerobot/src/lerobot/processor/pipeline.py:1264
↓ 3 callersMethodreset
Reset all accumulated timings.
experiments/olmo/train/timer.py:96
↓ 3 callersMethodreset
(self)
experiments/lerobot/src/lerobot/utils/logging_utils.py:33
↓ 3 callersMethodreset_calibration
Restore factory calibration for the selected motors. Homing offset is set to ``0`` and min/max position limits are set to the full usable ran
experiments/lerobot/src/lerobot/motors/motors_bus.py:741
↓ 3 callersFunctionresolve_added_tokens
(new_tokens_for_both_input_and_output: Optional[List[str]])
experiments/olmo/tokenizer.py:99
↓ 3 callersFunctionresolve_checkpoint
(path_or_filename: str | None, filename: str)
experiments/scripts/generate_depth_annotation.py:707
↓ 3 callersMethodrun
(self)
experiments/olmo/util.py:418
↓ 3 callersMethodsample_actions
Do a full inference forward and compute the action.
experiments/lerobot/src/lerobot/policies/pi0/modeling_pi0.py:810
↓ 3 callersMethodsample_actions_fast
Inefficient but safe autoregressive decoding for FAST tokens. Matches the pattern of _generate_subtask_tokens. TODO: jadechog
experiments/lerobot/src/lerobot/policies/pi0_fast/modeling_pi0_fast.py:593
↓ 3 callersFunctionsample_random_clip
Randomly choose a clip [clip_start, clip_end] such that: - 0 <= clip_start <= start_time <= end_time <= clip_end <= video_duration -
experiments/olmo/data/vixmo_datasets.py:1292
↓ 3 callersMethodsave_checkpoint
(self, checkpoint_type: CheckpointType, optim=True)
experiments/olmo/train/trainer.py:1263
↓ 3 callersFunctionsave_scheduler_state
(scheduler: LRScheduler, save_dir: Path)
experiments/lerobot/src/lerobot/optim/schedulers.py:135
↓ 3 callersFunctionsave_training_state
Saves the training step, optimizer state, scheduler state, and rng state. Args: save_dir (Path): The directory to save artifacts to.
experiments/lerobot/src/lerobot/utils/train_utils.py:113
↓ 3 callersFunctionsave_training_step
(step: int, save_dir: Path)
experiments/lerobot/src/lerobot/utils/train_utils.py:48
↓ 3 callersFunctionset_example_style
(ex: Dict, style: str)
experiments/olmo/util.py:834
↓ 3 callersFunctionset_seed
Set random seed for reproducibility.
experiments/lerobot/examples/rtc/eval_dataset.py:125
↓ 3 callersFunctionset_seed_all
Set random seed for all RNG sources to ensure reproducibility.
experiments/lerobot/tests/policies/groot/test_groot_lerobot.py:64
↓ 3 callersMethodset_trainable_parameters
(self, tune_llm: bool, tune_visual: bool)
experiments/lerobot/src/lerobot/policies/groot/groot_n1.py:99
↓ 3 callersFunctionsetup_pil
()
experiments/olmo/preprocessing/image_preprocessor.py:52
↓ 3 callersFunctionshift_tokens_right
Shift input ids one token to the right.
experiments/lerobot/src/lerobot/policies/xvla/modeling_florence2.py:682
↓ 3 callersMethodsphere
(self, path: str, r: float, rgba: tuple[float, float, float, float])
experiments/lerobot/src/lerobot/teleoperators/unitree_g1/exo_ik.py:60
↓ 3 callersMethodstart_image_writer
(self, num_processes: int = 0, num_threads: int = 4)
experiments/lerobot/src/lerobot/datasets/lerobot_dataset.py:1606
↓ 3 callersMethodstep
(self, closure=None)
experiments/olmo/train/optim.py:260
↓ 3 callersMethodstep
Updates metrics that depend on 'step' for one step.
experiments/lerobot/src/lerobot/utils/logging_utils.py:131
↓ 3 callersMethodstep
Single denoising step for inference.
experiments/lerobot/src/lerobot/policies/wall_x/modeling_wall_x.py:200
↓ 3 callersMethodstep_command_only
Command the robot + sleep on the control rate. Does NOT read cameras. Use this inside tight inner loops (e.g. interpolated sub-steps of an
examples/yam/gello_min/env.py:71
↓ 3 callersFunctionstrip_lerobot_tag_prefix
(tag: str)
experiments/launch_scripts/data_mixtures.py:26
↓ 3 callersFunctionsum_metric
(v)
experiments/olmo/eval/evaluators.py:77
↓ 3 callersMethodsync_read
Read the same register from several motors at once. Args: data_name (str): Register name. motors (NameOrID | Sequence
experiments/lerobot/src/lerobot/motors/motors_bus.py:1112
↓ 3 callersMethodsync_read_all_states
Read ALL motor states (position, velocity, torque) from multiple motors in ONE refresh cycle. Returns: Dictionary mappin
experiments/lerobot/src/lerobot/motors/damiao/damiao.py:654
← previousnext →1,001–1,100 of 8,779, ranked by callers