MCPcopy Create free account

hub / github.com/MINT-SJTU/Evo-RL / functions

Functions5,633 in github.com/MINT-SJTU/Evo-RL

↓ 4 callersMethodpush_to_hub
( self, branch: str | None = None, tags: list | None = None, license: str | No
src/lerobot/datasets/lerobot_dataset.py:776
↓ 4 callersFunctionrandom_crop_vectorized
Perform a per-image random crop over a batch of images in a vectorized way. (Same as shown previously.)
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
tests/mocks/mock_dynamixel.py:393
↓ 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
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:723
↓ 4 callersMethodreset_tracker
Reset the tracker, clearing all recorded steps. Does nothing if tracker is None.
src/lerobot/policies/rtc/modeling_rtc.py:106
↓ 4 callersFunctionresolve_collector_policy_id
Resolve frame-level `collector_policy_id` from control mode and source.
src/lerobot/utils/recording_annotations.py:94
↓ 4 callersFunctionresolve_model_id_for_peft_training
PEFT training needs pretrained models, this finds the pretrained model of a policy type for PEFT training.
tests/test_cli_peft.py:31
↓ 4 callersFunctionrotate_half
Rotates half the hidden dims of the input.
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:206
↓ 4 callersFunctionrun_with_connection_retry
(action_name: str, fn: Callable[[], T])
src/lerobot/scripts/recording_loop.py:201
↓ 4 callersFunctionsave_image
Helper function to save a tensor as an image file.
examples/dataset/use_dataset_image_transforms.py:33
↓ 4 callersMethodsave_pretrained
(self, save_directory, **kwargs)
src/lerobot/policies/groot/eagle2_hg_model/processing_eagle2_5_vl.py:453
↓ 4 callersFunctionselect_camera_key
(info: dict, camera_key: str | None)
src/lerobot/scripts/lerobot_export_boundary_frames.py:86
↓ 4 callersMethodsend_action
(self, action: RobotAction)
tests/mocks/mock_robot.py:128
↓ 4 callersFunctionset_seed_all
Set random seed for all RNG sources to ensure reproducibility.
tests/policies/xvla/test_xvla_original_vs_lerobot.py:54
↓ 4 callersFunctionset_seed_all
Set random seed for all RNG sources to ensure reproducibility.
tests/policies/groot/test_groot_vs_original.py:81
↓ 4 callersFunctionset_teleop_manual_control
(enabled: bool)
src/lerobot/scripts/recording_loop.py:171
↓ 4 callersMethodset_teleop_send_only_mode
Optionally let robots skip observation-side work during pure teleoperation send loops.
src/lerobot/robots/robot.py:181
↓ 4 callersMethodstep_through
Processes data step-by-step, yielding the transition at each stage. This is a generator method useful for debugging and inspecting the interm
src/lerobot/processor/pipeline.py:318
↓ 4 callersMethodstop
Stop the controller and release resources.
src/lerobot/teleoperators/gamepad/gamepad_utils.py:47
↓ 4 callersMethodstop
Stop the robot client
src/lerobot/async_inference/robot_client.py:175
↓ 4 callersFunctiontoY
(val)
website/app.js:423
↓ 4 callersMethodto_dict
Returns the current metric values (or averages if `use_avg=True`) as a dict.
src/lerobot/utils/logging_utils.py:152
↓ 4 callersFunctiontransitions_to_bytes
(transitions: list[Transition])
src/lerobot/transport/utils.py:147
↓ 4 callersFunctionunflatten_dict
Unflatten a dictionary with delimited keys into a nested dictionary. Example: >>> flat_dct = {"a/b": 1, "a/c/d": 2, "e": 3} >>> p
src/lerobot/datasets/utils.py:181
↓ 4 callersFunctionunit_to_milli
(value: float | int)
src/lerobot/utils/piper_sdk.py:41
↓ 4 callersFunctionunpack_one
(t, ps, pattern)
src/lerobot/policies/vqbet/vqbet_utils.py:956
↓ 4 callersMethodunregister_before_step_hook
Unregisters a 'before_step' hook. Args: fn: The exact function object that was previously registered. Raises:
src/lerobot/processor/pipeline.py:1248
↓ 4 callersFunctionupdate_last_checkpoint
(checkpoint_dir: Path)
src/lerobot/utils/train_utils.py:57
↓ 4 callersFunctionvalid_delta_timestamps_factory
()
tests/datasets/test_delta_timestamps.py:24
↓ 4 callersMethodwrite
Write a value to a single motor's register. Contrary to :pymeth:`sync_write`, this expects a response status packet emitted by the motor, whi
src/lerobot/motors/motors_bus.py:1051
↓ 3 callersMethodBuildFromURDF
(urdf_path, package_dirs)
tests/test_piper_teleop.py:544
↓ 3 callersMethodMotionCtrl_2
(self, *args)
tests/test_piper_teleop.py:135
↓ 3 callersMethodSendTransitions
(self, request_iterator, _context)
src/lerobot/rl/learner_service.py:88
↓ 3 callersMethodV
Predict state value (V). Args: z: (*, latent_dim) tensor for the current state's latent representation. Returns:
src/lerobot/policies/tdmpc/modeling_tdmpc.py:653
↓ 3 callersMethodWrite
Serialize and send a command message to the robot.
src/lerobot/robots/unitree_g1/unitree_sdk2_socket.py:141
↓ 3 callersMethod__init__
Initialize the controller. Args: x_step_size: Base movement step size in meters y_step_size: Base movement s
src/lerobot/teleoperators/gamepad/gamepad_utils.py:25
↓ 3 callersMethod__init__
(self, width, depth, mlp_dim, num_heads, num_kv_heads, head_dim)
src/lerobot/policies/pi0_fast/modeling_pi0_fast.py:153
↓ 3 callersMethod__init__
(self, config)
src/lerobot/policies/wall_x/modeling_wall_x.py:117
↓ 3 callersMethod_aggregate_action_queues
Finds the same timestep actions in the queue and aggregates them using the aggregate_fn
src/lerobot/async_inference/robot_client.py:226
↓ 3 callersFunction_append
(key, value)
src/lerobot/scripts/lerobot_eval.py:717
↓ 3 callersMethod_apply_checkpoint
Helper method to apply gradient checkpointing if enabled.
src/lerobot/policies/pi0_fast/modeling_pi0_fast.py:339
↓ 3 callersFunction_close_single_env
(env: Any)
src/lerobot/envs/utils.py:188
↓ 3 callersMethod_connect
(self, handshake: bool = True)
src/lerobot/motors/motors_bus.py:517
↓ 3 callersFunction_create_action_norm_map_mean_std
()
tests/processor/test_normalize_processor.py:498
↓ 3 callersMethod_destroy_policy
Explicitly destroy a policy and free all associated memory. This method performs aggressive cleanup to ensure maximum memory is freed,
examples/rtc/eval_dataset.py:386
↓ 3 callersFunction_draw_overlay
( frame: Image.Image, values: np.ndarray, current_step: int, advantage_t: float, acp_t: in
src/lerobot/scripts/value_infer_viz.py:152
↓ 3 callersMethod_encode_image
(self, pixel_values)
src/lerobot/policies/xvla/modeling_florence2.py:2510
↓ 3 callersMethod_encode_mit_packet
Helper to encode control parameters into 8 bytes for MIT mode.
src/lerobot/motors/damiao/damiao.py:428
↓ 3 callersFunction_encode_video_worker
( video_key: str, episode_index: int, root: Path, fps: int, vcodec: str = "libsvtav1" )
src/lerobot/datasets/lerobot_dataset.py:547
↓ 3 callersFunction_ensure_indices_valid
(dim_action: int, idx: Iterable[int], name: str)
src/lerobot/policies/xvla/action_hub.py:104
↓ 3 callersMethod_flush_metadata_buffer
Write all buffered episode metadata to parquet file.
src/lerobot/datasets/lerobot_dataset.py:114
↓ 3 callersMethod_format_raw_obs
(self, raw_obs: RobotObservation)
src/lerobot/envs/libero.py:245
↓ 3 callersMethod_from_calibration_units
(self, value: int)
src/lerobot/robots/piper_follower/piper_follower.py:224
↓ 3 callersMethod_get_image_file_path
(self, episode_index: int, image_key: str, frame_index: int)
src/lerobot/datasets/lerobot_dataset.py:1130
↓ 3 callersMethod_get_motor_model
(self, motor: NameOrID)
src/lerobot/motors/motors_bus.py:410
↓ 3 callersMethod_get_target_dtype
Get the target dtype based on config.
src/lerobot/policies/xvla/modeling_xvla.py:111
↓ 3 callersMethod_init_policy
Initialize a single policy instance with specified RTC configuration. Args: name: Name identifier for logging purposes
examples/rtc/eval_dataset.py:285
↓ 3 callersFunction_keys
Helper to extract just the keys logged to rr.log
tests/utils/test_visualization_utils.py:70
↓ 3 callersFunction_kwargs_for
(calls, key)
tests/utils/test_visualization_utils.py:83
↓ 3 callersFunction_load_font
(size: int)
src/lerobot/scripts/value_infer_viz.py:114
↓ 3 callersFunction_make_obs
Create a TimedObservation with raw robot observation format.
tests/async_inference/test_helpers.py:173
↓ 3 callersMethod_merge_input_ids_with_image_features
(self, image_features, inputs_embeds)
src/lerobot/policies/xvla/modeling_florence2.py:2563
↓ 3 callersMethod_pad_to_model_dim
Pad 7 → 20 dims (zeros for the dummy channels).
src/lerobot/policies/xvla/action_hub.py:289
↓ 3 callersMethod_pad_to_model_dim
Pad real_dim → max_dim (zeros for the dummy channels).
src/lerobot/policies/xvla/action_hub.py:368
↓ 3 callersMethod_prepare_4d_causal_attention_mask_with_cache_position
Creates a causal 4D mask of shape `(batch_size, 1, query_length, key_value_length)` from a 2D mask of shape `(batch_size, key_value_l
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:1382
↓ 3 callersMethod_prepare_attention_masks_4d
Helper method to prepare 4D attention masks for transformer.
src/lerobot/policies/pi0/modeling_pi0.py:616
↓ 3 callersMethod_prepare_attention_masks_4d
Helper method to prepare 4D attention masks for transformer.
src/lerobot/policies/pi05/modeling_pi05.py:613
↓ 3 callersMethod_raw_to_degps
(raw_speed: int)
src/lerobot/robots/lekiwi/lekiwi.py:220
↓ 3 callersMethod_read
Return the most recent (single) values from self.last_d, optionally applying calibration.
src/lerobot/teleoperators/homunculus/homunculus_arm.py:233
↓ 3 callersMethod_read
Return the most recent (single) values from self.last_d, optionally applying calibration.
src/lerobot/teleoperators/homunculus/homunculus_glove.py:265
↓ 3 callersMethod_ready_to_send_observation
Flags when the client is ready to send an observation
src/lerobot/async_inference/robot_client.py:405
↓ 3 callersMethod_recv_all_responses
Efficiently receive responses from multiple motors at once. Uses the OpenArms pattern: collect all available messages within timeout.
src/lerobot/motors/damiao/damiao.py:394
↓ 3 callersMethod_recv_motor_response
Receive a response from a motor. Args: expected_recv_id: If provided, only return messages from this CAN ID
src/lerobot/motors/damiao/damiao.py:354
↓ 3 callersMethod_save_episode_video
( self, video_key: str, episode_index: int, temp_path: Path | None = None,
src/lerobot/datasets/lerobot_dataset.py:1451
↓ 3 callersMethod_stop_gravity_comp_loop_if_needed
(self)
src/lerobot/teleoperators/piper_leader/piper_leader.py:260
↓ 3 callersMethod_suggest_processor_migration
Raise migration error when we detect JSON files but no processor configs. This method is called when migration detection determines that a mo
src/lerobot/processor/pipeline.py:1169
↓ 3 callersMethod_sync_write
( self, addr: int, length: int, ids_values: dict[int, int], num_retry:
src/lerobot/motors/motors_bus.py:1246
↓ 3 callersMethod_to_calibration_units
(self, angle_deg: float)
src/lerobot/robots/piper_follower/piper_follower.py:221
↓ 3 callersMethod_to_calibration_units
(self, angle_deg: float)
src/lerobot/teleoperators/piper_leader/piper_leader.py:361
↓ 3 callersMethod_uint_to_float
Convert unsigned integer from CAN to float.
src/lerobot/motors/damiao/damiao.py:536
↓ 3 callersMethod_use_uncalibrated_passthrough
(self)
src/lerobot/robots/piper_follower/piper_follower.py:138
↓ 3 callersMethod_val_from_pos
(self, x)
src/lerobot/motors/calibration_gui.py:83
↓ 3 callersFunction_write_parquet
Write DataFrame to parquet This ensures images are properly embedded and the file can be loaded correctly by HF datasets.
src/lerobot/datasets/dataset_tools.py:937
↓ 3 callersFunctionaggregate_feature_stats
Aggregates stats for a single feature.
src/lerobot/datasets/compute_stats.py:565
↓ 3 callersFunctionapply_multimodal_rotary_pos_emb
Applies Rotary Position Embedding with Multimodal Sections to the query and key tensors (https://qwenlm.github.io/blog/qwen2-vl/). Explanation:
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:678
↓ 3 callersMethodas_rotvec
Convert rotation to rotation vector. Returns: Rotation vector [x, y, z] where magnitude is angle in radians
src/lerobot/utils/rotation.py:142
↓ 3 callersFunctionassert_dataset_content_integrity
Test that the content of both datasets is preserved correctly in the aggregated dataset.
tests/datasets/test_aggregate.py:37
↓ 3 callersFunctionassert_episode_and_frame_counts
Test that total number of episodes and frames are correctly aggregated.
tests/datasets/test_aggregate.py:27
↓ 3 callersFunctionassert_episode_indices_updated_correctly
Test that episode indices are correctly updated after aggregation.
tests/datasets/test_aggregate.py:125
↓ 3 callersFunctionassert_metadata_consistency
Test that metadata is correctly aggregated.
tests/datasets/test_aggregate.py:108
↓ 3 callersFunctionassert_video_timestamps_within_bounds
Test that all video timestamps are within valid bounds for their respective video files. This catches bugs where timestamps point to frames beyon
tests/datasets/test_aggregate.py:185
↓ 3 callersMethodasync_read
Reads the latest available frame asynchronously. This method retrieves the most recent frame captured by the background read
src/lerobot/cameras/opencv/camera_opencv.py:491
↓ 3 callersFunctionbuild_bin_centers
( num_bins: int, bin_min: float, bin_max: float, device: torch.device | None = None, )
src/lerobot/values/pistar06/modeling_pistar06.py:49
↓ 3 callersMethodcalculate_rewards
Calculate rewards for given text, video, and state representations. This is the canonical method for SARM reward computation, used f
src/lerobot/policies/sarm/modeling_sarm.py:474
↓ 3 callersFunctioncfg_to_group
Return a group name for logging. Optionally returns group name as list.
src/lerobot/rl/wandb_utils.py:29
↓ 3 callersFunctioncheck_interface_status
Check if CAN interface is UP and configured.
src/lerobot/scripts/lerobot_setup_can.py:77
↓ 3 callersFunctioncheck_nan_in_transition
Check for NaN values in transition data. Args: observations: Dictionary of observation tensors actions: Action tensor
src/lerobot/rl/learner.py:1046
↓ 3 callersMethodclear
Clears all processor steps from the registry.
src/lerobot/processor/pipeline.py:138
↓ 3 callersFunctioncompute_normalized_value_targets
( episode_indices: np.ndarray, frame_indices: np.ndarray, episode_info: dict[int, EpisodeTargetInf
src/lerobot/values/pistar06/modeling_pistar06.py:85
↓ 3 callersFunctionconvert_image_to_video_dataset
Convert image-to-video dataset. Creates a new LeRobotDataset with images encoded as videos, following the proper LeRobot dataset structure wi
src/lerobot/datasets/dataset_tools.py:1554
← previousnext →501–600 of 5,633, ranked by callers