MCPcopy Create free account

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

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

↓ 9 callersMethodget_prefix_weights
(self, start, end, total)
src/lerobot/policies/rtc/modeling_rtc.py:250
↓ 9 callersFunctionmake_dataset
Handles the logic of setting up delta timestamps and image transforms before creating a dataset. Args: cfg (TrainPipelineConfig): A Train
src/lerobot/datasets/factory.py:71
↓ 9 callersFunctionnormalize_episode_success_label
Normalize a user-provided episode label to canonical lowercase values.
src/lerobot/utils/recording_annotations.py:29
↓ 9 callersFunctionpopulate_queues
( queues: dict[str, deque], batch: dict[str, torch.Tensor], exclude_keys: list[str] | None = None )
src/lerobot/policies/utils.py:31
↓ 9 callersFunctionregister_third_party_plugins
Discover and import third-party LeRobot plugins so they can register themselves. This function uses `importlib.metadata` to find packages in
src/lerobot/utils/import_utils.py:144
↓ 9 callersFunctionsend_bytes_in_chunks
(buffer: bytes, message_class: Any, log_prefix: str = "", silent: bool = True)
src/lerobot/transport/utils.py:45
↓ 9 callersMethodsetup_motor
Assign the correct ID and baud-rate to a single motor. This helper temporarily switches to the motor's current settings, disables torque, set
src/lerobot/motors/motors_bus.py:576
↓ 9 callersMethodvalidate
(self)
src/lerobot/configs/train.py:89
↓ 9 callersFunctionwrite_stats
Serialize and write dataset statistics to their standard file path. Args: stats (dict): The statistics dictionary (can contain tensors/nu
src/lerobot/datasets/utils.py:305
↓ 8 callersMethod_forward
Executes all processing steps and hooks in sequence. Args: transition: The initial `EnvTransition` object. Returns:
src/lerobot/processor/pipeline.py:297
↓ 8 callersMethod_get_motor_id
Get CAN ID for a motor.
src/lerobot/motors/damiao/damiao.py:827
↓ 8 callersMethod_load_config
Load configuration from local file or Hugging Face Hub. This method implements a super-simplified 3-way loading strategy: 1. **Local
src/lerobot/processor/pipeline.py:589
↓ 8 callersMethod_save_calibration
Helper to save calibration data to the specified file. Args: fpath (Path | None): Optional path to save the calibration
src/lerobot/robots/robot.py:162
↓ 8 callersMethodaction
(self, action: PolicyAction)
src/lerobot/processor/policy_robot_bridge.py:56
↓ 8 callersFunctionaggregate_datasets
Aggregates multiple LeRobot datasets into a single unified dataset. This is the main function that orchestrates the aggregation process by: 1
src/lerobot/datasets/aggregate.py:233
↓ 8 callersFunctionaggregate_stats
Aggregate stats from multiple compute_stats outputs into a single set of stats. The final stats will have the union of all data keys from each of
src/lerobot/datasets/compute_stats.py:605
↓ 8 callersMethodapply
Apply this rotation to a set of vectors. This is equivalent to applying the rotation matrix to the vectors: self.as_matrix()
src/lerobot/utils/rotation.py:176
↓ 8 callersMethodasync_read
(self)
tests/test_piper_teleop.py:328
↓ 8 callersMethodbuild
(cls, dxl_id: int, params: list[int], length: int, *args, **kwargs)
tests/mocks/mock_dynamixel.py:67
↓ 8 callersFunctionbytes_to_state_dict
(buffer: bytes)
src/lerobot/transport/utils.py:122
↓ 8 callersMethodconnect
(self, calibrate: bool = True)
src/lerobot/teleoperators/piper_leader/piper_leader.py:105
↓ 8 callersMethoddisconnect
(self)
src/lerobot/teleoperators/piper_leader/piper_leader.py:456
↓ 8 callersMethodfrom_lerobot_dataset
Convert a LeRobotDataset into a ReplayBuffer. Args: lerobot_dataset (LeRobotDataset): The dataset to convert.
src/lerobot/rl/buffer.py:415
↓ 8 callersMethodget_action_index
Get the current action consumption index. Returns: int: Index of the next action to be consumed.
src/lerobot/policies/rtc/action_queue.py:105
↓ 8 callersFunctionget_hf_features_from_features
Convert a LeRobot features dictionary to a `datasets.Features` object. Args: features (dict): A LeRobot-style feature dictionary. Re
src/lerobot/datasets/utils.py:574
↓ 8 callersMethodget_left_over
Get leftover original actions for RTC prev_chunk_left_over. These are the unconsumed actions from the current chunk, which will be us
src/lerobot/policies/rtc/action_queue.py:113
↓ 8 callersFunctionget_policy_class
Retrieves a policy class by its registered name. This function uses dynamic imports to avoid loading all policy classes into memory at o
src/lerobot/policies/factory.py:62
↓ 8 callersFunctionis_package_available
Check if the package spec exists and grab its version to avoid importing a local directory. Args: pkg_name: The name of the package
src/lerobot/utils/import_utils.py:24
↓ 8 callersFunctionload_info
Load dataset info metadata from its standard file path. Also converts shape lists to tuples for consistency. Args: local_dir (Path):
src/lerobot/datasets/utils.py:288
↓ 8 callersFunctionmerge_datasets
Merge multiple LeRobotDatasets into a single dataset. This is a wrapper around the aggregate_datasets functionality with a cleaner API. Args
src/lerobot/datasets/dataset_tools.py:235
↓ 8 callersFunctionmilli_to_unit
(value: float | int)
src/lerobot/utils/piper_sdk.py:37
↓ 8 callersFunctionmove_cursor_up
Move the cursor up by a specified number of lines.
src/lerobot/utils/utils.py:272
↓ 8 callersMethodpredict_action_chunk
Predict a chunk of actions given environment observations.
src/lerobot/policies/pi0/modeling_pi0.py:1246
↓ 8 callersFunctionseeded_context
Set the seed when entering a context, and restore the prior random state at exit. Example usage: ``` a = random.random() # produces som
src/lerobot/utils/random_utils.py:183
↓ 8 callersMethodselect_action
Select action for inference/evaluation
src/lerobot/policies/sac/modeling_sac.py:84
↓ 8 callersMethodstate_dict
Returns the state of the step (e.g., learned parameters, running means). Returns: A dictionary mapping state names to tensors.
src/lerobot/processor/pipeline.py:192
↓ 8 callersFunctiontimestamp_to_seconds
Convert MM:SS or SS timestamp to seconds
src/lerobot/data_processing/sarm_annotations/subtask_annotation.py:470
↓ 7 callersMethod__init__
(self, config: DiffusionConfig)
src/lerobot/policies/diffusion/modeling_diffusion.py:165
↓ 7 callersMethod__init__
( self, in_channels: int, hidden_channels: list[int], )
src/lerobot/policies/vqbet/modeling_vqbet.py:890
↓ 7 callersMethod_apply_checkpoint
Helper method to apply gradient checkpointing if enabled.
src/lerobot/policies/pi0/modeling_pi0.py:608
↓ 7 callersFunction_capture_policy_runtime_state
(policy: PreTrainedPolicy)
src/lerobot/scripts/recording_hil.py:77
↓ 7 callersMethod_id_to_model
(self, motor_id: int)
src/lerobot/motors/motors_bus.py:396
↓ 7 callersMethod_id_to_name
(self, motor_id: int)
src/lerobot/motors/motors_bus.py:399
↓ 7 callersMethod_is_error
(self, error: int)
src/lerobot/motors/motors_bus.py:449
↓ 7 callersMethod_process_response
Decode a message and update the motor state cache.
src/lerobot/motors/damiao/damiao.py:569
↓ 7 callersMethod_reshape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
src/lerobot/policies/xvla/modeling_florence2.py:914
↓ 7 callersMethod_save_calibration
Helper to save calibration data to the specified file. Args: fpath (Path | None): Optional path to save the calibration
src/lerobot/teleoperators/teleoperator.py:160
↓ 7 callersMethod_sync_read
( self, addr: int, length: int, motor_ids: list[int], *, num_r
src/lerobot/motors/motors_bus.py:1157
↓ 7 callersMethodadd
Add a latency sample (seconds).
src/lerobot/policies/rtc/latency_tracker.py:41
↓ 7 callersFunctionauto_select_torch_device
Tries to select automatically a torch device.
src/lerobot/utils/utils.py:40
↓ 7 callersMethodcalculate_fps_metrics
Calculate average FPS vs target
src/lerobot/async_inference/helpers.py:245
↓ 7 callersFunctionclose_learner_service_stub
(channel, server)
tests/rl/test_learner_service.py:79
↓ 7 callersFunctioncompute_episode_stats
Compute comprehensive statistics for all features in an episode. Processes different data types appropriately: - Images/videos: Samples from
src/lerobot/datasets/compute_stats.py:477
↓ 7 callersFunctioncompute_temporal_proportions
Compute dataset-level temporal proportions (priors) for each subtask. Implements SARM Paper Formula (1): ᾱ_k = (1/M) × Σ_i (L_{i,k} / T_i)
src/lerobot/data_processing/sarm_annotations/subtask_annotation.py:103
↓ 7 callersFunctioncreate_default_config
( state_dim: int, continuous_action_dim: int, has_discrete_action: bool = False )
tests/policies/test_sac_policy.py:176
↓ 7 callersFunctioncreate_empty_replay_buffer
( optimize_memory: bool = False, use_drq: bool = False, image_augmentation_function: Callable | No
tests/utils/test_replay_buffer.py:42
↓ 7 callersFunctioncreate_learner_service_stub
( shutdown_event: Event, parameters_queue: Queue, transitions_queue: Queue, interactions_queue
tests/rl/test_learner_service.py:43
↓ 7 callersFunctiondataset_to_policy_features
Convert dataset features to policy features. This function transforms the dataset's feature specification into a format that a policy can use
src/lerobot/datasets/utils.py:707
↓ 7 callersFunctionencode_video_frames
More info on ffmpeg arguments tuning on `benchmark/video/README.md`
src/lerobot/datasets/video_utils.py:303
↓ 7 callersFunctionensure_safe_goal_position
Caps relative action target magnitude for safety.
src/lerobot/robots/utils.py:95
↓ 7 callersMethodget_action
(self)
src/lerobot/teleoperators/piper_leader/piper_leader.py:407
↓ 7 callersMethodget_action
(self)
src/lerobot/async_inference/helpers.py:224
↓ 7 callersFunctionget_device_from_parameters
Get a module's device by checking one of its parameters. Note: assumes that all parameters have the same device
src/lerobot/policies/utils.py:51
↓ 7 callersFunctionget_file_size_in_mb
Get file size on disk in megabytes. Args: file_path (Path): Path to the file.
src/lerobot/datasets/utils.py:145
↓ 7 callersMethodget_observation
Retrieve the current observation from the robot. Returns: RobotObservation: A flat dictionary representing the robot's c
src/lerobot/robots/robot.py:186
↓ 7 callersMethodget_observation
(self)
tests/mocks/mock_robot.py:119
↓ 7 callersMethodget_statistics
Compute and return the statistics of the vectors processed so far. Args: quantiles: List of quantiles to compute (e.g., [0.01, 0.
src/lerobot/datasets/compute_stats.py:94
↓ 7 callersFunctioninit_keyboard_listener
Initializes a non-blocking keyboard listener for real-time user interaction. This function sets up a listener for specific keys (right arrow
src/lerobot/utils/control_utils.py:232
↓ 7 callersFunctionlearner_service_client
Returns a client for the learner service. GRPC uses HTTP/2, which is a binary protocol and multiplexes requests over a single connection.
src/lerobot/rl/actor.py:438
↓ 7 callersMethodload_state_dict
Loads normalization statistics from a flat state dictionary. This enables loading stats from safetensors files during from_pretraine
src/lerobot/policies/groot/processor_groot.py:416
↓ 7 callersFunctionmake_default_teleop_action_processor
()
src/lerobot/processor/factory.py:27
↓ 7 callersFunctionmake_pi05_pre_post_processors
Constructs pre-processor and post-processor pipelines for the PI0 policy. The pre-processing pipeline prepares input data for the model by:
src/lerobot/policies/pi05/processor_pi05.py:100
↓ 7 callersFunctionmake_pi0_pre_post_processors
Constructs pre-processor and post-processor pipelines for the PI0 policy. The pre-processing pipeline prepares input data for the model by:
src/lerobot/policies/pi0/processor_pi0.py:97
↓ 7 callersFunctionmake_smolvla_pre_post_processors
Constructs pre-processor and post-processor pipelines for the SmolVLA policy. The pre-processing pipeline prepares input data for the model
src/lerobot/policies/smolvla/processor_smolvla.py:39
↓ 7 callersFunctionmodify_features
Modify a LeRobotDataset by adding and/or removing features in a single pass. This is the most efficient way to modify features, as it only copies
src/lerobot/datasets/dataset_tools.py:275
↓ 7 callersMethodpredict_action_chunk
Predict a chunk of actions given environment observations.
src/lerobot/policies/pi05/modeling_pi05.py:1227
↓ 7 callersFunctionpreprocess_observation
Convert environment observation to LeRobot format observation. Args: observation: Dictionary of observation batches from a Gym vector envi
src/lerobot/envs/utils.py:49
↓ 7 callersFunctionraw_observation_to_observation
( raw_observation: RawObservation, lerobot_features: dict[str, dict], policy_image_features: dict[
src/lerobot/async_inference/helpers.py:88
↓ 7 callersMethodrecord_ranges_of_motion
Interactively record the min/max encoder values of each motor. Move the joints by hand (with torque disabled) while the method streams live p
src/lerobot/motors/motors_bus.py:790
↓ 7 callersMethodrender
(self)
src/lerobot/envs/libero.py:224
↓ 7 callersFunctionresolve_episode_success_label
Resolve the final episode-success label from explicit and default values.
src/lerobot/utils/recording_annotations.py:41
↓ 7 callersMethodsend_action
(self, action: RobotAction)
src/lerobot/scripts/recording_hil.py:196
↓ 7 callersMethodset_half_turn_homings
Centre each motor range around its current position. The function computes and writes a homing offset such that the present position becomes
src/lerobot/motors/motors_bus.py:762
↓ 7 callersFunctionset_seed_all
Set random seed for all RNG sources to ensure reproducibility.
tests/policies/pi0_fast/test_pi0_fast_original_vs_lerobot.py:74
↓ 7 callersMethodshutdown
(self)
src/lerobot/scripts/recording_hil.py:208
↓ 7 callersMethodstart
Start the controller and initialize resources.
src/lerobot/teleoperators/gamepad/gamepad_utils.py:43
↓ 7 callersMethodstub
(self, *, name=None, **kwargs)
tests/mocks/mock_dynamixel.py:450
↓ 7 callersMethodstub
(self, *, name=None, **kwargs)
tests/mocks/mock_feetech.py:303
↓ 7 callersMethodsync_read
Read the same value from multiple motors simultaneously.
src/lerobot/motors/damiao/damiao.py:638
↓ 7 callersFunctiontemporal_proportions_to_breakpoints
Convert temporal proportions to cumulative breakpoints for normalization.
src/lerobot/policies/sarm/sarm_utils.py:214
↓ 7 callersFunctiontmp_json_file
Writes `data` to a temporary JSON file and returns the file's path.
tests/utils/test_io_utils.py:27
↓ 7 callersFunctiontoX
(i)
website/app.js:422
↓ 7 callersMethodtorque_disabled
Context-manager that guarantees torque is re-enabled. This helper is useful to temporarily disable torque when configuring motors. E
src/lerobot/motors/motors_bus.py:664
↓ 7 callersMethodtrain
Set training mode for augmentation decisions.
src/lerobot/policies/sarm/processor_sarm.py:391
↓ 7 callersMethodtransform_features
( self, features: dict[PipelineFeatureType, dict[str, PolicyFeature]] )
src/lerobot/processor/normalize_processor.py:468
↓ 7 callersMethodwait_called
(self, timeout: float = 1.0)
tests/mocks/mock_serial_patch.py:42
↓ 7 callersFunctionwrite_tasks
(tasks: pandas.DataFrame, local_dir: Path)
src/lerobot/datasets/utils.py:346
↓ 6 callersMethod__init__
(self, config: ACTConfig)
src/lerobot/policies/act/modeling_act.py:291
↓ 6 callersMethod__init__
(self)
src/lerobot/policies/xvla/action_hub.py:71
↓ 6 callersFunction_agg_from_list
(xs)
src/lerobot/scripts/lerobot_eval.py:771
← previousnext →201–300 of 5,633, ranked by callers