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
↓ 6 callers
Method
_apply_checkpoint
Helper method to apply gradient checkpointing if enabled.
src/lerobot/policies/pi05/modeling_pi05.py:605
↓ 6 callers
Function
_assert_type_and_shape
Validate that all statistics have correct types and shapes. Args: stats_list: List of statistics dictionaries to validate Raises:
src/lerobot/datasets/compute_stats.py:550
↓ 6 callers
Method
_build_model_inputs
(self, batch: dict[str, Tensor])
src/lerobot/policies/xvla/modeling_xvla.py:372
↓ 6 callers
Method
_build_send_fn
(packet: bytes, num_invalid_try: int = 0)
tests/mocks/mock_dynamixel.py:583
↓ 6 callers
Method
_build_send_fn
(packet: bytes, num_invalid_try: int = 0)
tests/mocks/mock_feetech.py:431
↓ 6 callers
Method
_close_writer
Close and cleanup the parquet writer if it exists.
src/lerobot/datasets/lerobot_dataset.py:763
↓ 6 callers
Method
_from_calibration_units
(self, value: int)
src/lerobot/teleoperators/piper_leader/piper_leader.py:364
↓ 6 callers
Function
_parse_hub_url
(hub_uri: str)
src/lerobot/envs/utils.py:241
↓ 6 callers
Method
_pos_from_val
(self, v)
src/lerobot/motors/calibration_gui.py:86
↓ 6 callers
Method
_preprocess_images
Preprocess images for the model. Images from LeRobot are typically in [B, C, H, W] format and normalized to [0, 1]. PaliGemma expects
src/lerobot/policies/pi0/modeling_pi0.py:1153
↓ 6 callers
Function
build_dataset_frame
Construct a single data frame from raw values based on dataset features. A "frame" is a dictionary containing all the data for a single timestep,
src/lerobot/datasets/utils.py:678
↓ 6 callers
Function
bytes_to_python_object
(buffer: bytes)
src/lerobot/transport/utils.py:132
↓ 6 callers
Function
bytes_to_transitions
(buffer: bytes)
src/lerobot/transport/utils.py:140
↓ 6 callers
Function
check_delta_timestamps
Check if delta timestamps are multiples of 1/fps +/- tolerance. This ensures that adding these delta timestamps to any existing timestamp in
src/lerobot/datasets/utils.py:844
↓ 6 callers
Method
connect
(self, calibrate: bool = True)
src/lerobot/robots/piper_follower/piper_follower.py:98
↓ 6 callers
Function
create_config_with_visual_input
( state_dim: int, continuous_action_dim: int, has_discrete_action: bool = False )
tests/policies/test_sac_policy.py:201
↓ 6 callers
Function
create_default_config
Create a default SmolVLA configuration for testing.
tests/processor/test_smolvla_processor.py:59
↓ 6 callers
Function
create_dummy_data
Create dummy data for testing both implementations.
tests/policies/pi0_fast/test_pi0_fast_original_vs_lerobot.py:132
↓ 6 callers
Method
denoise_step
Apply one denoising step of the noise `x_t` at a given timestep.
src/lerobot/policies/pi0/modeling_pi0.py:886
↓ 6 callers
Function
dict_properties
()
tests/utils/test_replay_buffer.py:156
↓ 6 callers
Function
encode_sign_magnitude
https://en.wikipedia.org/wiki/Signed_number_representations#Sign%E2%80%93magnitude
src/lerobot/motors/encoding_utils.py:16
↓ 6 callers
Function
encode_twos_complement
https://en.wikipedia.org/wiki/Signed_number_representations#Two%27s_complement
src/lerobot/motors/encoding_utils.py:39
↓ 6 callers
Function
enter_pressed
()
src/lerobot/utils/utils.py:260
↓ 6 callers
Function
establish_learner_connection
Establish a connection with the learner. Args: stub (services_pb2_grpc.LearnerServiceStub): The stub to use for the connection. s
src/lerobot/rl/actor.py:407
↓ 6 callers
Method
forward
Run the batch through the model and compute the loss for training. Args: batch: Training batch containing observations and action
src/lerobot/policies/pi0/modeling_pi0.py:1264
↓ 6 callers
Method
forward
Run the batch through the model and compute the loss for training. Args: batch: Training batch containing observations and action
src/lerobot/policies/pi05/modeling_pi05.py:1244
↓ 6 callers
Function
get_safe_torch_device
Given a string, return a torch.device with checks on whether the device is available.
src/lerobot/utils/utils.py:57
↓ 6 callers
Function
info_factory
(features_factory)
tests/fixtures/dataset_factories.py:151
↓ 6 callers
Function
load_and_compare
(i)
tests/datasets/test_datasets.py:555
↓ 6 callers
Method
load_state_dict
Loads the step's state from a state dictionary. Args: state: A dictionary of state tensors.
src/lerobot/processor/pipeline.py:200
↓ 6 callers
Method
log_dict
( self, d: dict, step: int | None = None, mode: str = "train", custom_step_key: str | None = None
src/lerobot/rl/wandb_utils.py:158
↓ 6 callers
Function
make_optimizers
Create optimizers for the SAC policy.
tests/policies/test_sac_policy.py:141
↓ 6 callers
Method
ping
Builds a 'Ping' status packet. Args: scs_id (int): ID of the servo responding. error (int, optional): Error to be ret
tests/mocks/mock_feetech.py:233
↓ 6 callers
Method
predict_action_chunk
( self, batch: dict[str, Tensor], noise: Tensor | None = None, **kwargs: Unpack[ActionSelectKwargs]
src/lerobot/policies/smolvla/modeling_smolvla.py:311
↓ 6 callers
Function
python_object_to_bytes
(python_object: Any)
src/lerobot/transport/utils.py:128
↓ 6 callers
Function
record
(cfg: RecordConfig)
src/lerobot/scripts/lerobot_record.py:322
↓ 6 callers
Function
save_optimizer_state
Save optimizer state to disk. Args: optimizer: Either a single optimizer or a dictionary of optimizers. save_dir: Directory to sa
src/lerobot/optim/optimizers.py:283
↓ 6 callers
Method
set_baudrate
Set a new UART baud-rate on the port. Args: baudrate (int): Desired baud-rate in bits / second. Raises: Runt
src/lerobot/motors/motors_bus.py:698
↓ 6 callers
Function
state_to_bytes
Convert model state dict to flat array for transmission
src/lerobot/transport/utils.py:113
↓ 6 callers
Function
stats_factory
()
tests/fixtures/dataset_factories.py:191
↓ 6 callers
Function
tasks_factory
()
tests/fixtures/dataset_factories.py:221
↓ 6 callers
Method
tf
(self, path: str, mat: np.ndarray)
src/lerobot/teleoperators/unitree_g1/exo_ik.py:87
↓ 6 callers
Method
update
Update the target model's parameters with an EMA step.
src/lerobot/policies/tdmpc/modeling_tdmpc.py:511
↓ 6 callers
Method
update
Update configuration parameters. Args: **kwargs: Key-value pairs to update Returns: X2RDataProcessingConfig:
src/lerobot/policies/wall_x/utils.py:90
↓ 6 callers
Method
update_with_decay
(self, buffer_name, new_value, decay)
src/lerobot/policies/vqbet/vqbet_utils.py:1262
↓ 6 callers
Function
use_threads
(cfg: TrainRLServerPipelineConfig)
src/lerobot/rl/learner.py:1042
↓ 6 callers
Function
write_image
Saves a NumPy array or PIL Image to a file. This function handles both NumPy arrays and PIL Image objects, converting the former to a PI
src/lerobot/datasets/image_writer.py:71
↓ 6 callers
Function
write_json
Write data to a JSON file. Creates parent directories if they don't exist. Args: data (dict): The dictionary to write. fpath
src/lerobot/datasets/utils.py:270
↓ 5 callers
Method
GetArmGripperMsgs
(self)
tests/test_piper_teleop.py:172
↓ 5 callers
Method
GetArmJointMsgs
(self)
tests/test_piper_teleop.py:166
↓ 5 callers
Method
Qs
Predict state-action value for all of the learned Q functions. Args: z: (*, latent_dim) tensor for the current state's latent rep
src/lerobot/policies/tdmpc/modeling_tdmpc.py:663
↓ 5 callers
Method
__init__
GPT model gets hyperparameters from a config object. Please refer configuration_vqbet.py for more details.
src/lerobot/policies/vqbet/vqbet_utils.py:174
↓ 5 callers
Method
__init__
(self, input_dim: int, hidden_dim: int, output_dim: int, num_categories: int = 1)
src/lerobot/policies/evo1/flow_matching.py:71
↓ 5 callers
Function
_create_mock_lerobot_features
Create mock lerobot features mapping similar to what hw_to_dataset_features returns.
tests/async_inference/test_helpers.py:223
↓ 5 callers
Function
_create_mock_policy_image_features
Create mock policy image features with different resolutions.
tests/async_inference/test_helpers.py:244
↓ 5 callers
Function
_create_mock_robot_observation
Create a mock robot observation with motor positions and camera images.
tests/async_inference/test_helpers.py:211
↓ 5 callers
Method
_float_to_uint
Convert float to unsigned integer for CAN transmission.
src/lerobot/motors/damiao/damiao.py:529
↓ 5 callers
Method
_get_image_file_dir
(self, episode_index: int, image_key: str)
src/lerobot/datasets/lerobot_dataset.py:1136
↓ 5 callers
Method
_get_motor_name
Get motor name from name or ID.
src/lerobot/motors/damiao/damiao.py:837
↓ 5 callers
Function
_make_actions
Generate `count` consecutive TimedAction objects starting at timestep `start_t`.
tests/async_inference/test_robot_client.py:73
↓ 5 callers
Function
_normalize_hub_result
Normalize possible return types from hub `make_env` into the mapping: { suite_name: { task_id: vector_env } } Accepts: - dict (as
src/lerobot/envs/utils.py:330
↓ 5 callers
Function
_predict_policy_action_with_acp_inference
( *, observation_frame: dict[str, np.ndarray], policy: PreTrainedPolicy, device: torch.device,
src/lerobot/scripts/recording_hil.py:118
↓ 5 callers
Method
_resolve_step_class
Resolve step class from registry or import path. This method implements a two-tier resolution strategy: **Tier 1: Registry-based res
src/lerobot/processor/pipeline.py:792
↓ 5 callers
Method
_serialize_data
Converts an unsigned integer value into a list of byte-sized integers to be sent via a communication protocol. Depending on the proto
src/lerobot/motors/motors_bus.py:905
↓ 5 callers
Method
_use_uncalibrated_passthrough
(self)
src/lerobot/teleoperators/piper_leader/piper_leader.py:132
↓ 5 callers
Function
apply_rewind_augmentation
Generate rewind frame indices for temporal augmentation. Rewind simulates going backwards through previously seen frames, starting from
src/lerobot/policies/sarm/sarm_utils.py:135
↓ 5 callers
Function
apply_rope
Applies RoPE positions [B, L] to x [B, L, H, D].
src/lerobot/policies/smolvla/smolvlm_with_expert.py:28
↓ 5 callers
Function
assert_same_address
(model_ctrl_table: dict[str, dict], motor_models: list[str], data_name: str)
src/lerobot/motors/motors_bus.py:137
↓ 5 callers
Method
build
(self, params: OptimizerParams)
src/lerobot/optim/optimizers.py:124
↓ 5 callers
Method
build
Build multiple Adam optimizers. Args: params: Must be a dict[str, Iterable[Parameter]] mapping parameter group names
src/lerobot/optim/optimizers.py:248
↓ 5 callers
Function
bytes_buffer_size
(buffer: io.BytesIO)
src/lerobot/transport/utils.py:38
↓ 5 callers
Function
calculate_episode_data_index
Calculate episode data index for the provided HuggingFace Dataset. Relies on episode_index column of hf_dataset. Parameters: - hf_datase
src/lerobot/datasets/push_dataset_to_hub/utils.py:22
↓ 5 callers
Function
compute_absolute_indices
Compute absolute frame indices with clamping for bidirectional observation sequence. Bidirectional sampling centered on target frame: - Befor
src/lerobot/policies/sarm/sarm_utils.py:87
↓ 5 callers
Function
compute_acp_indicator_stats
Compute ACP indicator ratio from dataset metadata or by scanning the indicator column.
src/lerobot/rl/acp_dataset_stats.py:108
↓ 5 callers
Method
connect
Connects to the RealSense camera specified in the configuration. Initializes the RealSense pipeline, configures the required streams
src/lerobot/cameras/realsense/camera_realsense.py:157
↓ 5 callers
Function
create_default_stats
Create default dataset statistics for testing.
tests/processor/test_smolvla_processor.py:81
↓ 5 callers
Method
create_repo
(self)
examples/port_datasets/slurm_upload.py:64
↓ 5 callers
Function
create_train_batch_with_visual_input
( batch_size: int = 8, state_dim: int = 10, action_dim: int = 10 )
tests/policies/test_sac_policy.py:116
↓ 5 callers
Method
disconnect
(self)
src/lerobot/robots/piper_follower/piper_follower.py:312
↓ 5 callers
Function
drawChart
(metricKey)
website/app.js:387
↓ 5 callers
Method
enable_torque
Enable torque on selected motors.
src/lerobot/motors/motors_bus.py:102
↓ 5 callers
Method
end_training
(self)
tests/value/test_lerobot_value_infer_viz.py:43
↓ 5 callers
Function
episodes_factory
(tasks_factory, stats_factory)
tests/fixtures/dataset_factories.py:232
↓ 5 callers
Method
forward
Run the batch through the model and compute the loss for training.
src/lerobot/policies/pi0_fast/modeling_pi0_fast.py:1320
↓ 5 callers
Method
from_pretrained
( cls, pretrained_name_or_path: str | Path, *, config: Pistar06Config | None =
src/lerobot/values/pistar06/modeling_pistar06.py:566
↓ 5 callers
Method
get_action
( self, inputs: dict, )
src/lerobot/policies/groot/groot_n1.py:309
↓ 5 callers
Method
get_config
(self)
tests/processor/test_pipeline.py:70
↓ 5 callers
Function
get_ctrl_table
(model_ctrl_table: dict[str, dict], model: str)
src/lerobot/motors/motors_bus.py:122
↓ 5 callers
Method
get_image_features
(self, pixel_values)
tests/value/test_pistar06_value_stack.py:69
↓ 5 callers
Method
get_input_embeddings
(self)
src/lerobot/policies/xvla/modeling_florence2.py:1514
↓ 5 callers
Method
get_observation
(self)
src/lerobot/async_inference/helpers.py:233
↓ 5 callers
Function
get_step_identifier
(step: int, total_steps: int)
src/lerobot/utils/train_utils.py:37
↓ 5 callers
Function
has_method
(cls: object, method_name: str)
src/lerobot/utils/utils.py:243
↓ 5 callers
Method
is_debug_enabled
Check if debug tracking is enabled. Returns True if tracker exists and is enabled.
src/lerobot/policies/rtc/modeling_rtc.py:99
↓ 5 callers
Method
list
Returns a list of all registered processor step names.
src/lerobot/processor/pipeline.py:133
↓ 5 callers
Function
log_rerun_data
Logs observation and action data to Rerun for real-time visualization. This function iterates through the provided observation and action di
src/lerobot/utils/visualization_utils.py:53
↓ 5 callers
Function
make_default_processors
()
src/lerobot/processor/factory.py:58
↓ 5 callers
Function
make_robot_action
Converts a policy's output tensor into a dictionary of named actions. This function translates the numerical output from a policy model into a
src/lerobot/policies/utils.py:175
↓ 5 callers
Function
make_robot_env
Create robot environment from configuration. Args: cfg: Environment configuration. Returns: Tuple of (gym environment, teleo
src/lerobot/rl/gym_manipulator.py:302
↓ 5 callers
Method
predict
Forward pass of the classifier for inference.
src/lerobot/policies/sac/reward_model/modeling_classifier.py:222
← previous
next →
301–400 of 5,633, ranked by callers