MCPcopy Create free account

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

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

↓ 2 callersFunctionmake_policy_obs
(obs, device: torch.device = "cpu")
examples/tutorial/rl/hilserl_example.py:218
↓ 2 callersFunctionmake_processors
Create environment and action processors. Args: env: Robot environment instance. teleop_device: Teleoperator device for intervent
src/lerobot/rl/gym_manipulator.py:355
↓ 2 callersFunctionmake_sarm_pre_post_processors
Create pre-processor and post-processor pipelines for SARM.
src/lerobot/policies/sarm/processor_sarm.py:486
↓ 2 callersFunctionmake_wall_x_pre_post_processors
Constructs pre-processor and post-processor pipelines for the Wall-X policy. The pre-processing pipeline prepares input data for the model b
src/lerobot/policies/wall_x/processor_wall_x.py:38
↓ 2 callersFunctionmake_xvla_pre_post_processors
Build the LeRobot processor pipelines for XVLA.
src/lerobot/policies/xvla/processor_xvla.py:51
↓ 2 callersFunctionmap_robot_keys_to_lerobot_features
(robot: Robot)
src/lerobot/async_inference/helpers.py:66
↓ 2 callersFunctionmock_snapshot_download_factory
This factory allows to patch snapshot_download such that when called, it will create expected files rather than making calls to the hub api.
tests/fixtures/hub.py:35
↓ 2 callersFunctionmove_transition_to_device
(transition: Transition, device: str = "cpu")
src/lerobot/utils/transition.py:34
↓ 2 callersFunctionpack_one
(t, pattern)
src/lerobot/policies/vqbet/vqbet_utils.py:952
↓ 2 callersFunctionpad_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/pi0/modeling_pi0.py:135
↓ 2 callersFunctionpad_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/pi0_fast/modeling_pi0_fast.py:65
↓ 2 callersFunctionpad_vector
Can be (batch_size x sequence_length x features_dimension) or (batch_size x features_dimension)
src/lerobot/policies/smolvla/modeling_smolvla.py:157
↓ 2 callersFunctionpad_vector
(vector: Tensor, new_dim: int)
src/lerobot/policies/xvla/modeling_xvla.py:521
↓ 2 callersFunctionparse_cfg
Helper to parse CLI args into an EditDatasetConfig via draccus.
tests/scripts/test_edit_dataset_parsing.py:32
↓ 2 callersFunctionparse_piper_log_level
(level_name: str)
src/lerobot/utils/piper_sdk.py:57
↓ 2 callersFunctionparse_plugin_args
Parse plugin-related arguments from command-line arguments. This function extracts arguments from command-line arguments that match a specified s
src/lerobot/configs/parser.py:68
↓ 2 callersFunctionparse_raw16
(line: bytes)
src/lerobot/teleoperators/unitree_g1/exo_serial.py:29
↓ 2 callersFunctionpatch_hil_dataset_schema
(cfg: PatchHilDatasetSchemaConfig)
src/lerobot/scripts/lerobot_patch_hil_dataset_schema.py:76
↓ 2 callersMethodping
(self, port, id)
src/lerobot/motors/motors_bus.py:219
↓ 2 callersFunctionport_droid
( raw_dir: Path, repo_id: str, push_to_hub: bool = False, num_shards: int | None = None, s
examples/port_datasets/port_droid.py:308
↓ 2 callersMethodpredict
Multi-modal prediction method supporting text generation, fast action prediction, and diffusion-based action prediction. This method
src/lerobot/policies/wall_x/modeling_wall_x.py:973
↓ 2 callersMethodpredict_action
( self, fused_tokens: torch.Tensor, state: torch.Tensor | None, actions_gt: to
src/lerobot/policies/evo1/evo1_model.py:115
↓ 2 callersMethodpredict_action_chunk
Predict a chunk of actions given environment observations.
src/lerobot/policies/act/modeling_act.py:125
↓ 2 callersMethodpredict_reward
Eval method. Returns predicted reward with the decision threshold as argument.
src/lerobot/policies/sac/reward_model/modeling_classifier.py:269
↓ 2 callersFunctionprepare_image
Minimal preprocessing to turn int8 images to float32 in [0, 1], and create a memory-contiguous tensor
src/lerobot/async_inference/helpers.py:107
↓ 2 callersMethodprepare_images
Apply SmolVLA preprocessing to the images, like resizing to 224x224 and padding to keep aspect ratio, and convert pixel range from [0.0, 1.0]
src/lerobot/policies/smolvla/modeling_smolvla.py:403
↓ 2 callersMethodprepare_input
(self, inputs)
src/lerobot/policies/groot/groot_n1.py:320
↓ 2 callersFunctionprepare_observation_for_inference
Converts observation data to model-ready PyTorch tensors. This function takes a dictionary of NumPy arrays, performs necessary preprocessing,
src/lerobot/policies/utils.py:98
↓ 2 callersFunctionprepare_raw_observation
Matches keys from the raw robot_obs dict to the keys expected by a given policy (passed as policy_image_features).
src/lerobot/async_inference/helpers.py:143
↓ 2 callersMethodprepare_state
Pad state
src/lerobot/policies/pi0/modeling_pi0.py:1218
↓ 2 callersMethodprepare_state
Pad state
src/lerobot/policies/smolvla/modeling_smolvla.py:472
↓ 2 callersMethodpreprocess
Default: return unchanged.
src/lerobot/policies/xvla/action_hub.py:87
↓ 2 callersMethodpreprocess_inputs
Convert a batch of LeRobot dataset items to Wall-X model input format. This processes a batched dictionary where tensors have batch
src/lerobot/policies/wall_x/modeling_wall_x.py:1726
↓ 2 callersMethodprocess_backbone_output
(self, backbone_output: BatchFeature)
src/lerobot/policies/groot/action_head/flow_matching_action_head.py:259
↓ 2 callersFunctionproject_values_to_bins
(values: torch.Tensor, bin_centers: torch.Tensor)
src/lerobot/values/pistar06/modeling_pistar06.py:58
↓ 2 callersFunctionpush_actor_policy_to_queue
(parameters_queue: Queue, policy: nn.Module)
src/lerobot/rl/learner.py:1092
↓ 2 callersMethodread
Reads a single frame synchronously from the camera. This is a blocking call. It waits for the next available frame from the
src/lerobot/cameras/opencv/camera_opencv.py:351
↓ 2 callersMethodread
Read a value from a single motor.
src/lerobot/motors/motors_bus.py:82
↓ 2 callersMethodread_calibration
Read calibration parameters from the motors.
src/lerobot/motors/motors_bus.py:112
↓ 2 callersFunctionread_raw_from_serial
Read latest sample from serial; if buffer is backed up, keep only the newest.
src/lerobot/teleoperators/unitree_g1/exo_serial.py:39
↓ 2 callersMethodregister
A class decorator to register a ProcessorStep. Args: name: The name to register the class under. If None, the class's `__name__`
src/lerobot/processor/pipeline.py:71
↓ 2 callersFunctionrename_stats
Renames the top-level keys in a statistics dictionary using a provided mapping. This is a helper function typically used to keep normalizati
src/lerobot/processor/rename_processor.py:70
↓ 2 callersFunctionreplay
(cfg: ReplayConfig)
src/lerobot/scripts/lerobot_replay.py:100
↓ 2 callersMethodreset
( self, control_dt: float | None = None, default_positions: list[float] | None = None,
src/lerobot/robots/unitree_g1/unitree_g1.py:398
↓ 2 callersMethodreset
Reset the environment to its initial state. Args: seed (Optional[int]): Random seed for environment initialization.
src/lerobot/envs/metaworld.py:197
↓ 2 callersFunctionreset_state
()
src/lerobot/teleoperators/unitree_g1/exo_calib.py:258
↓ 2 callersFunctionresize_robot_observation_image
(image: torch.tensor, resize_dims: tuple[int, int, int])
src/lerobot/async_inference/helpers.py:74
↓ 2 callersMethodresize_token_embeddings
( self, new_num_tokens: int | None = None, pad_to_multiple_of=None, **kwargs )
src/lerobot/policies/xvla/modeling_florence2.py:2498
↓ 2 callersFunctionresolve_dataset_root
(dataset: str, root: Path | None)
src/lerobot/scripts/lerobot_dataset_report.py:39
↓ 2 callersFunctionresolve_delta_timestamps
Resolves delta_timestamps by reading from the 'delta_indices' properties of the PreTrainedConfig. Args: cfg (PreTrainedConfig): The PreTr
src/lerobot/datasets/factory.py:38
↓ 2 callersFunctionrun_accelerate_training
Helper function to run training with accelerate launch. Args: config_args: List of config arguments to pass to lerobot_train.py
tests/training/test_multi_gpu.py:59
↓ 2 callersFunctionrun_command
(cmd, module, args)
tests/test_cli_peft.py:17
↓ 2 callersFunctionrunning_median
(win: deque)
src/lerobot/teleoperators/unitree_g1/exo_calib.py:165
↓ 2 callersFunctionsafe_shard
Safe shards the dataset.
src/lerobot/datasets/utils.py:1388
↓ 2 callersFunctionsample_images
(image_paths: list[str])
src/lerobot/datasets/compute_stats.py:230
↓ 2 callersFunctionsample_indices
(data_len: int)
src/lerobot/datasets/compute_stats.py:214
↓ 2 callersMethodsample_noise
(self, shape, device)
src/lerobot/policies/smolvla/modeling_smolvla.py:603
↓ 2 callersMethodsample_noise
(self, shape, device)
src/lerobot/policies/pi05/modeling_pi05.py:618
↓ 2 callersFunctionsample_vectors
(samples, num)
src/lerobot/policies/vqbet/vqbet_utils.py:1018
↓ 2 callersFunctionsave_all_transforms
(cfg: ImageTransformsConfig, original_frame, output_dir, n_examples)
src/lerobot/scripts/lerobot_imgtransform_viz.py:50
↓ 2 callersFunctionsave_each_transform
(cfg: ImageTransformsConfig, original_frame, output_dir, n_examples)
src/lerobot/scripts/lerobot_imgtransform_viz.py:63
↓ 2 callersMethodsave_episode_tasks
(self, tasks: list[str])
src/lerobot/datasets/lerobot_dataset.py:309
↓ 2 callersFunctionsave_proportions
(annotations, prefix, subtask_list=None, is_auto=False)
src/lerobot/data_processing/sarm_annotations/subtask_annotation.py:1163
↓ 2 callersMethodsend_action
Send an action command to the robot. Args: action (RobotAction): Dictionary representing the desired action. Its structu
src/lerobot/robots/robot.py:198
↓ 2 callersMethodsend_action
Command lekiwi to move to a target joint configuration. Translates to motor space + sends over ZMQ Args: action (RobotAction): ar
src/lerobot/robots/lekiwi/lekiwi_client.py:307
↓ 2 callersMethodsend_action
(self, action: RobotAction)
src/lerobot/robots/piper_follower/piper_follower.py:270
↓ 2 callersMethodsend_feedback
(self, feedback: dict[str, float])
src/lerobot/teleoperators/phone/teleop_phone.py:411
↓ 2 callersMethodsend_feedback
(self, feedback)
tests/test_piper_teleop.py:824
↓ 2 callersFunctionserialize_numpy_rng_state
Returns the rng state for `numpy` in the form of a flat dict[str, torch.Tensor] to be saved using `safetensors.save_file()` or `torch.save()`
src/lerobot/utils/random_utils.py:50
↓ 2 callersFunctionserialize_python_rng_state
Returns the rng state for `random` in the form of a flat dict[str, torch.Tensor] to be saved using `safetensors.save_file()` or `torch.save()
src/lerobot/utils/random_utils.py:30
↓ 2 callersFunctionserialize_rng_state
Returns the rng state for `random`, `numpy`, and `torch`, in the form of a flat dict[str, torch.Tensor] to be saved using `safetensors.save_f
src/lerobot/utils/random_utils.py:100
↓ 2 callersFunctionserialize_torch_rng_state
Returns the rng state for `torch` in the form of a flat dict[str, torch.Tensor] to be saved using `safetensors.save_file()` or `torch.save()`
src/lerobot/utils/random_utils.py:80
↓ 2 callersFunctionserve
Start the PolicyServer with the given configuration. Args: config: PolicyServerConfig instance. If None, uses default configuration.
src/lerobot/async_inference/policy_server.py:416
↓ 2 callersMethodsetPacketTimeoutMillis
(self, msec)
src/lerobot/motors/motors_bus.py:205
↓ 2 callersFunctionset_rng_state
Set the random state for `random`, `numpy`, and `torch`. Args: random_state_dict: A dictionary of the form returned by `get_rng_state`.
src/lerobot/utils/random_utils.py:154
↓ 2 callersFunctionsetupTrafficCounterAnimation
(containerId, valueId)
website/app.js:557
↓ 2 callersMethodstart
(self)
src/lerobot/teleoperators/piper_leader/gravity_compensation.py:93
↓ 2 callersMethodstart
(self)
src/lerobot/utils/control_utils.py:90
↓ 2 callersMethodstate_dict
Returns normalization statistics as a flat state dictionary. This enables saving stats to safetensors files, similar to normalizer_p
src/lerobot/policies/groot/processor_groot.py:400
↓ 2 callersFunctionstep_env_and_process_transition
Execute one step with processor pipeline. Args: env: The robot environment transition: Current transition state acti
src/lerobot/rl/gym_manipulator.py:517
↓ 2 callersMethodstop_base
(self)
src/lerobot/robots/lekiwi/lekiwi.py:406
↓ 2 callersMethodsync_read
Builds a "Sync_Read" broadcast instruction. https://emanual.robotis.com/docs/en/dxl/protocol2/#sync-read-0x82 The parameters
tests/mocks/mock_dynamixel.py:262
↓ 2 callersFunctionteleop_loop
This function continuously reads actions from a teleoperation device, processes them through optional pipelines, sends them to a robot, and o
src/lerobot/scripts/lerobot_teleoperate.py:162
↓ 2 callersFunctionteleoperate
(cfg: TeleoperateConfig)
src/lerobot/scripts/lerobot_teleoperate.py:250
↓ 2 callersFunctiontest_motor
Test a single motor and return responses.
src/lerobot/scripts/lerobot_setup_can.py:144
↓ 2 callersFunctionto_parquet_with_hf_images
This function correctly writes to parquet a panda DataFrame that contains images encoded by HF dataset. This way, it can be loaded by HF dataset a
src/lerobot/datasets/utils.py:1184
↓ 2 callersMethodtransform_features
( self, features: dict[PipelineFeatureType, dict[str, PolicyFeature]] )
src/lerobot/robots/so_follower/robot_kinematic_processor.py:246
↓ 2 callersMethodtransform_features
(self, features)
src/lerobot/processor/policy_robot_bridge.py:42
↓ 2 callersMethodtransform_features
(self, features)
src/lerobot/processor/policy_robot_bridge.py:64
↓ 2 callersMethodtransform_features
Transforms: - Each key in the observation that appears in `rename_map` is renamed to its value. - Keys not in `rename_map` remain unch
src/lerobot/processor/rename_processor.py:56
↓ 2 callersMethodtransform_features
Defines how this step modifies the description of pipeline features. This method is used to track changes in data shapes, dtypes, or modaliti
src/lerobot/processor/pipeline.py:213
↓ 2 callersFunctiontransitions_stream
(shutdown_event: Event, transitions_queue: Queue, timeout: float)
src/lerobot/rl/actor.py:613
↓ 2 callersMethodtxPacket
(self, port, txpacket)
src/lerobot/motors/motors_bus.py:216
↓ 2 callersMethodtype
(self)
src/lerobot/scripts/lerobot_edit_dataset.py:137
↓ 2 callersMethodunregister_after_step_hook
Unregisters an 'after_step' hook. Args: fn: The exact function object that was previously registered. Raises:
src/lerobot/processor/pipeline.py:1272
↓ 2 callersMethodupdate
Takes a (batch, chunk_size, action_dim) sequence of actions, update the temporal ensemble for all time steps, and pop/return the next
src/lerobot/policies/act/modeling_act.py:219
↓ 2 callersFunctionupdateThemeToggle
()
website/app.js:371
↓ 2 callersMethodvalidate_data
(self, action_head_outputs, backbone_outputs, is_training)
src/lerobot/policies/groot/groot_n1.py:267
↓ 2 callersFunctionvalidate_dataset
Sanity check that ensure meta data can be loaded and all files are present.
examples/port_datasets/port_droid.py:375
↓ 2 callersFunctionvisual_frames_equal
(frame1, frame2)
tests/datasets/test_aggregate.py:147
← previousnext →1,001–1,100 of 5,633, ranked by callers