Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MINT-SJTU/Evo-RL
/ functions
Functions
5,633 in github.com/MINT-SJTU/Evo-RL
⨍
Functions
5,633
◇
Types & classes
702
↳
Endpoints
36
↓ 1 callers
Method
reset
Reset action queue.
src/lerobot/policies/wall_x/modeling_wall_x.py:1716
↓ 1 callers
Method
reset
This should be called whenever the environment is reset.
src/lerobot/policies/act/modeling_act.py:92
↓ 1 callers
Method
reset
Resets the online computation variables.
src/lerobot/policies/act/modeling_act.py:213
↓ 1 callers
Method
reset
Clear all recorded latencies.
src/lerobot/policies/rtc/latency_tracker.py:36
↓ 1 callers
Method
reset
Clear all recorded debug information.
src/lerobot/policies/rtc/debug_tracker.py:118
↓ 1 callers
Method
reset
(self)
src/lerobot/policies/xvla/modeling_xvla.py:284
↓ 1 callers
Method
reset
Reset policy state when environment resets.
src/lerobot/policies/groot/modeling_groot.py:95
↓ 1 callers
Method
reset
Reset internal state - called when environment resets.
src/lerobot/policies/pi05/modeling_pi05.py:1115
↓ 1 callers
Method
reset
(self)
tests/processor/test_smolvla_processor.py:190
↓ 1 callers
Function
reset_follower_position
Reset robot arm to target position using smooth trajectory.
src/lerobot/rl/gym_manipulator.py:106
↓ 1 callers
Function
resize_with_pad
(img, width, height, pad_value=-1)
src/lerobot/policies/smolvla/modeling_smolvla.py:135
↓ 1 callers
Function
resize_with_pad
(img: torch.Tensor, height: int, width: int, pad_value: float = 0.0)
src/lerobot/policies/xvla/modeling_xvla.py:500
↓ 1 callers
Function
resize_with_pad_torch
PyTorch version of resize_with_pad. Resizes an image to a target height and width without distortion by padding with black. If the image is float3
src/lerobot/policies/pi0/modeling_pi0.py:146
↓ 1 callers
Function
resize_with_pad_torch
PyTorch version of resize_with_pad. Resizes an image to a target height and width without distortion by padding with black. If the image is float3
src/lerobot/policies/pi0_fast/modeling_pi0_fast.py:76
↓ 1 callers
Function
resize_with_pad_torch
PyTorch version of resize_with_pad. Resizes an image to a target height and width without distortion by padding with black. If the image is float3
src/lerobot/policies/pi05/modeling_pi05.py:144
↓ 1 callers
Function
resolve_hf_path
Resolve a path that may be a HuggingFace URL (hf://datasets/...) to a local path.
src/lerobot/utils/rabc.py:26
↓ 1 callers
Function
resolve_repo_id
(dataset_root: Path, root: Path | None)
src/lerobot/scripts/lerobot_export_boundary_frames.py:57
↓ 1 callers
Method
reward
Processes a reward. Subclasses must implement this method. Args: reward: The input reward from the transition. Returns:
src/lerobot/processor/pipeline.py:1561
↓ 1 callers
Function
rollout
Run a batched policy rollout once through a batch of environments. Note that all environments in the batch are run until the last environment is
src/lerobot/scripts/lerobot_eval.py:95
↓ 1 callers
Method
rot_pos_emb
(self, grid_thw)
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:451
↓ 1 callers
Function
rotate6d_to_axis_angle
r6d: np.ndarray, shape (N, 6) return: np.ndarray, shape (N, 3), axis-angle vectors
src/lerobot/policies/xvla/utils.py:72
↓ 1 callers
Function
run
Main function to run the GR00T locomotion controller. Args: repo_id: Hugging Face Hub repository ID for GR00T policies.
examples/unitree_g1/gr00t_locomotion.py:204
↓ 1 callers
Function
run
Main function to run the Holosoma locomotion controller. Args: repo_id: Hugging Face Hub repository ID for Holosoma policies. pol
examples/unitree_g1/holosoma_locomotion.py:209
↓ 1 callers
Method
run
(self, data=None, rank: int = 0, world_size: int = 1)
examples/port_datasets/slurm_port_shards.py:36
↓ 1 callers
Method
run
(self, data=None, rank: int = 0, world_size: int = 1)
examples/port_datasets/slurm_aggregate_shards.py:36
↓ 1 callers
Method
run_evaluation
Run evaluation on two random dataset samples using three separate policies. Note: Policies are deinitalized after each step to free memory. L
examples/rtc/eval_dataset.py:421
↓ 1 callers
Function
run_exo_calibration
Run interactive calibration for an exoskeleton arm.
src/lerobot/teleoperators/unitree_g1/exo_calib.py:141
↓ 1 callers
Function
run_setup
Setup CAN interfaces.
src/lerobot/scripts/lerobot_setup_can.py:306
↓ 1 callers
Function
run_speed
Run speed tests on CAN interfaces.
src/lerobot/scripts/lerobot_setup_can.py:390
↓ 1 callers
Method
run_step
(self)
examples/unitree_g1/gr00t_locomotion.py:112
↓ 1 callers
Method
run_step
(self)
examples/unitree_g1/holosoma_locomotion.py:127
↓ 1 callers
Function
run_test
Test motors on CAN interfaces.
src/lerobot/scripts/lerobot_setup_can.py:360
↓ 1 callers
Function
run_value_inference_pipeline
( cfg: ValueInferencePipelineConfig, accelerator: Accelerator | None = None, )
src/lerobot/scripts/lerobot_value_infer.py:452
↓ 1 callers
Method
run_visualization_loop
Run interactive Meshcat visualization loop to verify tracking.
src/lerobot/teleoperators/unitree_g1/unitree_g1.py:129
↓ 1 callers
Function
safe_arcsin
(value)
src/lerobot/policies/smolvla/modeling_smolvla.py:179
↓ 1 callers
Method
sample_actions
Do a full inference forward and compute the action (batch_size x num_steps x num_motors)
src/lerobot/policies/smolvla/modeling_smolvla.py:794
↓ 1 callers
Method
sample_actions
Do a full inference forward and compute the action.
src/lerobot/policies/pi05/modeling_pi05.py:780
↓ 1 callers
Method
sample_actions_fast_kv_cache
Optimized autoregressive decoding for FAST tokens using KV Caching.
src/lerobot/policies/pi0_fast/modeling_pi0_fast.py:680
↓ 1 callers
Function
sample_beta
(alpha, beta, bsize, device)
src/lerobot/policies/pi0/modeling_pi0.py:95
↓ 1 callers
Function
sample_beta
(alpha, beta, bsize, device)
src/lerobot/policies/pi05/modeling_pi05.py:94
↓ 1 callers
Function
sample_multinomial
(total_count, probs)
src/lerobot/policies/vqbet/vqbet_utils.py:1036
↓ 1 callers
Method
sample_time
(self, bsize, device)
src/lerobot/policies/pi0/modeling_pi0.py:630
↓ 1 callers
Method
sample_time
(self, bsize, device)
src/lerobot/policies/smolvla/modeling_smolvla.py:613
↓ 1 callers
Method
sample_time
Sample timesteps using Beta distribution (always in float32 for numerical stability).
src/lerobot/policies/wall_x/modeling_wall_x.py:146
↓ 1 callers
Method
sample_time
(self, batch_size, device, dtype)
src/lerobot/policies/groot/action_head/flow_matching_action_head.py:252
↓ 1 callers
Method
sample_time
(self, bsize, device)
src/lerobot/policies/pi05/modeling_pi05.py:627
↓ 1 callers
Function
sample_timestamps
(timestamps_mode: str, ep_num_images: int, fps: int)
benchmarks/video/run_video_benchmark.py:136
↓ 1 callers
Function
sanity_check_dataset_name
Validates the dataset repository name against the presence of a policy configuration. This function enforces a naming convention: a dataset
src/lerobot/utils/control_utils.py:332
↓ 1 callers
Function
sanity_check_dataset_robot_compatibility
Checks if a dataset's metadata is compatible with the current robot and recording setup. This function compares key metadata fields (`robot_
src/lerobot/utils/control_utils.py:363
↓ 1 callers
Function
save_dataset_to_safetensors
(output_dir, repo_id="lerobot/pusht")
tests/artifacts/datasets/save_dataset_to_safetensors.py:37
↓ 1 callers
Function
save_decoded_frames
( imgs_dir: Path, save_dir: Path, frames: torch.Tensor, timestamps: list[float], fps: int )
benchmarks/video/run_video_benchmark.py:99
↓ 1 callers
Function
save_default_config_transform
(original_frame: torch.Tensor, output_dir: Path)
tests/artifacts/image_transforms/save_image_transforms_to_safetensors.py:34
↓ 1 callers
Function
save_first_episode
(imgs_dir: Path, dataset: LeRobotDataset)
benchmarks/video/run_video_benchmark.py:113
↓ 1 callers
Function
save_image
Saves a single image to disk using Pillow. Handles color conversion if necessary.
src/lerobot/scripts/lerobot_find_cameras.py:132
↓ 1 callers
Function
save_images_from_all_cameras
Connects to detected cameras (optionally filtered by type) and saves images from each. Uses default stream profiles for width, height, and FP
src/lerobot/scripts/lerobot_find_cameras.py:230
↓ 1 callers
Function
save_policy_to_safetensors
(output_dir: Path, ds_repo_id: str, policy_name: str, policy_kwargs: dict)
tests/artifacts/policies/save_policy_to_safetensors.py:111
↓ 1 callers
Function
save_rng_state
(save_dir: Path)
src/lerobot/utils/random_utils.py:130
↓ 1 callers
Function
save_single_transforms
(original_frame: torch.Tensor, output_dir: Path)
tests/artifacts/image_transforms/save_image_transforms_to_safetensors.py:44
↓ 1 callers
Function
save_training_checkpoint
Save training checkpoint and associated data. This function performs the following steps: 1. Creates a checkpoint directory with the cur
src/lerobot/rl/learner.py:672
↓ 1 callers
Function
say
(text: str, blocking: bool = False)
src/lerobot/utils/utils.py:198
↓ 1 callers
Method
select_action
Select a single action given environment observations.
src/lerobot/policies/pi0/modeling_pi0.py:1229
↓ 1 callers
Method
select_action
Select single action for environment execution.
src/lerobot/policies/wall_x/modeling_wall_x.py:1998
↓ 1 callers
Method
select_action
Select a single action given environment observations.
src/lerobot/policies/pi05/modeling_pi05.py:1210
↓ 1 callers
Function
select_fit_subset
Select and filter points for ellipse fitting. Trims outliers by radius and downsamples.
src/lerobot/teleoperators/unitree_g1/exo_calib.py:172
↓ 1 callers
Function
select_rect_roi
Allows the user to draw a rectangular ROI on the image. The user must click and drag to draw the rectangle. - While dragging, the rectan
src/lerobot/rl/crop_dataset_roi.py:31
↓ 1 callers
Function
select_square_roi_for_images
For each image in the provided dictionary, open a window to allow the user to select a rectangular ROI. Returns a dictionary mapping each key
src/lerobot/rl/crop_dataset_roi.py:120
↓ 1 callers
Method
send_action
Command lekiwi to move to a target joint configuration. The relative action magnitude may be clipped depending on the configuration parameter
src/lerobot/robots/lekiwi/lekiwi.py:370
↓ 1 callers
Method
send_action
(self, action: RobotAction)
src/lerobot/robots/unitree_g1/unitree_g1.py:357
↓ 1 callers
Method
send_feedback
(self, feedback: dict[str, Any])
tests/mocks/mock_teleop.py:98
↓ 1 callers
Method
send_observation
Send observation to the policy server. Returns True if the observation was sent successfully, False otherwise.
src/lerobot/async_inference/robot_client.py:185
↓ 1 callers
Function
serialize_dict
Serialize a dictionary containing tensors or numpy arrays to be JSON-compatible. Converts torch.Tensor, np.ndarray, and np.generic types to lists
src/lerobot/datasets/utils.py:208
↓ 1 callers
Method
setBaudRate
(self, baudrate)
src/lerobot/motors/motors_bus.py:199
↓ 1 callers
Function
setTextContent
(selector, value, useHtml = false)
website/app.js:325
↓ 1 callers
Method
set_delta_timestamps
Set delta_timestamps converting the values to numpy arrays. The conversion is for an optimization in the __getitem__. The loop is much slower
src/lerobot/datasets/online_buffer.py:123
↓ 1 callers
Method
set_finetune_flags
(self)
src/lerobot/policies/evo1/evo1_model.py:205
↓ 1 callers
Method
set_frozen_modules_to_eval_mode
Huggingface will call model.train() at each training_step. To ensure the expected behaviors for modules like dropout, batchnorm, etc.
src/lerobot/policies/groot/groot_n1.py:119
↓ 1 callers
Method
set_frozen_modules_to_eval_mode
Huggingface will call model.train() at each training_step. To ensure the expected behaviors for modules like dropout, batchnorm, etc.
src/lerobot/policies/groot/action_head/flow_matching_action_head.py:236
↓ 1 callers
Method
set_requires_grad
(self)
src/lerobot/policies/smolvla/modeling_smolvla.py:599
↓ 1 callers
Method
set_requires_grad
(self)
src/lerobot/policies/smolvla/smolvlm_with_expert.py:139
↓ 1 callers
Method
set_tick
(self, v)
src/lerobot/motors/calibration_gui.py:89
↓ 1 callers
Method
set_timeout
Change the packet timeout used by the SDK. Args: timeout_ms (int | None, optional): Timeout in *milliseconds*. If `None` (default
src/lerobot/motors/motors_bus.py:680
↓ 1 callers
Method
set_trainable_parameters
(self, tune_projector: bool, tune_diffusion_model: bool)
src/lerobot/policies/groot/action_head/flow_matching_action_head.py:213
↓ 1 callers
Function
setup_can
(cfg: CANSetupConfig)
src/lerobot/scripts/lerobot_setup_can.py:401
↓ 1 callers
Function
setup_interface
Configure a CAN interface and return (success, error_message).
src/lerobot/scripts/lerobot_setup_can.py:96
↓ 1 callers
Function
setup_interface_with_fallback
Try primary mode first, then fallback mode. Returns (success, used_fd, summary).
src/lerobot/scripts/lerobot_setup_can.py:122
↓ 1 callers
Function
setup_motors
(cfg: SetupConfig)
src/lerobot/scripts/lerobot_setup_motors.py:81
↓ 1 callers
Method
setup_motors
(self)
src/lerobot/robots/lekiwi/lekiwi.py:201
↓ 1 callers
Method
should_intervene
Return True if intervention flag was set.
src/lerobot/teleoperators/gamepad/gamepad_utils.py:79
↓ 1 callers
Function
should_keep
(key: str, patterns: tuple[str])
src/lerobot/datasets/pipeline_features.py:47
↓ 1 callers
Function
slightly_off_delta_timestamps_factory
(valid_delta_timestamps_factory)
tests/datasets/test_delta_timestamps.py:49
↓ 1 callers
Method
solve_ik
(self, left_wrist, right_wrist, current_lr_arm_motor_q=None, current_lr_arm_motor_dq=None)
src/lerobot/robots/unitree_g1/robot_kinematic_processor.py:243
↓ 1 callers
Method
solve_tau
(self, current_lr_arm_motor_q=None, current_lr_arm_motor_dq=None)
src/lerobot/robots/unitree_g1/robot_kinematic_processor.py:296
↓ 1 callers
Function
speed_test
Test communication speed with motors.
src/lerobot/scripts/lerobot_setup_can.py:241
↓ 1 callers
Function
start_learner_threads
Start the learner threads for training. Args: cfg (TrainRLServerPipelineConfig): Training configuration wandb_logger (WandBL
src/lerobot/rl/learner.py:178
↓ 1 callers
Method
state_dict
(self)
tests/processor/test_smolvla_processor.py:184
↓ 1 callers
Method
stop
(self)
src/lerobot/teleoperators/piper_leader/gravity_compensation.py:104
↓ 1 callers
Method
stop
Stop the server
src/lerobot/async_inference/policy_server.py:409
↓ 1 callers
Method
stop_image_writer
Whenever wrapping this dataset inside a parallelized DataLoader, this needs to be called first to remove the image_writer in order fo
src/lerobot/datasets/lerobot_dataset.py:1560
↓ 1 callers
Function
strip_prefix
(key: str, prefixes_to_strip: tuple[str])
src/lerobot/datasets/pipeline_features.py:53
↓ 1 callers
Function
swish
(x)
src/lerobot/policies/groot/action_head/action_encoder.py:20
← previous
next →
2,001–2,100 of 5,633, ranked by callers