MCPcopy Create free account

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

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

↓ 2 callersFunctioncreate_dummy_data
Create dummy data for testing both implementations.
tests/policies/groot/test_groot_vs_original.py:215
↓ 2 callersFunctioncreate_dummy_data
Create a dummy data batch for testing.
tests/policies/groot/test_groot_lerobot.py:119
↓ 2 callersFunctioncreate_dummy_state
(batch_size: int, state_dim: int = 10)
tests/policies/test_sac_policy.py:87
↓ 2 callersFunctioncreate_dummy_with_visual_input
(batch_size: int, state_dim: int = 10)
tests/policies/test_sac_policy.py:93
↓ 2 callersFunctioncreate_learner_service_stub
()
tests/rl/test_actor.py:29
↓ 2 callersFunctioncreate_observation_batch_with_visual_input
(batch_size: int = 8, state_dim: int = 10)
tests/policies/test_sac_policy.py:134
↓ 2 callersFunctioncreate_random_image
()
tests/utils/test_replay_buffer.py:59
↓ 2 callersFunctiondecode_video_frames_torchcodec
Loads frames associated with the requested timestamps of a video using torchcodec. Args: video_path: Path to the video file. time
src/lerobot/datasets/video_utils.py:220
↓ 2 callersMethoddenoise_step
Apply one denoising step of the noise `x_t` at a given timestep.
src/lerobot/policies/smolvla/modeling_smolvla.py:865
↓ 2 callersMethoddenoise_step
Apply one denoising step of the noise `x_t` at a given timestep.
src/lerobot/policies/pi05/modeling_pi05.py:859
↓ 2 callersFunctiondeserialize_numpy_rng_state
Restores the rng state for `numpy` from a dictionary produced by `serialize_numpy_rng_state()`.
src/lerobot/utils/random_utils.py:66
↓ 2 callersFunctiondeserialize_python_rng_state
Restores the rng state for `random` from a dictionary produced by `serialize_python_rng_state()`.
src/lerobot/utils/random_utils.py:42
↓ 2 callersFunctiondeserialize_rng_state
Restores the rng state for `random`, `numpy`, and `torch` from a dictionary produced by `serialize_rng_state()`.
src/lerobot/utils/random_utils.py:116
↓ 2 callersFunctiondeserialize_torch_rng_state
Restores the rng state for `torch` from a dictionary produced by `serialize_torch_rng_state()`.
src/lerobot/utils/random_utils.py:91
↓ 2 callersMethoddetokenize_actions
Detokenizes action tokens back to continuous actions. This method converts predicted action tokens from the model back to continuous
src/lerobot/policies/pi0_fast/modeling_pi0_fast.py:1170
↓ 2 callersMethoddevice
(self)
src/lerobot/policies/groot/action_head/flow_matching_action_head.py:401
↓ 2 callersMethoddisable_torque
Disable torque on selected motors. Disabling Torque allows to write to the motors' permanent memory area (EPROM/EEPROM). Args:
src/lerobot/motors/motors_bus.py:634
↓ 2 callersMethoddisconnect
(self)
src/lerobot/robots/unitree_g1/unitree_g1.py:241
↓ 2 callersMethoddisconnect
Disconnect from the teleoperator and perform any necessary cleanup.
src/lerobot/teleoperators/teleoperator.py:206
↓ 2 callersMethoddisconnect
(self)
src/lerobot/teleoperators/keyboard/teleop_keyboard.py:140
↓ 2 callersMethoddisconnect
Disconnect from the camera and release resources.
src/lerobot/cameras/camera.py:182
↓ 2 callersMethoddisconnect
Disconnects from the camera and cleans up resources. Stops the background read thread (if running) and releases the OpenCV V
src/lerobot/cameras/opencv/camera_opencv.py:567
↓ 2 callersFunctiondist
(a, b)
src/lerobot/motors/calibration_gui.py:45
↓ 2 callersFunctiondownload_dataset
Pre-download dataset to avoid race conditions in multi-GPU training. Args: repo_id: HuggingFace dataset repository ID episod
tests/training/test_multi_gpu.py:46
↓ 2 callersMethodeager_attention_forward
( self, attention_mask, batch_size, head_dim, query_states, key_states, value_states )
src/lerobot/policies/smolvla/smolvlm_with_expert.py:505
↓ 2 callersFunctionema_inplace
(old, new, decay)
src/lerobot/policies/vqbet/vqbet_utils.py:943
↓ 2 callersFunctionembed_images
Embed image bytes into the dataset table before saving to Parquet. This function prepares a Hugging Face dataset for serialization by converting
src/lerobot/datasets/utils.py:237
↓ 2 callersMethodembed_prefix
Embed images with SigLIP and language tokens with embedding layer.
src/lerobot/policies/pi0/modeling_pi0.py:637
↓ 2 callersMethodembed_prefix
Embed images with SigLIP and language tokens with embedding layer to prepare for SmolVLM transformer processing.
src/lerobot/policies/smolvla/modeling_smolvla.py:619
↓ 2 callersMethodembed_prefix
Embed images with SigLIP and language tokens with embedding layer.
src/lerobot/policies/pi05/modeling_pi05.py:634
↓ 2 callersMethodembed_suffix
Embed state, noisy_actions, timestep to prepare for Expert Gemma processing.
src/lerobot/policies/pi0/modeling_pi0.py:680
↓ 2 callersMethodembed_suffix
Embed state, noisy_actions, timestep to prepare for Expert Gemma processing.
src/lerobot/policies/smolvla/modeling_smolvla.py:713
↓ 2 callersMethodembed_suffix
Embed noisy_actions, timestep to prepare for Expert Gemma processing.
src/lerobot/policies/pi05/modeling_pi05.py:677
↓ 2 callersFunctioneval_policy_all
Evaluate a nested `envs` dict: {task_group: {task_id: vec_env}}. This implementation flattens tasks, runs them sequentially or via ThreadPool
src/lerobot/scripts/lerobot_eval.py:680
↓ 2 callersFunctionfake_rgb
(h, w)
tests/policies/xvla/test_xvla_original_vs_lerobot.py:111
↓ 2 callersFunctionfeatures_factory
()
tests/fixtures/dataset_factories.py:129
↓ 2 callersFunctionfilter_arg
(field_to_filter: str, args: Sequence[str] | None = None)
src/lerobot/configs/parser.py:155
↓ 2 callersFunctionfind_available_ports
()
src/lerobot/scripts/lerobot_find_port.py:30
↓ 2 callersMethodfind_cameras
Detects available cameras connected to the system. Returns: List[Dict[str, Any]]: A list of dictionaries, where each d
src/lerobot/cameras/camera.py:91
↓ 2 callersMethodfind_closest_aspect_ratio
previous version mainly focus on ratio. We also consider area ratio here.
src/lerobot/policies/groot/eagle2_hg_model/image_processing_eagle2_5_vl_fast.py:196
↓ 2 callersFunctionflatten_forward_unflatten
Helper to temporarily flatten extra dims at the start of the image tensor. Args: fn: Callable that the image tensor will be passed to. It
src/lerobot/policies/tdmpc/modeling_tdmpc.py:814
↓ 2 callersMethodforward
Run the batch through the model and compute the loss for training or validation.
src/lerobot/policies/diffusion/modeling_diffusion.py:141
↓ 2 callersMethodforward
Run the batch through the model and compute the loss for training or validation.
src/lerobot/policies/act/modeling_act.py:136
↓ 2 callersMethodforward_features_unpool
forward until avg pooling Args: x (_type_): input image tensor
src/lerobot/policies/xvla/modeling_florence2.py:622
↓ 2 callersMethodforward_vlm
Encode text and multi-view images via Florence2 encoder.
src/lerobot/policies/xvla/modeling_xvla.py:157
↓ 2 callersMethodfps
(self)
src/lerobot/datasets/online_buffer.py:220
↓ 2 callersMethodfrom_pretrained
Override the from_pretrained method to handle key remapping and display important disclaimer.
src/lerobot/policies/pi0_fast/modeling_pi0_fast.py:858
↓ 2 callersMethodfrom_pretrained
( cls: builtins.type[T], pretrained_name_or_path: str | Path, *, config: PreTr
src/lerobot/policies/evo1/modeling_evo1.py:46
↓ 2 callersMethodgenerate
(self, input_ids, inputs_embeds=None, pixel_values=None, **kwargs)
src/lerobot/policies/xvla/modeling_florence2.py:2698
↓ 2 callersMethodgenerate_model_card
( self, dataset_repo_id: str, model_type: str, license: str | None, tags: list[str] | None )
src/lerobot/policies/pretrained.py:248
↓ 2 callersMethodget_action
( self, fused_tokens: torch.Tensor, state: torch.Tensor = None, embodiment_id:
src/lerobot/policies/evo1/flow_matching.py:315
↓ 2 callersFunctionget_activation_fn
Return an activation function given a string.
src/lerobot/policies/act/modeling_act.py:738
↓ 2 callersMethodget_attention_interface
(self)
src/lerobot/policies/smolvla/smolvlm_with_expert.py:501
↓ 2 callersMethodget_codebook_vector_from_indices
(self, indices)
src/lerobot/policies/vqbet/vqbet_utils.py:398
↓ 2 callersMethodget_config
Returns the serializable configuration of the processor. Note: The tokenizer object itself is not serialized. If the processor was i
src/lerobot/processor/tokenizer_processor.py:272
↓ 2 callersFunctionget_cv2_rotation
(rotation: Cv2Rotation)
src/lerobot/cameras/utils.py:59
↓ 2 callersMethodget_data_by_key
Returns all data for a given data key as a Tensor.
src/lerobot/datasets/online_buffer.py:294
↓ 2 callersMethodget_decoder
(self)
src/lerobot/policies/xvla/modeling_florence2.py:1984
↓ 2 callersMethodget_encoder
(self)
src/lerobot/policies/xvla/modeling_florence2.py:1981
↓ 2 callersFunctionget_gemma_config
Returns config for specified gemma variant.
src/lerobot/policies/pi0/modeling_pi0.py:306
↓ 2 callersFunctionget_gemma_config
Returns config for specified gemma variant.
src/lerobot/policies/pi05/modeling_pi05.py:304
↓ 2 callersMethodget_gravity_orientation
Get gravity orientation from quaternion.
src/lerobot/robots/unitree_g1/unitree_g1.py:385
↓ 2 callersMethodget_input_embeddings
(self)
src/lerobot/policies/xvla/modeling_florence2.py:2495
↓ 2 callersFunctionget_logger
Get a logger using the standardized logging setup from utils.py. Args: name: Logger name (e.g., 'policy_server', 'robot_client')
src/lerobot/async_inference/helpers.py:175
↓ 2 callersFunctionget_object_memory
(obj)
tests/utils/test_replay_buffer.py:138
↓ 2 callersFunctionget_observation_features
Get observation features from the policy encoder. It act as cache for the observation features. when the encoder is frozen, the observation f
src/lerobot/rl/learner.py:1015
↓ 2 callersFunctionget_output_path
(repo_id: str, new_repo_id: str | None, root: Path | None)
src/lerobot/scripts/lerobot_edit_dataset.py:196
↓ 2 callersFunctionget_policy_stats
(ds_repo_id: str, policy_name: str, policy_kwargs: dict)
tests/artifacts/policies/save_policy_to_safetensors.py:31
↓ 2 callersMethodget_raw_joint_positions
Get raw joint positions.
src/lerobot/rl/gym_manipulator.py:297
↓ 2 callersFunctionget_rng_state
Get the random state for `random`, `numpy`, and `torch`.
src/lerobot/utils/random_utils.py:142
↓ 2 callersMethodget_rope_index
Calculate 3D RoPE (Rotary Position Embedding) indices for vision and text tokens. This method computes position embeddings that acco
src/lerobot/policies/wall_x/modeling_wall_x.py:503
↓ 2 callersFunctionget_safe_version
Return the specified version if available on repo, or the latest compatible one. If the exact version is not found, it looks for the latest versi
src/lerobot/datasets/utils.py:517
↓ 2 callersFunctionget_target_aspect_ratio
(orig_width, orig_height, image_size, min_num, max_num)
src/lerobot/policies/evo1/internvl3_embedder.py:33
↓ 2 callersMethodget_task
Extracts the task description(s) from the transition's complementary data. Args: transition: The environment transition.
src/lerobot/processor/tokenizer_processor.py:118
↓ 2 callersMethodget_teleop_events
Get extra control events from the teleoperator. Returns: A dictionary containing control events such as: - `
src/lerobot/processor/hil_processor.py:59
↓ 2 callersMethodget_video_file_path
(self, ep_idx: int, vid_key: str)
tests/value/test_lerobot_value_infer_viz.py:50
↓ 2 callersFunctionget_video_info
(video_path: Path | str)
src/lerobot/datasets/video_utils.py:547
↓ 2 callersMethodget_vl_embeddings
( self, images: list[list[Image.Image | torch.Tensor]], image_mask: torch.Tensor,
src/lerobot/policies/evo1/evo1_model.py:61
↓ 2 callersFunctiongrpc_channel_options
( max_receive_message_length: int = MAX_MESSAGE_SIZE, max_send_message_length: int = MAX_MESSAGE_SIZE,
src/lerobot/transport/utils.py:153
↓ 2 callersFunctionguard_piper_ctrl_mode_on_connect
( arm: Any, *, interface_name: str, timeout_s: float = 0.5, poll_s: float = 0.02, sett
src/lerobot/utils/piper_sdk.py:108
↓ 2 callersFunctionimages_equal
(img1, img2)
tests/datasets/test_aggregate.py:423
↓ 2 callersFunctioninstantiate_lerobot_groot
Instantiate LeRobot Groot policy with preprocessor and postprocessor.
tests/policies/groot/test_groot_vs_original.py:99
↓ 2 callersFunctioninstantiate_lerobot_groot
Instantiate LeRobot Groot policy with preprocessor and postprocessor.
tests/policies/groot/test_groot_lerobot.py:82
↓ 2 callersFunctioninstantiate_original_groot
Instantiate original Groot policy from NVIDIA's implementation.
tests/policies/groot/test_groot_vs_original.py:136
↓ 2 callersFunctioninteractions_stream
( shutdown_event: Event, interactions_queue: Queue, timeout: float, # type: ignore )
src/lerobot/rl/actor.py:628
↓ 2 callersFunctioninvalid_delta_timestamps_factory
(valid_delta_timestamps_factory)
tests/datasets/test_delta_timestamps.py:35
↓ 2 callersMethodinverse_kinematics
Compute inverse kinematics using placo solver. Args: current_joint_pos: Current joint positions in degrees (used as init
src/lerobot/model/kinematics.py:79
↓ 2 callersFunctionis_valid_version
Check if a string is a valid PEP 440 version. Args: version (str): The version string to check. Returns: bool: True if the v
src/lerobot/datasets/utils.py:447
↓ 2 callersMethodlatent_dynamics_and_reward
Predict the next state's latent representation and the reward given a current latent and action. Args: z: (*, latent_dim) tensor
src/lerobot/policies/tdmpc/modeling_tdmpc.py:609
↓ 2 callersFunctionlerobot_dataset_metadata_factory
( info_factory, stats_factory, tasks_factory, episodes_factory, mock_snapshot_download_fac
tests/fixtures/dataset_factories.py:417
↓ 2 callersMethodload_metadata
(self)
src/lerobot/datasets/lerobot_dataset.py:162
↓ 2 callersFunctionload_nested_dataset
Find parquet files in provided directory {pq_dir}/chunk-xxx/file-xxx.parquet Convert parquet files to pyarrow memory mapped in a cache folder for
src/lerobot/datasets/utils.py:108
↓ 2 callersFunctionload_sarm_resources
Load SARM model, dataset, and preprocessor. Returns: Tuple of (dataset, reward_model, preprocessor)
src/lerobot/policies/sarm/compute_rabc_weights.py:79
↓ 2 callersFunctionload_scheduler_state
(scheduler: LRScheduler, save_dir: Path)
src/lerobot/optim/schedulers.py:140
↓ 2 callersFunctionload_tasks
(local_dir: Path)
src/lerobot/datasets/utils.py:352
↓ 2 callersFunctionload_training_step
(save_dir: Path)
src/lerobot/utils/train_utils.py:52
↓ 2 callersMethodlog_policy
Checkpoints the policy to wandb.
src/lerobot/rl/wandb_utils.py:121
↓ 2 callersFunctionmake_default_robot_observation_processor
()
src/lerobot/processor/factory.py:49
↓ 2 callersFunctionmake_delta_timestamps
(delta_indices: list[int] | None, fps: int)
examples/tutorial/act/act_training_example.py:15
↓ 2 callersFunctionmake_env_pre_post_processors
Create preprocessor and postprocessor pipelines for environment observations. This function creates processor pipelines that transform raw e
src/lerobot/envs/factory.py:42
← previousnext →901–1,000 of 5,633, ranked by callers