MCPcopy Create free account

hub / github.com/Cheney-36/lerobot / functions

Functions577 in github.com/Cheney-36/lerobot

↓ 1 callersMethodestimate_value
Estimates the value of a trajectory as per eqn 4 of the FOWM paper. Args: z: (batch, latent_dim) tensor of initial latent states.
lerobot/common/policies/tdmpc/modeling_tdmpc.py:276
↓ 1 callersMethodexpire_codes_
(self, batch_samples)
lerobot/common/policies/vqbet/vqbet_utils.py:1373
↓ 1 callersFunctionfind_port
()
lerobot/common/robot_devices/motors/dynamixel.py:226
↓ 1 callersFunctionflatten_dict
Flatten a nested dictionary structure by collapsing nested keys into one key with a separator. For example: ``` >>> dct = {"a": {"b": 1,
lerobot/common/datasets/utils.py:40
↓ 1 callersFunctionformat_dict
(d: dict)
lerobot/scripts/display_sys_info.py:85
↓ 1 callersFunctionfrom_raw_to_lerobot_format
( raw_dir: Path, videos_dir: Path, fps: int | None = None, video: bool = True, episodes: l
lerobot/common/datasets/push_dataset_to_hub/cam_png_format.py:78
↓ 1 callersMethodgenerate_actions
This function expects `batch` to have: { "observation.state": (B, n_obs_steps, state_dim) "observation.image
lerobot/common/policies/diffusion/modeling_diffusion.py:260
↓ 1 callersMethodget_action_from_latent
(self, latent)
lerobot/common/policies/vqbet/modeling_vqbet.py:866
↓ 1 callersMethodget_code
(self, state)
lerobot/common/policies/vqbet/modeling_vqbet.py:874
↓ 1 callersMethodget_data_by_key
Returns all data for a given data key as a Tensor.
lerobot/common/datasets/online_buffer.py:294
↓ 1 callersFunctionget_directory_size
(directory: Path)
benchmarks/video/run_video_benchmark.py:76
↓ 1 callersFunctionget_dtype_from_parameters
Get a module's parameter dtype by checking one of its parameters. Note: assumes that all parameters have the same dtype.
lerobot/common/policies/utils.py:44
↓ 1 callersMethodget_embeddings_from_code
(self, encoding_indices)
lerobot/common/policies/vqbet/modeling_vqbet.py:858
↓ 1 callersMethodget_episode
(self, idx, copy=False)
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:576
↓ 1 callersMethodget_episode_idxs
(self)
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:418
↓ 1 callersFunctionget_episode_video_paths
(dataset: LeRobotDataset, ep_index: int)
lerobot/scripts/visualize_dataset_html.py:180
↓ 1 callersFunctionget_from_raw_to_lerobot_format_fn
(raw_format: str)
lerobot/scripts/push_dataset_to_hub.py:62
↓ 1 callersMethodget_gripper_Info
(self)
lerobot/common/robot_devices/robots/ur.py:48
↓ 1 callersMethodget_observations
(self)
lerobot/common/robot_devices/robots/ur.py:123
↓ 1 callersFunctionget_optimal_chunks
Common shapes T,D T,N,D T,H,W,C T,N,H,W,C
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:68
↓ 1 callersFunctionget_policy_and_config_classes
Get the policy's class and config class given a name (matching the policy class' `name` attribute).
lerobot/common/policies/factory.py:47
↓ 1 callersFunctionget_position_angle_vec
(position)
lerobot/common/policies/act/modeling_act.py:684
↓ 1 callersFunctionget_push_repo_id_from_raw
(raw_repo_id: str, push_repo: str)
lerobot/common/datasets/push_dataset_to_hub/_encode_datasets.py:46
↓ 1 callersFunctionget_stats_einops_patterns
These einops patterns will be used to aggregate batches and compute statistics. Note: We assume the images are in channel first format
lerobot/common/datasets/compute_stats.py:27
↓ 1 callersMethodget_steps_slice
(self, start, stop, step=None, copy=False)
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:592
↓ 1 callersFunctionget_wandb_run_id_from_filesystem
(checkpoint_dir: Path)
lerobot/common/logger.py:53
↓ 1 callersFunctiongumbel_noise
(t)
lerobot/common/policies/vqbet/vqbet_utils.py:978
↓ 1 callersMethodinit_embed_
(self, data, mask=None)
lerobot/common/policies/vqbet/vqbet_utils.py:1250
↓ 1 callersMethodinit_gripper
(self)
lerobot/common/robot_devices/robots/pgi_tools.py:39
↓ 1 callersFunctionkmeans
( samples, num_clusters, num_iters=10, sample_fn=batched_sample_vectors, all_reduce_fn=noo
lerobot/common/policies/vqbet/vqbet_utils.py:1114
↓ 1 callersFunctionlaplace_smoothing
(x, n_categories, eps=1e-5, dim=-1)
lerobot/common/policies/vqbet/vqbet_utils.py:1025
↓ 1 callersMethodlatent_dynamics
Predict the next state's latent representation given a current latent and action. Args: z: (*, latent_dim) tensor for the current
lerobot/common/policies/tdmpc/modeling_tdmpc.py:642
↓ 1 callersFunctionlist_to_tuple
(item)
lerobot/common/policies/factory.py:34
↓ 1 callersFunctionload_episode_data_index
episode_data_index contains the range of indices for each episode Example: ```python from_id = episode_data_index["from"][episode_id].ite
lerobot/common/datasets/utils.py:142
↓ 1 callersFunctionload_from_raw
(raw_dir: Path, videos_dir: Path, fps: int, video: bool, episodes: list[int] | None = None)
lerobot/common/datasets/push_dataset_to_hub/dora_parquet_format.py:45
↓ 1 callersFunctionload_from_raw
( raw_dir: Path, videos_dir: Path, fps: int, video: bool, episodes: list[int] | None = Non
lerobot/common/datasets/push_dataset_to_hub/aloha_hdf5_format.py:79
↓ 1 callersFunctionload_from_raw
(raw_dir: Path, fps: int, episodes: list[int] | None = None)
lerobot/common/datasets/push_dataset_to_hub/cam_png_format.py:38
↓ 1 callersFunctionload_from_raw
( raw_dir: Path, videos_dir: Path, fps: int, video: bool, episodes: list[int] | None = Non
lerobot/common/datasets/push_dataset_to_hub/xarm_pkl_format.py:63
↓ 1 callersFunctionload_from_raw
( raw_dir: Path, videos_dir: Path, fps: int, video: bool, episodes: list[int] | None = Non
lerobot/common/datasets/push_dataset_to_hub/umi_zarr_format.py:67
↓ 1 callersFunctionload_from_raw
( raw_dir: Path, videos_dir: Path, fps: int, video: bool, episodes: list[int] | None = Non
lerobot/common/datasets/push_dataset_to_hub/pusht_zarr_format.py:62
↓ 1 callersFunctionload_from_videos
Note: When using data workers (e.g. DataLoader with num_workers>0), do not call this function in the main process (e.g. by using a second Dataload
lerobot/common/datasets/video_utils.py:30
↓ 1 callersFunctionload_hf_dataset
hf_dataset contains all the observations, states, actions, rewards, etc.
lerobot/common/datasets/utils.py:114
↓ 1 callersFunctionload_info
info contains useful information regarding the dataset that are not stored elsewhere Example: ```python print("frame per second used to c
lerobot/common/datasets/utils.py:183
↓ 1 callersMethodload_last_training_state
Given the last checkpoint in the logging directory, load the optimizer state, scheduler state, and random state, and return the globa
lerobot/common/logger.py:213
↓ 1 callersFunctionload_original_frames
(imgs_dir: Path, timestamps: list[float], fps: int)
benchmarks/video/run_video_benchmark.py:84
↓ 1 callersFunctionload_previous_and_future_frames
Given a current item in the dataset containing a timestamp (e.g. 0.6 seconds), and a list of time differences of some modalities (e.g. delta_
lerobot/common/datasets/utils.py:214
↓ 1 callersFunctionload_stats
stats contains the statistics per modality computed over the full dataset, such as max, min, mean, std Example: ```python normalized_acti
lerobot/common/datasets/utils.py:163
↓ 1 callersFunctionload_videos
(repo_id, version, root)
lerobot/common/datasets/utils.py:202
↓ 1 callersFunctionlog_eval_info
(logger, info, step, cfg, dataset, is_online)
lerobot/scripts/train.py:203
↓ 1 callersMethodlog_video
(self, video_path: str, step: int, mode: str = "train")
lerobot/common/logger.py:242
↓ 1 callersMethodloss_fn
for given ground truth action values (target), and prediction (pred) this function calculates the overall loss. predicted_action: pr
lerobot/common/policies/vqbet/modeling_vqbet.py:547
↓ 1 callersFunctionmain
( output_dir: Path, repo_ids: list[str], vcodec: list[str], pix_fmt: list[str], g: list[in
benchmarks/video/run_video_benchmark.py:310
↓ 1 callersFunctionmain
()
lerobot/scripts/visualize_dataset_html.py:242
↓ 1 callersFunctionmain
()
lerobot/scripts/visualize_dataset.py:197
↓ 1 callersFunctionmain
()
lerobot/scripts/push_dataset_to_hub.py:257
↓ 1 callersFunctionmain
()
lerobot/common/robot_devices/robots/ur.py:143
↓ 1 callersFunctionmain
()
lerobot/common/datasets/push_dataset_to_hub/_download_raw.py:110
↓ 1 callersFunctionmain
()
lerobot/common/datasets/push_dataset_to_hub/_encode_datasets.py:103
↓ 1 callersFunctionmake_optimizer_and_scheduler
(cfg, policy)
lerobot/scripts/train.py:54
↓ 1 callersFunctionmake_robot
(cfg: DictConfig)
lerobot/common/robot_devices/robots/factory.py:5
↓ 1 callersFunctionorthogonal_loss_fn
(t)
lerobot/common/policies/vqbet/vqbet_utils.py:1158
↓ 1 callersFunctionpad_shape
(shape, size, dim=0)
lerobot/common/policies/vqbet/vqbet_utils.py:1044
↓ 1 callersMethodplan
Plan sequence of actions using TD-MPC inference. Args: z: (batch, latent_dim,) tensor for the initial state. Returns:
lerobot/common/policies/tdmpc/modeling_tdmpc.py:182
↓ 1 callersFunctionpush_dataset_card_to_hub
Creates and pushes a LeRobotDataset Card with appropriate tags to easily find it on the hub.
lerobot/scripts/push_dataset_to_hub.py:117
↓ 1 callersFunctionpush_meta_data_to_hub
Expect all meta data files to be all stored in a single "meta_data" directory. On the hugging face repositery, they will be uploaded in a "meta_da
lerobot/scripts/push_dataset_to_hub.py:103
↓ 1 callersFunctionpush_videos_to_hub
Expect mp4 files to be all stored in a single "videos" directory. On the hugging face repositery, they will be uploaded in a "videos" directory at
lerobot/scripts/push_dataset_to_hub.py:125
↓ 1 callersMethodread_current_Force
(self)
lerobot/common/robot_devices/robots/pgi_tools.py:136
↓ 1 callersMethodread_force
(self)
lerobot/common/robot_devices/robots/pgi_tools.py:83
↓ 1 callersMethodread_initialization_state
(self)
lerobot/common/robot_devices/robots/pgi_tools.py:109
↓ 1 callersMethodread_position
(self)
lerobot/common/robot_devices/robots/pgi_tools.py:94
↓ 1 callersMethodread_speed
(self)
lerobot/common/robot_devices/robots/pgi_tools.py:105
↓ 1 callersFunctionregister_codecs
Register codecs in this module with numcodecs.
lerobot/common/datasets/push_dataset_to_hub/_umi_imagecodecs_numcodecs.py:296
↓ 1 callersFunctionreplay
(robot: Robot, episode: int, fps: int | None = None, root="data", repo_id="lerobot/debug")
lerobot/scripts/control_robot.py:699
↓ 1 callersMethodreset
Clear observation and action queues. Should be called on `env.reset()`
lerobot/common/policies/diffusion/modeling_diffusion.py:96
↓ 1 callersMethodreset
Clear observation and action queues. Should be called on `env.reset()` queues are populated during rollout of the policy, they contai
lerobot/common/policies/vqbet/modeling_vqbet.py:86
↓ 1 callersMethodreset
Clear observation and action queues. Clear previous means for warm starting of MPPI/CEM. Should be called on `env.reset()`
lerobot/common/policies/tdmpc/modeling_tdmpc.py:116
↓ 1 callersMethodreset
This should be called whenever the environment is reset.
lerobot/common/policies/act/modeling_act.py:91
↓ 1 callersMethodreset
Resets the online computation variables.
lerobot/common/policies/act/modeling_act.py:212
↓ 1 callersFunctionreset_episode_index
Reset the `episode_index` of the provided HuggingFace Dataset. `episode_data_index` (and related functionality such as `load_previous_and_future_
lerobot/common/datasets/utils.py:361
↓ 1 callersFunctionreset_torque_mode
(arm: MotorsBus)
lerobot/common/robot_devices/robots/gello_ur5.py:49
↓ 1 callersMethodrevert_calibration
Inverse of `apply_calibration`.
lerobot/common/robot_devices/motors/dynamixel.py:540
↓ 1 callersFunctionrollout
Run a batched policy rollout once through a batch of environments. Note that all environments in the batch are run until the last environment is
lerobot/scripts/eval.py:82
↓ 1 callersMethodrun_calibration
(self)
lerobot/common/robot_devices/robots/gello_ur5.py:237
↓ 1 callersMethodrun_calibration
(self)
lerobot/common/robot_devices/robots/koch.py:354
↓ 1 callersFunctionrun_server
( dataset: LeRobotDataset, episodes: list[int], host: str, port: str, static_folder: Path,
lerobot/scripts/visualize_dataset_html.py:81
↓ 1 callersFunctionsample_multinomial
(total_count, probs)
lerobot/common/policies/vqbet/vqbet_utils.py:1048
↓ 1 callersFunctionsample_timestamps
(timestamps_mode: str, ep_num_images: int, fps: int)
benchmarks/video/run_video_benchmark.py:132
↓ 1 callersMethodsave_checkpont
Checkpoint the model weights and the training state.
lerobot/common/logger.py:192
↓ 1 callersFunctionsave_config_all_transforms
(cfg, original_frame, output_dir, n_examples)
lerobot/scripts/visualize_image_transforms.py:71
↓ 1 callersFunctionsave_config_single_transforms
(cfg, original_frame, output_dir, n_examples)
lerobot/scripts/visualize_image_transforms.py:98
↓ 1 callersFunctionsave_decoded_frames
( imgs_dir: Path, save_dir: Path, frames: torch.Tensor, timestamps: list[float], fps: int )
benchmarks/video/run_video_benchmark.py:96
↓ 1 callersFunctionsave_first_episode
(imgs_dir: Path, dataset: LeRobotDataset)
benchmarks/video/run_video_benchmark.py:110
↓ 1 callersFunctionsave_images_from_cameras
( images_dir: Path, camera_ids: list[int] | None = None, fps=None, width=None, height=None, record_time_s=
lerobot/common/robot_devices/cameras/opencv.py:77
↓ 1 callersMethodsave_model
Save the weights of the Policy model using PyTorchModelHubMixin. The weights are saved in a folder called "pretrained_model" under the checkp
lerobot/common/logger.py:153
↓ 1 callersMethodsave_to_store
( self, store, chunks: dict[str, tuple] | None = None, compressors: str | numc
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:263
↓ 1 callersMethodsave_training_state
Checkpoint the global training_step, optimizer state, scheduler state, and random state. All of these are saved as "training_state.pth" under
lerobot/common/logger.py:172
↓ 1 callersMethodset_delta_timestamps
Set delta_timestamps converting the values to numpy arrays. The conversion is for an optimization in the __getitem__. The loop is much slower
lerobot/common/datasets/online_buffer.py:123
↓ 1 callersMethodset_freedrive_mode
Set the freedrive mode of the robot. Args: enable (bool): True to enable freedrive mode, False to disable it.
lerobot/common/robot_devices/robots/ur.py:110
↓ 1 callersFunctionteleoperate
(robot: Robot, fps: int | None = None, teleop_time_s: float | None = None)
lerobot/scripts/control_robot.py:279
↓ 1 callersFunctionto_hf_dataset
(data_dict, video)
lerobot/common/datasets/push_dataset_to_hub/dora_parquet_format.py:162
← previousnext →201–300 of 577, ranked by callers