MCPcopy Create free account

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

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

↓ 3 callersMethodcreateData
(self)
tests/test_piper_teleop.py:539
↓ 3 callersFunctioncreate_dummy_data
Create dummy data for testing both implementations.
tests/policies/xvla/test_xvla_original_vs_lerobot.py:104
↓ 3 callersMethodcreate_episode_buffer
(self, episode_index: int | None = None)
src/lerobot/datasets/lerobot_dataset.py:1119
↓ 3 callersFunctioncreate_observation_batch
(batch_size: int = 8, state_dim: int = 10)
tests/policies/test_sac_policy.py:128
↓ 3 callersMethodcritic_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 callersFunctioncycle
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 callersFunctiondecode_sign_magnitude
https://en.wikipedia.org/wiki/Signed_number_representations#Sign%E2%80%93magnitude
src/lerobot/motors/encoding_utils.py:29
↓ 3 callersFunctiondecode_twos_complement
https://en.wikipedia.org/wiki/Signed_number_representations#Two%27s_complement
src/lerobot/motors/encoding_utils.py:59
↓ 3 callersFunctiondecode_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 callersMethoddisconnect
Cleans ZMQ comms
src/lerobot/robots/lekiwi/lekiwi_client.py:329
↓ 3 callersMethoddisconnect
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 callersMethoddiscrete_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 callersMethodembed_language_tokens
(self, tokens: torch.Tensor)
src/lerobot/policies/smolvla/smolvlm_with_expert.py:195
↓ 3 callersMethodembed_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 callersMethodenable_torque
Enable torque on selected motors.
src/lerobot/motors/damiao/damiao.py:295
↓ 3 callersFunctionexpected_value_from_logits
(logits: torch.Tensor, bin_centers: torch.Tensor)
src/lerobot/values/pistar06/modeling_pistar06.py:80
↓ 3 callersMethodextract_feature
(self, pixel_values)
src/lerobot/policies/groot/eagle2_hg_model/modeling_eagle2_5_vl.py:299
↓ 3 callersMethodextract_images_and_labels
Extract image tensors and label tensors from batch.
src/lerobot/policies/sac/reward_model/modeling_classifier.py:214
↓ 3 callersFunctionextract_state_from_raw_observation
Extract the state from a raw observation.
src/lerobot/async_inference/helpers.py:115
↓ 3 callersFunctionfake_rgb
(h, w)
tests/policies/pi0_fast/test_pi0_fast_original_vs_lerobot.py:139
↓ 3 callersMethodforward
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 callersMethodforward
(self, x, size)
src/lerobot/policies/xvla/modeling_florence2.py:256
↓ 3 callersMethodforward_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 callersMethodfrom_config
(cls, config)
src/lerobot/policies/xvla/modeling_florence2.py:654
↓ 3 callersMethodfrom_matrix
Create rotation from 3x3 rotation matrix. Args: matrix: 3x3 rotation matrix Returns: Rotation insta
src/lerobot/utils/rotation.py:66
↓ 3 callersMethodfrom_pretrained
( cls: builtins.type["TrainPipelineConfig"], pretrained_name_or_path: str | Path, *,
src/lerobot/configs/train.py:177
↓ 3 callersMethodfrom_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 callersFunctionfrom_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 callersFunctionget_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 callersFunctionget_frames_expected_order
Replicates the shuffling logic of StreamingLeRobotDataset to get the expected order of indices.
tests/datasets/test_streaming.py:26
↓ 3 callersMethodget_input_embeddings
(self)
src/lerobot/policies/groot/eagle2_hg_model/modeling_eagle2_5_vl.py:374
↓ 3 callersMethodget_interfaces
(self)
src/lerobot/scripts/lerobot_setup_can.py:73
↓ 3 callersMethodget_optimizer_preset
(self)
src/lerobot/configs/policies.py:119
↓ 3 callersFunctionget_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 callersFunctionget_piper_sdk
()
src/lerobot/utils/piper_sdk.py:46
↓ 3 callersFunctionget_safe_default_codec
()
src/lerobot/datasets/video_utils.py:36
↓ 3 callersMethodget_scheduler_preset
(self)
src/lerobot/configs/policies.py:123
↓ 3 callersMethodget_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 callersFunctionget_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 callersMethodgradient_checkpointing_enable
Enable gradient checkpointing for memory optimization.
src/lerobot/policies/pi0/modeling_pi0.py:589
↓ 3 callersFunctionguess_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 callersFunctionhf_dataset_factory
(features_factory, tasks_factory, episodes_factory, img_array_factory)
tests/fixtures/dataset_factories.py:357
↓ 3 callersFunctionhuman_inloop_record
(cfg: RecordConfig)
src/lerobot/scripts/lerobot_human_inloop_record.py:135
↓ 3 callersFunctionimg_factory
(img_array_factory)
tests/fixtures/dataset_factories.py:120
↓ 3 callersFunctioninfer_collector_policy_id
Infer a stable policy identifier for frame-level provenance.
src/lerobot/utils/recording_annotations.py:62
↓ 3 callersFunctioninfer_collector_policy_version
Infer a compact policy-version string suitable for metadata columns.
src/lerobot/utils/recording_annotations.py:78
↓ 3 callersMethodinit_rtc_processor
Initialize RTC processor if RTC is enabled in config.
src/lerobot/policies/pi0/modeling_pi0.py:1137
↓ 3 callersFunctioninside_slurm
Check whether the python process was launched through slurm
src/lerobot/utils/utils.py:34
↓ 3 callersMethodinv
Invert this rotation. Composition of a rotation with its inverse results in an identity transformation. Returns:
src/lerobot/utils/rotation.py:224
↓ 3 callersFunctionitem_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 callersFunctionload_annotations_from_dataset
Load annotations from LeRobot dataset parquet files.
src/lerobot/data_processing/sarm_annotations/subtask_annotation.py:841
↓ 3 callersFunctionload_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 callersFunctionload_jsonlines
(fpath: Path)
src/lerobot/datasets/v30/convert_dataset_v21_to_v30.py:132
↓ 3 callersFunctionload_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 callersFunctionload_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 callersFunctionlog
(t, eps=1e-20)
src/lerobot/policies/vqbet/vqbet_utils.py:939
↓ 3 callersFunctionmake_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 callersFunctionmake_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 callersFunctionmake_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 callersFunctionmake_default_robot_action_processor
()
src/lerobot/processor/factory.py:38
↓ 3 callersFunctionmake_delta_timestamps
(delta_indices: list[int] | None, fps: int)
examples/tutorial/diffusion/diffusion_training_example.py:15
↓ 3 callersFunctionmake_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 callersFunctionmake_env_config
(env_type: str, **kwargs)
src/lerobot/envs/factory.py:31
↓ 3 callersFunctionmake_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 callersFunctionmake_lerobot_observation
Make a lerobot observation from a raw observation.
src/lerobot/async_inference/helpers.py:135
↓ 3 callersFunctionmake_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 callersFunctionmake_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 callersMethodmaybe_add_pos_embed
(self, tensor: Tensor, pos_embed: Tensor | None)
src/lerobot/policies/act/modeling_act.py:615
↓ 3 callersFunctionnormalize
(x, min_val, max_val)
src/lerobot/policies/smolvla/modeling_smolvla.py:171
↓ 3 callersFunctionobservation_normalizer
Return a NormalizerProcessorStep that only has observation stats (no action).
tests/processor/test_normalize_processor.py:131
↓ 3 callersFunctionobservations_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 callersFunctionpad_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 callersFunctionpad_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 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/pi05/modeling_pi05.py:133
↓ 3 callersFunctionparse_arg
(arg_name: str, args: Sequence[str] | None = None)
src/lerobot/configs/parser.py:58
↓ 3 callersFunctionpredict_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 callersMethodproprioception_proj
Project proprioceptive data to hidden space.
src/lerobot/policies/wall_x/modeling_wall_x.py:235
↓ 3 callersFunctionpush_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 callersMethodread
Read a value from a single motor. Positions are always in degrees.
src/lerobot/motors/damiao/damiao.py:586
↓ 3 callersMethodregister_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 callersMethodreset
(self)
src/lerobot/utils/logging_utils.py:33
↓ 3 callersMethodreset_averages
Resets average meters.
src/lerobot/utils/logging_utils.py:164
↓ 3 callersMethodreset_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 callersMethodrnea
(model, data, q, v, a)
tests/test_piper_teleop.py:552
↓ 3 callersMethodrun
(self, data=None, rank: int = 0, world_size: int = 1)
examples/port_datasets/slurm_upload.py:152
↓ 3 callersMethodsample_actions
Do a full inference forward and compute the action.
src/lerobot/policies/pi0/modeling_pi0.py:803
↓ 3 callersMethodsample_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 callersFunctionsave_scheduler_state
(scheduler: LRScheduler, save_dir: Path)
src/lerobot/optim/schedulers.py:135
↓ 3 callersFunctionsave_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 callersFunctionsave_training_step
(step: int, save_dir: Path)
src/lerobot/utils/train_utils.py:48
↓ 3 callersMethodset_manual_control
(self, enabled: bool)
src/lerobot/teleoperators/piper_leader/piper_leader.py:214
↓ 3 callersMethodset_manual_control
(self, enabled: bool)
src/lerobot/teleoperators/so_leader/so_leader.py:137
↓ 3 callersMethodset_manual_control
(self, enabled: bool)
tests/test_piper_teleop.py:818
↓ 3 callersFunctionset_seed
Set random seed for reproducibility.
examples/rtc/eval_dataset.py:125
↓ 3 callersFunctionset_seed_all
Set random seed for all RNG sources to ensure reproducibility.
tests/policies/groot/test_groot_lerobot.py:64
↓ 3 callersMethodset_trainable_parameters
(self, tune_llm: bool, tune_visual: bool)
src/lerobot/policies/groot/groot_n1.py:99
↓ 3 callersFunctionshift_tokens_right
Shift input ids one token to the right.
src/lerobot/policies/xvla/modeling_florence2.py:682
↓ 3 callersMethodsphere
(self, path: str, r: float, rgba: tuple[float, float, float, float])
src/lerobot/teleoperators/unitree_g1/exo_ik.py:60
↓ 3 callersMethodstart_image_writer
(self, num_processes: int = 0, num_threads: int = 4)
src/lerobot/datasets/lerobot_dataset.py:1549
↓ 3 callersMethodstep
Updates metrics that depend on 'step' for one step.
src/lerobot/utils/logging_utils.py:130
← previousnext →601–700 of 5,633, ranked by callers