MCPcopy Create free account

hub / github.com/allenai/molmoact2 / functions

Functions8,779 in github.com/allenai/molmoact2

↓ 4 callersFunction_stat_dim
(stats: Dict[str, object])
experiments/launch_scripts/lerobot_utils/stats.py:131
↓ 4 callersMethod_state_owner
(self)
experiments/scripts/serve_policy.py:357
↓ 4 callersFunction_to_float
(text: str)
experiments/olmo/eval/vqa.py:207
↓ 4 callersFunction_to_mask
(value: Any, fallback_like: Optional[np.ndarray])
experiments/olmo/hf_model/modeling_molmoact2.py:885
↓ 4 callersMethod_validate_loaded_config
Validate that a config was loaded and is a valid processor config. This method validates processor config format with intelligent migration d
experiments/lerobot/src/lerobot/processor/pipeline.py:670
↓ 4 callersMethod_validate_overrides_used
Validate that all provided overrides were used. This method ensures user overrides are valid to catch typos and configuration errors:
experiments/lerobot/src/lerobot/processor/pipeline.py:986
↓ 4 callersMethodadd_image_padding_embed
(self, image_features: torch.Tensor, image_masks: torch.Tensor)
experiments/olmo/nn/vision_backbone.py:494
↓ 4 callersFunctionarange_for_pooling
(idx_arr, pool_h, pool_w)
experiments/olmo/preprocessing/multicrop_preprocessor.py:23
↓ 4 callersMethodas_matrix
Convert rotation to 3x3 rotation matrix. Returns: 3x3 rotation matrix
experiments/lerobot/src/lerobot/utils/rotation.py:123
↓ 4 callersFunctionassert_dataset_iteration_works
Test that we can iterate through the entire dataset without errors.
experiments/lerobot/tests/datasets/test_aggregate.py:179
↓ 4 callersFunctionassert_transitions_equal
Helper to assert two transitions are equal.
experiments/lerobot/tests/transport/test_transport_utils.py:513
↓ 4 callersMethodasync_read
Reads the latest available frame data (color) asynchronously. This method retrieves the most recent color frame captured by the back
experiments/lerobot/src/lerobot/cameras/realsense/camera_realsense.py:533
↓ 4 callersMethodbuild
(self, tokenizer, image_preprocessor: ImagePreprocessor, text_seq_len, max_seq_len)
experiments/olmo/models/molmo/molmo_preprocessor.py:17
↓ 4 callersMethodbuild
(self, tokenizer, image_preprocessor, text_seq_len=None, max_sequence_length=None)
experiments/olmo/models/molmo2/molmo2_preprocessor.py:114
↓ 4 callersMethodbuild_collator
Collators for tensor the preprocessor produces
experiments/olmo/models/molmo/molmo.py:121
↓ 4 callersFunctionbuild_depth_added_tokens
(num_depth_tokens: int)
experiments/olmo/extra_tokens.py:105
↓ 4 callersFunctionbuild_inference_frame
Constructs a model-ready observation tensor dict from a raw observation. This utility function orchestrates the process of converting a raw,
experiments/lerobot/src/lerobot/policies/utils.py:141
↓ 4 callersMethodbuild_point_output
Building pointing output using the pointing string
experiments/olmo/preprocessing/point_formatter.py:469
↓ 4 callersMethodbuild_point_str_from_coord_str
Building pointing string using the coordinate string
experiments/olmo/preprocessing/point_formatter.py:451
↓ 4 callersMethodbuild_tokenizer
Tokenizer this model uses
experiments/olmo/models/molmo2/molmo2.py:121
↓ 4 callersMethodcall
(self)
experiments/lerobot/tests/mocks/mock_serial_patch.py:38
↓ 4 callersMethodclose
(self)
examples/yam/camera_client.py:96
↓ 4 callersFunctionclose_envs
Default: raise if the type is not recognized.
experiments/lerobot/src/lerobot/envs/utils.py:196
↓ 4 callersMethodcommand_joint_state
Command the leader robot to a given state. Args: joint_state (np.ndarray): The state to command the leader robot to.
examples/yam/gello_min/robot.py:32
↓ 4 callersFunctioncompute_sampler_weights
Compute the sampling weights for the online training dataloader in train.py. Args: offline_dataset: The LeRobotDataset used for offline p
experiments/lerobot/src/lerobot/datasets/online_buffer.py:299
↓ 4 callersFunctionconcatenate_video_files
Concatenate multiple video files into a single video file using pyav. This function takes a list of video input file paths and concatenates
experiments/lerobot/src/lerobot/datasets/video_utils.py:487
↓ 4 callersMethodconnect
Establishes ZMQ sockets with the remote mobile robot
experiments/lerobot/src/lerobot/robots/lekiwi/lekiwi_client.py:117
↓ 4 callersMethodconnect
Connects to the OpenCV camera specified in the configuration. Initializes the OpenCV VideoCapture object, sets desired camera proper
experiments/lerobot/src/lerobot/cameras/opencv/camera_opencv.py:137
↓ 4 callersMethodcount_bins
(self, tokens: Iterable[str])
experiments/olmo/extra_tokens.py:40
↓ 4 callersFunctioncreate_lerobot_dataset_card
Create a `DatasetCard` for a LeRobot dataset. Keyword arguments are used to replace values in the card template. Note: If specified, `license
experiments/lerobot/src/lerobot/datasets/utils.py:936
↓ 4 callersMethoddecode
(self, img_seq: Tensor)
experiments/scripts/generate_depth_annotation.py:649
↓ 4 callersFunctiondefault_output_root
(dataset_root: Path, repo_id: str, output_dir: str | None)
experiments/scripts/generate_depth_annotation.py:698
↓ 4 callersMethoddisable_torque
Disable torque on selected motors.
experiments/lerobot/src/lerobot/motors/damiao/damiao.py:308
↓ 4 callersMethoddraw
(self, surf)
experiments/lerobot/src/lerobot/motors/calibration_gui.py:139
↓ 4 callersMethodembed_language_tokens
(self, tokens: torch.Tensor)
experiments/lerobot/src/lerobot/policies/pi0_fast/modeling_pi0_fast.py:266
↓ 4 callersMethodenable_torque
Enable torque on selected motors.
experiments/lerobot/src/lerobot/motors/motors_bus.py:102
↓ 4 callersFunctionfilter_and_group_data
Groups a pixmo datasets so each row contains all annotation for one image, and add images path using `url_to_path`, removing rows that do not
experiments/olmo/data/download_urls.py:225
↓ 4 callersFunctionflatten_lists
(xss)
experiments/olmo/hf_datasets/ai2d.py:18
↓ 4 callersMethodflush
Write buffered PNGs and ``episode.h5`` to ``rollout_dir``.
examples/yam/eval_utils.py:116
↓ 4 callersFunctionformat_time
TODO [QUESTION]: Merge with `format_timestamps` in DataFormatter? Format time value for model input/output. Args: time_value: Ti
experiments/olmo/preprocessing/point_formatter.py:527
↓ 4 callersFunctionformat_value_and_unit
(value: int, unit: str)
experiments/olmo/util.py:751
↓ 4 callersMethodfrom_pretrained
Loads a pipeline from a local directory, single file, or Hugging Face Hub repository. This method implements a simplified loading pipeline wi
experiments/lerobot/src/lerobot/processor/pipeline.py:452
↓ 4 callersMethodfrom_stats
( cls, stats: Mapping[str, Sequence[float]], mode: str, )
experiments/olmo/data/robot_processing.py:185
↓ 4 callersFunctiongenerate_uuid
Generate a unique ID.
experiments/olmo/util.py:616
↓ 4 callersMethodget
(self, item, rng)
experiments/olmo/data/academic_datasets.py:134
↓ 4 callersMethodget
(self, idx, rng)
experiments/olmo/data/vixmo_datasets.py:1714
↓ 4 callersMethodgetBaudRate
(self)
experiments/lerobot/src/lerobot/motors/motors_bus.py:200
↓ 4 callersMethodgetRxPacketError
(self, error)
experiments/lerobot/src/lerobot/motors/motors_bus.py:215
↓ 4 callersMethodget_angles
(self)
experiments/lerobot/src/lerobot/teleoperators/unitree_g1/exo_serial.py:115
↓ 4 callersMethodget_cached_image_features
Extract and optionally cache image features from observations. This function processes image observations through the vision encoder once and
experiments/lerobot/src/lerobot/policies/sac/modeling_sac.py:564
↓ 4 callersFunctionget_chat_response
Run a query through an OpenAI model
experiments/olmo/eval/api_utils.py:10
↓ 4 callersMethodget_config
Returns the serializable configuration of the processor. Returns: A dictionary containing the device and float_dtype set
experiments/lerobot/src/lerobot/processor/device_processor.py:171
↓ 4 callersMethodget_data_file_path
(self, ep_index: int)
experiments/lerobot/src/lerobot/datasets/lerobot_dataset.py:194
↓ 4 callersFunctionget_device_mesh_info
Get a human-readable string representation of a ``DeviceMesh``. :param device_mesh: The device mesh to get info for.
experiments/olmo/dist_util.py:68
↓ 4 callersFunctionget_gravity_orientation
Get gravity orientation from quaternion [w, x, y, z].
experiments/lerobot/src/lerobot/robots/unitree_g1/g1_utils.py:36
↓ 4 callersFunctionget_hf_dataset_size_in_mb
(hf_ds: Dataset)
experiments/lerobot/src/lerobot/datasets/utils.py:93
↓ 4 callersMethodget_iterator
Creates an infinite iterator that yields batches of transitions. Will automatically restart when internal iterator is exhausted.
experiments/lerobot/src/lerobot/rl/buffer.py:306
↓ 4 callersMethodget_joint_state
Get the current state of the leader robot. Returns: T: The current state of the leader robot.
examples/yam/gello_min/robot.py:23
↓ 4 callersMethodget_metadata
(self, norm_tag: Optional[str])
experiments/olmo/hf_model/modeling_molmoact2.py:1099
↓ 4 callersMethodget_n_action_steps
(self, repo_id: Optional[str])
experiments/olmo/data/robot_processing.py:393
↓ 4 callersFunctionget_num_nodes
()
experiments/olmo/train/remote_filesystem.py:54
↓ 4 callersMethodget_output_shapes
(self)
experiments/olmo/models/molmo2/molmo2_preprocessor.py:215
↓ 4 callersFunctionget_package_version
Get the version of a package if it exists, otherwise return 'N/A'.
experiments/lerobot/src/lerobot/scripts/lerobot_info.py:51
↓ 4 callersFunctionget_parquet_file_size_in_mb
(parquet_path: str | Path)
experiments/lerobot/src/lerobot/datasets/utils.py:82
↓ 4 callersFunctionget_radial_flexion
(flexion: float, abduction: float, splay: float)
experiments/lerobot/src/lerobot/teleoperators/homunculus/joints_translation.py:25
↓ 4 callersFunctionget_robot_output_trigger_suffix
(style: Optional[str])
experiments/olmo/extra_tokens.py:347
↓ 4 callersMethodget_rotary_embedding
( self, seq_len: int, device: torch.device, rope_type: Optional[RopeType] = No
experiments/olmo/nn/llm.py:1267
↓ 4 callersFunctionget_ulnar_flexion
(flexion: float, abduction: float, splay: float)
experiments/lerobot/src/lerobot/teleoperators/homunculus/joints_translation.py:21
↓ 4 callersMethodhas_boundaries
(self, tokens: Collection[str])
experiments/olmo/extra_tokens.py:43
↓ 4 callersMethodimage_to_patches_and_tokens
( self, image, pooling_h: int, pooling_w: int, patch_id: int,
experiments/olmo/models/molmo2/molmo2_preprocessor.py:253
↓ 4 callersFunctionis_hf_checkpoint_ref
(path: PathOrStr)
experiments/olmo/util.py:638
↓ 4 callersFunctionis_image_feature
Check if a feature key represents an image feature. Args: key: The feature key to check Returns: True if the key represents
experiments/lerobot/src/lerobot/policies/sac/configuration_sac.py:26
↓ 4 callersFunctionlerobot_train
(args)
experiments/lerobot/tests/test_cli_peft.py:23
↓ 4 callersMethodload
(self)
experiments/olmo/data/video_point_tracking_datasets.py:139
↓ 4 callersMethodload_hf_dataset
hf_dataset contains all the observations, states, actions, rewards, etc.
experiments/lerobot/src/lerobot/datasets/lerobot_dataset.py:893
↓ 4 callersFunctionload_model_state
Load model state in-place from `dir` Works for any combination of sharded/unshared checkpoints and sharded/unshared model
experiments/olmo/train/checkpointer.py:167
↓ 4 callersFunctionload_optimizer_state
Load optimizer state from disk. Args: optimizer: Either a single optimizer or a dictionary of optimizers. save_dir: Directory to
experiments/lerobot/src/lerobot/optim/optimizers.py:312
↓ 4 callersMethodlog_evaluation
(self, eval_name, on_step, target_step)
experiments/olmo/train/trainer.py:269
↓ 4 callersFunctionmake_default_processors
()
experiments/lerobot/src/lerobot/processor/factory.py:58
↓ 4 callersMethodmaybe_augment_image
(self, image, is_training, rng)
experiments/olmo/preprocessing/image_preprocessor.py:453
↓ 4 callersFunctionmove_state_dict_to_device
Recursively move all tensors in a (potentially) nested dict/list/tuple structure to the CPU.
experiments/lerobot/src/lerobot/utils/transition.py:73
↓ 4 callersFunctionnormalize_image_augmentation_mode
(value: Union[bool, str, None])
experiments/olmo/preprocessing/image_preprocessor.py:36
↓ 4 callersFunctionorthogonal_init
()
experiments/lerobot/src/lerobot/policies/sac/modeling_sac.py:957
↓ 4 callersMethodp95
Return the 95th percentile latency or None if empty.
experiments/lerobot/src/lerobot/policies/rtc/latency_tracker.py:70
↓ 4 callersFunctionpack
(*examples: Dict)
experiments/olmo/data/dynamic_packer.py:150
↓ 4 callersFunctionparse_cfg
Helper to parse CLI args into an EditDatasetConfig via draccus.
experiments/lerobot/tests/scripts/test_edit_dataset_parsing.py:34
↓ 4 callersMethodpi
Samples an action from the learned policy. The policy can also have added (truncated) Gaussian noise injected for encouraging exploration whe
experiments/lerobot/src/lerobot/policies/tdmpc/modeling_tdmpc.py:635
↓ 4 callersMethodping
Builds a 'Ping' status packet. https://emanual.robotis.com/docs/en/dxl/protocol2/#ping-0x01 Args: dxl_id (int):
experiments/lerobot/tests/mocks/mock_dynamixel.py:373
↓ 4 callersFunctionprocess_single_episode
Process a single episode annotation.
experiments/lerobot/src/lerobot/data_processing/sarm_annotations/subtask_annotation.py:882
↓ 4 callersMethodpublish_lowcmd
( self, action: RobotAction, kp: np.ndarray | list[float] | None = None, kd: n
experiments/lerobot/src/lerobot/robots/unitree_g1/unitree_g1.py:200
↓ 4 callersMethodpush_to_hub
( self, branch: str | None = None, tags: list | None = None, license: str | No
experiments/lerobot/src/lerobot/datasets/lerobot_dataset.py:796
↓ 4 callersFunctionquery_gpt
(prompt: str, openai_api_key: str, system_prompt: str = None, maxtry: int = 100)
experiments/olmo/eval/vixmo_caption_utils.py:77
↓ 4 callersFunctionrandom_crop_vectorized
Perform a per-image random crop over a batch of images in a vectorized way. (Same as shown previously.)
experiments/lerobot/src/lerobot/rl/buffer.py:41
↓ 4 callersMethodread
Builds a 'Read' status packet (also works for 'Sync Read') https://emanual.robotis.com/docs/en/dxl/protocol2/#read-0x02 https
experiments/lerobot/tests/mocks/mock_dynamixel.py:393
↓ 4 callersFunctionrecord
(cfg: RecordConfig)
experiments/lerobot/src/lerobot/scripts/lerobot_record.py:435
↓ 4 callersMethodremove_checkpoints
(self, current_checkpoints, num_checkpoints_to_keep)
experiments/olmo/train/trainer.py:1432
↓ 4 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
experiments/olmo/hf_model/modeling_molmoact2.py:2149
↓ 4 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
experiments/lerobot/src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:752
↓ 4 callersMethodreset_tracker
Reset the tracker, clearing all recorded steps. Does nothing if tracker is None.
experiments/lerobot/src/lerobot/policies/rtc/modeling_rtc.py:106
↓ 4 callersFunctionresolve_model_id_for_peft_training
PEFT training needs pretrained models, this finds the pretrained model of a policy type for PEFT training.
experiments/lerobot/tests/test_cli_peft.py:31
← previousnext →701–800 of 8,779, ranked by callers