MCPcopy Create free account

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

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

↓ 603 callersMethodinfo
Processes an 'info' dictionary. Subclasses must implement this method. Args: info: The input 'info' dictionary from the transitio
src/lerobot/processor/pipeline.py:1648
↓ 585 callersMethodget
Get the next action from the queue. Returns: Tensor | None: The next action (action_dim,) or None if queue is empty.
src/lerobot/policies/rtc/action_queue.py:67
↓ 334 callersFunctioncreate_transition
Create an `EnvTransition` dictionary with sensible defaults. Args: observation: Observation dictionary. action: Action dicti
src/lerobot/processor/converters.py:179
↓ 325 callersMethodto
Override to method to ensure all components move together.
src/lerobot/policies/sarm/modeling_sarm.py:465
↓ 127 callersMethodvalues
(self)
src/lerobot/motors/calibration_gui.py:214
↓ 107 callersMethodparameters
Override to return trainable parameters from both models.
src/lerobot/policies/sarm/modeling_sarm.py:622
↓ 100 callersMethodempty
Check if the queue is empty. Returns: bool: True if no actions remain, False otherwise.
src/lerobot/policies/rtc/action_queue.py:93
↓ 98 callersMethodadd
Saves a transition, ensuring tensors are stored on the designated storage device.
src/lerobot/rl/buffer.py:190
↓ 92 callersMethodget
Retrieves a processor step class from the registry by its name. Args: name: The name of the step to retrieve. Returns:
src/lerobot/processor/pipeline.py:102
↓ 91 callersMethodmax
Return the maximum latency or None if empty.
src/lerobot/policies/rtc/latency_tracker.py:54
↓ 86 callersMethodsize
Return the number of cached decoders.
src/lerobot/datasets/video_utils.py:205
↓ 85 callersMethodeval
Set evaluation mode for both models.
src/lerobot/policies/sarm/modeling_sarm.py:618
↓ 85 callersFunctionpreprocessor
Fixture to provide the XVLA preprocessor for tests.
tests/policies/xvla/test_xvla_original_vs_lerobot.py:148
↓ 85 callersMethodto
(self, *args, **kwargs)
tests/async_inference/test_e2e.py:77
↓ 72 callersFunctiontransition_to_batch
Convert an `EnvTransition` back to the canonical batch format used in LeRobot. This is the inverse of `batch_to_transition`. Args:
src/lerobot/processor/converters.py:368
↓ 68 callersMethodfrom_pretrained
(cls, *args, **kwargs)
tests/value/test_pistar06_value_stack.py:33
↓ 66 callersMethodreplace
(self, batch_samples, batch_mask)
src/lerobot/policies/vqbet/vqbet_utils.py:1346
↓ 62 callersMethodconnect
(self, calibrate: bool = True)
tests/mocks/mock_robot.py:102
↓ 58 callersMethodadd_frame
This function only adds the frame to the episode_buffer. Apart from images — which are written in a temporary directory — nothing is
src/lerobot/datasets/lerobot_dataset.py:1149
↓ 56 callersMethodsave_episode
This will save to disk the current episode in self.episode_buffer. Video encoding is handled automatically based on batch_encoding_s
src/lerobot/datasets/lerobot_dataset.py:1193
↓ 56 callersMethodupdate
(self, val: float, n: int = 1)
src/lerobot/utils/logging_utils.py:39
↓ 53 callersMethodwrite
Write a value to a single motor.
src/lerobot/motors/motors_bus.py:87
↓ 52 callersMethodmerge
Merge new actions into the queue. This method operates differently based on RTC mode: - RTC enabled: Replaces the queue, accounting f
src/lerobot/policies/rtc/action_queue.py:128
↓ 51 callersMethoddevice
(self)
src/lerobot/policies/evo1/internvl3_embedder.py:460
↓ 45 callersMethodsave_pretrained
Saves the pipeline's configuration and state to a directory. This method creates a JSON configuration file that defines the pipeline's struct
src/lerobot/processor/pipeline.py:397
↓ 44 callersMethodset
(self, data)
src/lerobot/robots/unitree_g1/unitree_g1.py:83
↓ 43 callersMethodstart
(self)
src/lerobot/utils/utils.py:349
↓ 42 callersMethodclose
(self)
src/lerobot/envs/libero.py:352
↓ 42 callersMethodis_alive
(self)
src/lerobot/utils/control_utils.py:96
↓ 42 callersMethodqsize
Get the number of remaining actions in the queue. Returns: int: Number of unconsumed actions.
src/lerobot/policies/rtc/action_queue.py:82
↓ 40 callersMethodupdate
Update the running statistics with a batch of vectors. Args: batch: An array where all dimensions except the last are batch dimen
src/lerobot/datasets/compute_stats.py:48
↓ 39 callersFunctionempty_lerobot_dataset_factory
()
tests/fixtures/dataset_factories.py:557
↓ 39 callersFunctionto_tensor
Convert various data types to PyTorch tensors with configurable options. This is a unified tensor conversion function using single dispatch
src/lerobot/processor/converters.py:32
↓ 39 callersMethodtrack
Track debug information for a denoising step at a given time. If a step with the given time already exists, it will be updated with the new d
src/lerobot/policies/rtc/debug_tracker.py:125
↓ 38 callersMethodget_timestep
(self)
src/lerobot/async_inference/helpers.py:216
↓ 38 callersMethodstep
(self, action: np.ndarray)
src/lerobot/envs/libero.py:322
↓ 36 callersFunctionlog_say
(text: str, play_sounds: bool = True, blocking: bool = False)
src/lerobot/utils/utils.py:226
↓ 35 callersMethodclear
Clear the cache and close file handles.
src/lerobot/datasets/video_utils.py:198
↓ 33 callersFunctionpolicy_feature_factory
PolicyFeature factory
tests/conftest.py:76
↓ 31 callersMethodsave_pretrained
Save object in local directory. Args: save_directory (`str` or `Path`): Path to directory in which the o
src/lerobot/utils/hub.py:36
↓ 31 callersFunctionset_seed
Set seed for reproducibility.
src/lerobot/utils/random_utils.py:167
↓ 30 callersMethodconnect
Establish communication with the robot. Args: calibrate (bool): If True, automatically calibrate the robot after connect
src/lerobot/robots/robot.py:125
↓ 30 callersMethodfinalize
Close the parquet writers. This function needs to be called after data collection/conversion, else footer metadata won't be written to the pa
src/lerobot/datasets/lerobot_dataset.py:1111
↓ 30 callersMethodstate_dict
(self)
tests/processor/test_pipeline.py:75
↓ 29 callersMethoddisconnect
Disconnect from the robot and perform any necessary cleanup.
src/lerobot/robots/robot.py:213
↓ 28 callersFunctioninit_logging
Initialize logging configuration for LeRobot. In multi-GPU training, only the main process logs to console to avoid duplicate output. Non-mai
src/lerobot/utils/utils.py:130
↓ 28 callersMethodpush_to_hub
Upload model checkpoint to the Hub. Use `allow_patterns` and `ignore_patterns` to precisely filter which files should be pushed to t
src/lerobot/utils/hub.py:130
↓ 27 callersMethodcreate
Create a LeRobot Dataset from scratch in order to record data.
src/lerobot/datasets/lerobot_dataset.py:1583
↓ 27 callersFunctionmake_pre_post_processors
Create or load pre- and post-processor pipelines for a given policy. This function acts as a factory. It can either load existing processor
src/lerobot/policies/factory.py:221
↓ 25 callersMethodfrom_pretrained
Download the object from the Huggingface Hub and instantiate it. Args: pretrained_name_or_path (`str`, `Path`):
src/lerobot/utils/hub.py:88
↓ 25 callersFunctionlerobot_dataset_factory
( info_factory, stats_factory, tasks_factory, episodes_factory, hf_dataset_factory, mo
tests/fixtures/dataset_factories.py:468
↓ 24 callersFunctionnormalize_stage_tau
Normalize stage+tau reward to [0, 1] with custom breakpoints. Maps stage index + within-stage tau to normalized progress [0, 1]. The bre
src/lerobot/policies/sarm/sarm_utils.py:244
↓ 23 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act_laye
src/lerobot/policies/xvla/modeling_florence2.py:236
↓ 23 callersMethodstop
(self)
src/lerobot/datasets/image_writer.py:183
↓ 23 callersMethodtrain
Set training mode for both models.
src/lerobot/policies/sarm/modeling_sarm.py:611
↓ 22 callersFunctionimg_tensor_factory
()
tests/fixtures/dataset_factories.py:62
↓ 22 callersMethodsample
Sample a random batch of transitions and collate them into batched tensors.
src/lerobot/rl/buffer.py:232
↓ 21 callersFunctioncreate_dummy_state
()
tests/utils/test_replay_buffer.py:100
↓ 21 callersMethoddecode
This method forwards all its arguments to LlamaTokenizerFast's [`~PreTrainedTokenizer.decode`]. Please refer to the docstring of this
src/lerobot/policies/groot/eagle2_hg_model/processing_eagle2_5_vl.py:438
↓ 21 callersMethodencode
Encodes an observation into its latent representation.
src/lerobot/policies/tdmpc/modeling_tdmpc.py:605
↓ 20 callersMethod__init__
(self, config)
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:663
↓ 20 callersMethodget_all_steps
Get all recorded debug steps. Returns: List of all DebugStep objects (may be empty if disabled).
src/lerobot/policies/rtc/debug_tracker.py:218
↓ 20 callersMethodto
Moves the processor's normalization stats to the specified device. Args: device: The target PyTorch device. Ret
src/lerobot/processor/normalize_processor.py:135
↓ 19 callersFunctioncreate_dummy_action
()
tests/utils/test_replay_buffer.py:152
↓ 19 callersFunctionfind_stage_and_tau
Find stage and within-stage progress (tau) for a frame. Args: current_frame: Frame index relative to episode start episode_length
src/lerobot/policies/sarm/sarm_utils.py:24
↓ 19 callersFunctionmake_robot_from_config
(config: RobotConfig)
src/lerobot/robots/utils.py:25
↓ 19 callersMethodtype
(self)
src/lerobot/envs/configs.py:52
↓ 19 callersMethodwrite
Builds a "Write" instruction. The parameters for Write are: param[0] = start_address L param[1] = start_
tests/mocks/mock_feetech.py:112
↓ 18 callersFunctionmake_identity_calibration
()
tests/test_piper_teleop.py:191
↓ 18 callersFunctionpatch_fake_sdk
(monkeypatch)
tests/test_piper_teleop.py:182
↓ 18 callersMethodreset
(self)
tests/processor/test_pipeline.py:83
↓ 17 callersMethod_is_comm_success
(self, comm: int)
src/lerobot/motors/motors_bus.py:446
↓ 17 callersMethodforward
Compute the loss for the given model Args: batch: Dictionary containing: - action: Action tensor
src/lerobot/policies/sac/modeling_sac.py:139
↓ 17 callersFunctionimg_array_factory
()
tests/fixtures/dataset_factories.py:70
↓ 17 callersFunctionload_episodes
(local_dir: Path)
src/lerobot/datasets/utils.py:387
↓ 17 callersMethodmodel
(self, batch)
tests/async_inference/test_e2e.py:80
↓ 17 callersFunctionprecise_sleep
Wait for `seconds` with better precision than time.sleep alone at the expense of more CPU usage. Parameters: - seconds: duration to wa
src/lerobot/utils/robot_utils.py:19
↓ 17 callersMethodsync_read
Read a value from multiple motors.
src/lerobot/motors/motors_bus.py:92
↓ 17 callersMethodwrite
Write a value to a single motor. Positions are always in degrees. Can write 'Goal_Position', 'Kp', or 'Kd'.
src/lerobot/motors/damiao/damiao.py:618
↓ 17 callersMethodwrite_calibration
Write calibration parameters to the motors.
src/lerobot/motors/motors_bus.py:117
↓ 16 callersMethod_write
( self, addr: int, length: int, motor_id: int, value: int, *,
src/lerobot/motors/motors_bus.py:1083
↓ 16 callersFunctionaggregate_pipeline_dataset_features
Aggregates and filters pipeline features to create a dataset-ready features dictionary. This function transforms initial features using the
src/lerobot/datasets/pipeline_features.py:67
↓ 16 callersMethodfrom_pretrained
(cls, pretrained_model_name_or_path: str, **kwargs)
src/lerobot/policies/groot/groot_n1.py:344
↓ 16 callersFunctionget_feature_stats
Compute comprehensive statistics for array features along specified axes. This function calculates min, max, mean, std, and quantiles (1%, 10%, 5
src/lerobot/datasets/compute_stats.py:425
↓ 16 callersFunctionhw_to_dataset_features
Convert hardware-specific features to a LeRobot dataset feature dictionary. This function takes a dictionary describing hardware outputs (like jo
src/lerobot/datasets/utils.py:626
↓ 16 callersMethodload_state_dict
(self, state: dict[str, torch.Tensor])
tests/processor/test_pipeline.py:79
↓ 16 callersFunctionpreprocessor
Fixture to provide the PI0Fast preprocessor for tests.
tests/policies/pi0_fast/test_pi0_fast_original_vs_lerobot.py:179
↓ 16 callersMethodread
(self)
tests/cameras/test_opencv.py:49
↓ 16 callersMethodwait_for_everyone
(self)
tests/value/test_lerobot_value_infer_viz.py:40
↓ 15 callersMethodclose
Close environment and disconnect robot.
src/lerobot/rl/gym_manipulator.py:292
↓ 15 callersMethoddisable_torque
Disable torque on selected motors.
src/lerobot/motors/motors_bus.py:107
↓ 15 callersMethodget_timestamp
(self)
src/lerobot/async_inference/helpers.py:213
↓ 15 callersFunctionrecord_loop
( robot: Robot, events: dict, fps: int, teleop_action_processor: RobotProcessorPipeline[
src/lerobot/scripts/recording_loop.py:88
↓ 15 callersMethodwith_format
(self, _)
tests/value/test_pistar06_value_stack.py:134
↓ 14 callersMethod_read
( self, address: int, length: int, motor_id: int, *, num_retry
src/lerobot/motors/motors_bus.py:1015
↓ 14 callersMethod_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
src/lerobot/policies/xvla/modeling_florence2.py:772
↓ 14 callersFunctionadd_features
Add multiple features to a LeRobotDataset in a single pass. This is more efficient than calling add_feature() multiple times, as it only copi
src/lerobot/datasets/dataset_tools.py:379
↓ 14 callersMethodbuild_write_stub
( self, address: int, length: int, scs_id: int, value: int, re
tests/mocks/mock_feetech.py:353
↓ 14 callersFunctionestimate_num_samples
Heuristic to estimate the number of samples based on dataset size. The power controls the sample growth relative to dataset size. Lower the po
src/lerobot/datasets/compute_stats.py:194
↓ 14 callersMethodget_action
(self)
tests/mocks/mock_teleop.py:89
next →1–100 of 5,633, ranked by callers