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
↓ 3 callers
Method
createData
(self)
tests/test_piper_teleop.py:539
↓ 3 callers
Function
create_dummy_data
Create dummy data for testing both implementations.
tests/policies/xvla/test_xvla_original_vs_lerobot.py:104
↓ 3 callers
Method
create_episode_buffer
(self, episode_index: int | None = None)
src/lerobot/datasets/lerobot_dataset.py:1119
↓ 3 callers
Function
create_observation_batch
(batch_size: int = 8, state_dim: int = 10)
tests/policies/test_sac_policy.py:128
↓ 3 callers
Method
critic_forward
Forward pass through a critic network ensemble Args: observations: Dictionary of observations actions: Action tensor
src/lerobot/policies/sac/modeling_sac.py:100
↓ 3 callers
Function
cycle
Create a dataloader-safe cyclical iterator. This is an equivalent of `itertools.cycle` but is safe for use with PyTorch DataLoaders with mult
src/lerobot/datasets/utils.py:905
↓ 3 callers
Function
decode_sign_magnitude
https://en.wikipedia.org/wiki/Signed_number_representations#Sign%E2%80%93magnitude
src/lerobot/motors/encoding_utils.py:29
↓ 3 callers
Function
decode_twos_complement
https://en.wikipedia.org/wiki/Signed_number_representations#Two%27s_complement
src/lerobot/motors/encoding_utils.py:59
↓ 3 callers
Function
decode_video_frames
Decodes video frames using the specified backend. Args: video_path (Path): Path to the video file. timestamps (list[float]):
src/lerobot/datasets/video_utils.py:46
↓ 3 callers
Method
disconnect
Cleans ZMQ comms
src/lerobot/robots/lekiwi/lekiwi_client.py:329
↓ 3 callers
Method
disconnect
Disconnects from the camera, stops the pipeline, and cleans up resources. Stops the background read thread (if running) and stops th
src/lerobot/cameras/realsense/camera_realsense.py:610
↓ 3 callers
Method
discrete_critic_forward
Forward pass through a discrete critic network Args: observations: Dictionary of observations use_target: If True, us
src/lerobot/policies/sac/modeling_sac.py:122
↓ 3 callers
Method
embed_language_tokens
(self, tokens: torch.Tensor)
src/lerobot/policies/smolvla/smolvlm_with_expert.py:195
↓ 3 callers
Method
embed_prefix_fast
Embed images, language tokens, and FAST action tokens. Attention pattern: - Images + Language: bidirectional among themselves
src/lerobot/policies/pi0_fast/modeling_pi0_fast.py:355
↓ 3 callers
Method
enable_torque
Enable torque on selected motors.
src/lerobot/motors/damiao/damiao.py:295
↓ 3 callers
Function
expected_value_from_logits
(logits: torch.Tensor, bin_centers: torch.Tensor)
src/lerobot/values/pistar06/modeling_pistar06.py:80
↓ 3 callers
Method
extract_feature
(self, pixel_values)
src/lerobot/policies/groot/eagle2_hg_model/modeling_eagle2_5_vl.py:299
↓ 3 callers
Method
extract_images_and_labels
Extract image tensors and label tensors from batch.
src/lerobot/policies/sac/reward_model/modeling_classifier.py:214
↓ 3 callers
Function
extract_state_from_raw_observation
Extract the state from a raw observation.
src/lerobot/async_inference/helpers.py:115
↓ 3 callers
Function
fake_rgb
(h, w)
tests/policies/pi0_fast/test_pi0_fast_original_vs_lerobot.py:139
↓ 3 callers
Method
forward
Do a full training forward pass to compute the loss. Args: batch: Training batch containing observations and actions.
src/lerobot/policies/smolvla/modeling_smolvla.py:356
↓ 3 callers
Method
forward
(self, x, size)
src/lerobot/policies/xvla/modeling_florence2.py:256
↓ 3 callers
Method
forward_kinematics
Compute forward kinematics for given joint configuration given the target frame name in the constructor. Args: joint_pos
src/lerobot/model/kinematics.py:55
↓ 3 callers
Method
from_config
(cls, config)
src/lerobot/policies/xvla/modeling_florence2.py:654
↓ 3 callers
Method
from_matrix
Create rotation from 3x3 rotation matrix. Args: matrix: 3x3 rotation matrix Returns: Rotation insta
src/lerobot/utils/rotation.py:66
↓ 3 callers
Method
from_pretrained
( cls: builtins.type["TrainPipelineConfig"], pretrained_name_or_path: str | Path, *,
src/lerobot/configs/train.py:177
↓ 3 callers
Method
from_rotvec
Create rotation from rotation vector using Rodrigues' formula. Args: rotvec: Rotation vector [x, y, z] where magnitude i
src/lerobot/utils/rotation.py:38
↓ 3 callers
Function
from_tensor_to_numpy
Convert a PyTorch tensor to a numpy array or scalar if applicable. If the input is not a tensor, it is returned unchanged. Args:
src/lerobot/processor/converters.py:140
↓ 3 callers
Function
get_delta_indices
Convert delta timestamps in seconds to delta indices in frames. Args: delta_timestamps (dict): A dictionary of time deltas in seconds.
src/lerobot/datasets/utils.py:888
↓ 3 callers
Function
get_frames_expected_order
Replicates the shuffling logic of StreamingLeRobotDataset to get the expected order of indices.
tests/datasets/test_streaming.py:26
↓ 3 callers
Method
get_input_embeddings
(self)
src/lerobot/policies/groot/eagle2_hg_model/modeling_eagle2_5_vl.py:374
↓ 3 callers
Method
get_interfaces
(self)
src/lerobot/scripts/lerobot_setup_can.py:73
↓ 3 callers
Method
get_optimizer_preset
(self)
src/lerobot/configs/policies.py:119
↓ 3 callers
Function
get_output_shape
Calculates the output shape of a PyTorch module given an input shape. Args: module (nn.Module): a PyTorch module input_shape
src/lerobot/policies/utils.py:67
↓ 3 callers
Function
get_piper_sdk
()
src/lerobot/utils/piper_sdk.py:46
↓ 3 callers
Function
get_safe_default_codec
()
src/lerobot/datasets/video_utils.py:36
↓ 3 callers
Method
get_scheduler_preset
(self)
src/lerobot/configs/policies.py:123
↓ 3 callers
Method
get_task_index
Given a task in natural language, returns its task_index if the task already exists in the dataset, otherwise return None.
src/lerobot/datasets/lerobot_dataset.py:299
↓ 3 callers
Function
get_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
src/lerobot/datasets/video_utils.py:593
↓ 3 callers
Method
gradient_checkpointing_enable
Enable gradient checkpointing for memory optimization.
src/lerobot/policies/pi0/modeling_pi0.py:589
↓ 3 callers
Function
guess_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
src/lerobot/rl/buffer.py:739
↓ 3 callers
Function
hf_dataset_factory
(features_factory, tasks_factory, episodes_factory, img_array_factory)
tests/fixtures/dataset_factories.py:357
↓ 3 callers
Function
human_inloop_record
(cfg: RecordConfig)
src/lerobot/scripts/lerobot_human_inloop_record.py:135
↓ 3 callers
Function
img_factory
(img_array_factory)
tests/fixtures/dataset_factories.py:120
↓ 3 callers
Function
infer_collector_policy_id
Infer a stable policy identifier for frame-level provenance.
src/lerobot/utils/recording_annotations.py:62
↓ 3 callers
Function
infer_collector_policy_version
Infer a compact policy-version string suitable for metadata columns.
src/lerobot/utils/recording_annotations.py:78
↓ 3 callers
Method
init_rtc_processor
Initialize RTC processor if RTC is enabled in config.
src/lerobot/policies/pi0/modeling_pi0.py:1137
↓ 3 callers
Function
inside_slurm
Check whether the python process was launched through slurm
src/lerobot/utils/utils.py:34
↓ 3 callers
Method
inv
Invert this rotation. Composition of a rotation with its inverse results in an identity transformation. Returns:
src/lerobot/utils/rotation.py:224
↓ 3 callers
Function
item_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
src/lerobot/datasets/utils.py:1201
↓ 3 callers
Function
load_annotations_from_dataset
Load annotations from LeRobot dataset parquet files.
src/lerobot/data_processing/sarm_annotations/subtask_annotation.py:841
↓ 3 callers
Function
load_json
Load data from a JSON file. Args: fpath (Path): Path to the JSON file. Returns: Any: The data loaded from the JSON file.
src/lerobot/datasets/utils.py:257
↓ 3 callers
Function
load_jsonlines
(fpath: Path)
src/lerobot/datasets/v30/convert_dataset_v21_to_v30.py:132
↓ 3 callers
Function
load_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
src/lerobot/configs/parser.py:103
↓ 3 callers
Function
load_training_state
Loads the training step, optimizer state, scheduler state, and rng state. This is used to resume a training run. Args: checkpoin
src/lerobot/utils/train_utils.py:140
↓ 3 callers
Function
log
(t, eps=1e-20)
src/lerobot/policies/vqbet/vqbet_utils.py:939
↓ 3 callers
Function
make_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
src/lerobot/policies/pi0/modeling_pi0.py:103
↓ 3 callers
Function
make_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
src/lerobot/policies/smolvla/modeling_smolvla.py:102
↓ 3 callers
Function
make_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
src/lerobot/policies/pi05/modeling_pi05.py:101
↓ 3 callers
Function
make_default_robot_action_processor
()
src/lerobot/processor/factory.py:38
↓ 3 callers
Function
make_delta_timestamps
(delta_indices: list[int] | None, fps: int)
examples/tutorial/diffusion/diffusion_training_example.py:15
↓ 3 callers
Function
make_device_from_device_class
Dynamically instantiates an object from its `ChoiceRegistry` configuration. This factory uses the module path and class name from the `confi
src/lerobot/utils/import_utils.py:79
↓ 3 callers
Function
make_env_config
(env_type: str, **kwargs)
src/lerobot/envs/factory.py:31
↓ 3 callers
Function
make_groot_pre_post_processors
Create preprocessor and postprocessor for Groot policy. This creates a processing pipeline that transforms LeRobot data format into the forma
src/lerobot/policies/groot/processor_groot.py:67
↓ 3 callers
Function
make_lerobot_observation
Make a lerobot observation from a raw observation.
src/lerobot/async_inference/helpers.py:135
↓ 3 callers
Function
make_logger
Create a training logger based on config and environment. Returns SwanLabLogger if SWANLAB_API_KEY is set, WandBLogger otherwise. Returns Non
src/lerobot/rl/wandb_utils.py:289
↓ 3 callers
Function
make_pistar06_pre_post_processors
( config: Pistar06Config, dataset_stats: dict[str, dict[str, torch.Tensor]] | None = None, # noqa: AR
src/lerobot/values/pistar06/processor_pistar06.py:210
↓ 3 callers
Method
maybe_add_pos_embed
(self, tensor: Tensor, pos_embed: Tensor | None)
src/lerobot/policies/act/modeling_act.py:615
↓ 3 callers
Function
normalize
(x, min_val, max_val)
src/lerobot/policies/smolvla/modeling_smolvla.py:171
↓ 3 callers
Function
observation_normalizer
Return a NormalizerProcessorStep that only has observation stats (no action).
tests/processor/test_normalize_processor.py:131
↓ 3 callers
Function
observations_similar
Check if two observations are similar, under a tolerance threshold. Measures distance between observations as the difference in joint-space betwee
src/lerobot/async_inference/helpers.py:280
↓ 3 callers
Function
pad_state_to_max_dim
Pad the state tensor's last dimension to max_state_dim with zeros.
src/lerobot/policies/sarm/sarm_utils.py:203
↓ 3 callers
Function
pad_tensor
Efficiently pads a tensor along sequence dimension to match max_len. Args: tensor (torch.Tensor): Shape (B, L, ...) or (B, L).
src/lerobot/policies/smolvla/modeling_smolvla.py:506
↓ 3 callers
Function
pad_vector
Pad the last dimension of a vector to new_dim with zeros. Can be (batch_size x sequence_length x features_dimension) or (batch_size x feature
src/lerobot/policies/pi05/modeling_pi05.py:133
↓ 3 callers
Function
parse_arg
(arg_name: str, args: Sequence[str] | None = None)
src/lerobot/configs/parser.py:58
↓ 3 callers
Function
predict_action
Performs a single-step inference to predict a robot action from an observation. This function encapsulates the full inference pipeline:
src/lerobot/utils/control_utils.py:181
↓ 3 callers
Method
proprioception_proj
Project proprioceptive data to hidden space.
src/lerobot/policies/wall_x/modeling_wall_x.py:235
↓ 3 callers
Function
push_transitions_to_transport_queue
Send transitions to learner in smaller chunks to avoid network issues. Args: transitions: List of transitions to send message_que
src/lerobot/rl/actor.py:684
↓ 3 callers
Method
read
Read a value from a single motor. Positions are always in degrees.
src/lerobot/motors/damiao/damiao.py:586
↓ 3 callers
Method
register_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.
src/lerobot/processor/pipeline.py:1264
↓ 3 callers
Method
reset
(self)
src/lerobot/utils/logging_utils.py:33
↓ 3 callers
Method
reset_averages
Resets average meters.
src/lerobot/utils/logging_utils.py:164
↓ 3 callers
Method
reset_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
src/lerobot/motors/motors_bus.py:741
↓ 3 callers
Method
rnea
(model, data, q, v, a)
tests/test_piper_teleop.py:552
↓ 3 callers
Method
run
(self, data=None, rank: int = 0, world_size: int = 1)
examples/port_datasets/slurm_upload.py:152
↓ 3 callers
Method
sample_actions
Do a full inference forward and compute the action.
src/lerobot/policies/pi0/modeling_pi0.py:803
↓ 3 callers
Method
sample_actions_fast
Inefficient but safe autoregressive decoding for FAST tokens. Matches the pattern of _generate_subtask_tokens. TODO: jadechog
src/lerobot/policies/pi0_fast/modeling_pi0_fast.py:584
↓ 3 callers
Function
save_scheduler_state
(scheduler: LRScheduler, save_dir: Path)
src/lerobot/optim/schedulers.py:135
↓ 3 callers
Function
save_training_state
Saves the training step, optimizer state, scheduler state, and rng state. Args: save_dir (Path): The directory to save artifacts to.
src/lerobot/utils/train_utils.py:113
↓ 3 callers
Function
save_training_step
(step: int, save_dir: Path)
src/lerobot/utils/train_utils.py:48
↓ 3 callers
Method
set_manual_control
(self, enabled: bool)
src/lerobot/teleoperators/piper_leader/piper_leader.py:214
↓ 3 callers
Method
set_manual_control
(self, enabled: bool)
src/lerobot/teleoperators/so_leader/so_leader.py:137
↓ 3 callers
Method
set_manual_control
(self, enabled: bool)
tests/test_piper_teleop.py:818
↓ 3 callers
Function
set_seed
Set random seed for reproducibility.
examples/rtc/eval_dataset.py:125
↓ 3 callers
Function
set_seed_all
Set random seed for all RNG sources to ensure reproducibility.
tests/policies/groot/test_groot_lerobot.py:64
↓ 3 callers
Method
set_trainable_parameters
(self, tune_llm: bool, tune_visual: bool)
src/lerobot/policies/groot/groot_n1.py:99
↓ 3 callers
Function
shift_tokens_right
Shift input ids one token to the right.
src/lerobot/policies/xvla/modeling_florence2.py:682
↓ 3 callers
Method
sphere
(self, path: str, r: float, rgba: tuple[float, float, float, float])
src/lerobot/teleoperators/unitree_g1/exo_ik.py:60
↓ 3 callers
Method
start_image_writer
(self, num_processes: int = 0, num_threads: int = 4)
src/lerobot/datasets/lerobot_dataset.py:1549
↓ 3 callers
Method
step
Updates metrics that depend on 'step' for one step.
src/lerobot/utils/logging_utils.py:130
← previous
next →
601–700 of 5,633, ranked by callers