MCPcopy Create free account

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

Functions577 in github.com/Cheney-36/lerobot

Methodapply_action
(self, position = 0, force = 0, speed = 0)
lerobot/common/robot_devices/robots/pgi_tools.py:29
Methodapply_calibration
(self)
lerobot/common/robot_devices/motors/utils.py:7
Methodbackend
(self)
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:437
Functionbatched_sample_vectors
(samples, num)
lerobot/common/policies/vqbet/vqbet_utils.py:1040
Methodcalculate_ce_loss
(codes)
lerobot/common/policies/vqbet/vqbet_utils.py:816
Methodcalibrate
(self)
lerobot/common/robot_devices/robots/pgi_tools.py:56
Methodcamera_keys
Keys to access image and video stream from cameras.
lerobot/common/datasets/lerobot_dataset.py:91
Methodcamera_keys
Keys to access image and video stream from cameras.
lerobot/common/datasets/lerobot_dataset.py:322
Methodcapture_observation
The returned observations do not have a batch dimension.
lerobot/common/robot_devices/robots/gello_ur5.py:322
Methodcapture_observation
The returned observations do not have a batch dimension.
lerobot/common/robot_devices/robots/koch.py:441
Methodchunk_size
(self)
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:477
Methodcodebook
(self)
lerobot/common/policies/vqbet/vqbet_utils.py:674
Methodcodebooks
(self)
lerobot/common/policies/vqbet/vqbet_utils.py:404
Methodconnect
(self, port, timeout=1, baudrate=115200, stopbits=1, bytesize=8, parity='N', slave = 1)
lerobot/common/robot_devices/robots/pgi_tools.py:11
Methodconnect
(self)
lerobot/common/robot_devices/robots/gello_ur5.py:192
Methodconnect
(self)
lerobot/common/robot_devices/robots/koch.py:286
Methodconnect
(self)
lerobot/common/robot_devices/cameras/utils.py:55
Methodconnect
(self)
lerobot/common/robot_devices/motors/dynamixel.py:296
Functionconvert_torch_image_to_cv2
(tensor, rgb_to_bgr=True)
lerobot/common/robot_devices/cameras/utils.py:43
Methodcreate_empty_numpy
(cls)
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:131
Methodcreate_from_path
Open a on-disk zarr directly (for dataset larger than memory). Slower.
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:146
Methodcrop_block_size
(self, gpt_block_size)
lerobot/common/policies/vqbet/vqbet_utils.py:234
Functioncustom_format
(record)
lerobot/common/utils/utils.py:112
Methoddata
(self)
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:384
Methoddata_keys
(self)
lerobot/common/datasets/online_buffer.py:213
Methoddecode
(self, buf, out=None)
lerobot/common/datasets/push_dataset_to_hub/_umi_imagecodecs_numcodecs.py:135
Methoddecode
(self, buf, out=None)
lerobot/common/datasets/push_dataset_to_hub/_umi_imagecodecs_numcodecs.py:276
Methoddelta_timestamps
(self)
lerobot/common/datasets/online_buffer.py:120
Methoddisconnect
(self)
lerobot/common/robot_devices/robots/pgi_tools.py:25
Methoddisconnect
(self)
lerobot/common/robot_devices/cameras/utils.py:58
Functiondownload_all_raw_datasets
(data_dir: Path | None = None)
lerobot/common/datasets/push_dataset_to_hub/_download_raw.py:102
Methodencode
(self, buf)
lerobot/common/datasets/push_dataset_to_hub/_umi_imagecodecs_numcodecs.py:120
Methodencode
(self, buf)
lerobot/common/datasets/push_dataset_to_hub/_umi_imagecodecs_numcodecs.py:260
Methodepisode_ends
(self)
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:415
Methodepisode_lengths
(self)
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:483
Methodextra_repr
(self)
lerobot/common/datasets/transforms.py:83
Methodfeatures
(self)
lerobot/common/datasets/lerobot_dataset.py:87
Methodfeatures
(self)
lerobot/common/datasets/lerobot_dataset.py:315
Methodforward
(self, batch: dict[str, Tensor])
lerobot/common/policies/normalize.py:200
Methodforward
Run the batch through the model and compute the loss for training or validation. Returns a dictionary with "loss" and potentially other infor
lerobot/common/policies/policy_protocol.py:53
Methodforward
Run the batch through the model and compute the loss for training or validation.
lerobot/common/policies/diffusion/modeling_diffusion.py:149
Methodforward
Args: features: (B, C, H, W) input feature maps. Returns: (B, K, 2) image-space coordinates of keypoints.
lerobot/common/policies/diffusion/modeling_diffusion.py:402
Methodforward
Args: x: (B, C, H, W) image tensor with pixel values in [0, 1]. Returns: (B, D) image feature.
lerobot/common/policies/diffusion/modeling_diffusion.py:482
Methodforward
(self, x: Tensor)
lerobot/common/policies/diffusion/modeling_diffusion.py:543
Methodforward
(self, x)
lerobot/common/policies/diffusion/modeling_diffusion.py:565
Methodforward
Args: x: (B, T, input_dim) tensor for input to the Unet. timestep: (B,) tensor of (timestep_we_are_denoising_from - 1
lerobot/common/policies/diffusion/modeling_diffusion.py:651
Methodforward
Args: x: (B, in_channels, T) cond: (B, cond_dim) Returns: (B, out_channels, T)
lerobot/common/policies/diffusion/modeling_diffusion.py:728
Methodforward
Run the batch through the model and compute the loss for training or validation.
lerobot/common/policies/vqbet/modeling_vqbet.py:130
Methodforward
Args: features: (B, C, H, W) input feature maps. Returns: (B, K, 2) image-space coordinates of keypoints.
lerobot/common/policies/vqbet/modeling_vqbet.py:205
Methodforward
(self, batch: dict[str, Tensor], rollout: bool)
lerobot/common/policies/vqbet/modeling_vqbet.py:316
Methodforward
(self, x, **kwargs)
lerobot/common/policies/vqbet/modeling_vqbet.py:451
Methodforward
Args: x: (B, C, H, W) image tensor with pixel values in [0, 1]. Returns: (B, D) image feature.
lerobot/common/policies/vqbet/modeling_vqbet.py:759
Methodforward
(self, input, target)
lerobot/common/policies/vqbet/modeling_vqbet.py:927
Methodforward
(self, x)
lerobot/common/policies/vqbet/vqbet_utils.py:117
Methodforward
(self, x)
lerobot/common/policies/vqbet/vqbet_utils.py:157
Methodforward
(self, input, targets=None)
lerobot/common/policies/vqbet/vqbet_utils.py:203
Methodforward
For given input tensor x, this function will return the quantized output, the indices of the quantized output, and the loss. First, t
lerobot/common/policies/vqbet/vqbet_utils.py:451
Methodforward
( self, x, indices=None, mask=None, sample_codebook_temp=None,
lerobot/common/policies/vqbet/vqbet_utils.py:708
Methodforward
(self, x, sample_codebook_temp=None, mask=None, freeze_codebook=False)
lerobot/common/policies/vqbet/vqbet_utils.py:1386
Methodforward
Run the batch through the model and compute the loss. Returns a dictionary with loss as a tensor, and other information as native floats.
lerobot/common/policies/tdmpc/modeling_tdmpc.py:325
Methodforward
Encode the image and/or state vector. Each modality is encoded into a feature vector of size (latent_dim,) and then a uniform mean is taken
lerobot/common/policies/tdmpc/modeling_tdmpc.py:760
Methodforward
Run the batch through the model and compute the loss for training or validation.
lerobot/common/policies/act/modeling_act.py:134
Methodforward
A forward pass through the Action Chunking Transformer (with optional VAE encoder). `batch` should have the following structure: {
lerobot/common/policies/act/modeling_act.py:378
Methodforward
( self, x: Tensor, pos_embed: Tensor | None = None, key_padding_mask: Tensor | None = None )
lerobot/common/policies/act/modeling_act.py:532
Methodforward
(self, x, pos_embed: Tensor | None = None, key_padding_mask: Tensor | None = None)
lerobot/common/policies/act/modeling_act.py:559
Methodforward
( self, x: Tensor, encoder_out: Tensor, decoder_pos_embed: Tensor | None = Non
lerobot/common/policies/act/modeling_act.py:587
Methodforward
Args: x: (Decoder Sequence, Batch, Channel) tensor of input tokens. encoder_out: (Encoder Sequence, B, C) output feat
lerobot/common/policies/act/modeling_act.py:627
Methodforward
Args: x: A (B, C, H, W) batch of 2D feature map to generate the embeddings for. Returns: A (1, C, H, W) batch
lerobot/common/policies/act/modeling_act.py:712
Methodforward
(self, *inputs: Any)
lerobot/common/datasets/transforms.py:68
Methodfps
Frames per second used during data collection.
lerobot/common/datasets/lerobot_dataset.py:75
Methodfps
Frames per second used during data collection. NOTE: Fow now, this relies on a check in __init__ to make sure all sub-datasets have the same
lerobot/common/datasets/lerobot_dataset.py:297
Methodfps
(self)
lerobot/common/datasets/online_buffer.py:220
Methodfreedrive_enabled
Check if the robot is in freedrive mode. Returns: bool: True if the robot is in freedrive mode, False otherwise.
lerobot/common/robot_devices/robots/ur.py:102
Functionfrom_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/dora_parquet_format.py:197
Functionfrom_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/aloha_hdf5_format.py:208
Functionfrom_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/xarm_pkl_format.py:175
Functionfrom_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/umi_zarr_format.py:203
Functionfrom_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/pusht_zarr_format.py:246
Methodget_chunks
(self)
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:604
Methodget_codebook_vector_from_indices
(self, indices)
lerobot/common/policies/vqbet/vqbet_utils.py:689
Methodget_compressors
(self)
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:620
Functionget_default_image_compressor
(**kwargs)
lerobot/common/datasets/push_dataset_to_hub/_umi_imagecodecs_numcodecs.py:75
Functionget_episode_index
(row)
lerobot/common/datasets/push_dataset_to_hub/dora_parquet_format.py:82
Methodget_episode_slice
(self, idx)
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:585
Functionget_queue_name
(fn_name, data_name, motor_names)
lerobot/common/robot_devices/motors/dynamixel.py:188
Functionget_result_name
(fn_name, data_name, motor_names)
lerobot/common/robot_devices/motors/dynamixel.py:182
Methodget_status
(self)
lerobot/common/robot_devices/robots/pgi_tools.py:238
Functiongumbel_sample
( logits, temperature=1.0, stochastic=False, straight_through=False, reinmax=False, di
lerobot/common/policies/vqbet/vqbet_utils.py:983
Functionhf_transform_to_torch
Get a transform function that convert items from Hugging Face dataset (pyarrow) to torch tensors. Importantly, images are converted from PIL, whic
lerobot/common/datasets/utils.py:72
Functionidentity
(t)
lerobot/common/policies/vqbet/vqbet_utils.py:940
Functionindex
()
lerobot/scripts/visualize_dataset_html.py:93
Methodinit_teleop
(self)
lerobot/common/robot_devices/robots/utils.py:5
Methodlr_lambda
(current_step)
lerobot/common/policies/vqbet/modeling_vqbet.py:681
Methodmeta
(self)
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:388
Functionmodify_ep_idx_func
(example)
lerobot/common/datasets/utils.py:376
Methodmotor_indices
(self)
lerobot/common/robot_devices/motors/dynamixel.py:494
Methodmotor_models
(self)
lerobot/common/robot_devices/motors/dynamixel.py:490
Methodmotor_names
(self)
lerobot/common/robot_devices/motors/utils.py:5
Methodmotor_names
(self)
lerobot/common/robot_devices/motors/dynamixel.py:486
Methodn_episodes
(self)
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:473
← previousnext →401–500 of 577, ranked by callers