MCPcopy Create free account

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

Functions577 in github.com/Cheney-36/lerobot

↓ 2 callersFunctionget_activation_fn
Return an activation function given a string.
lerobot/common/policies/act/modeling_act.py:747
↓ 2 callersFunctionget_cameras
(hdf5_data)
lerobot/common/datasets/push_dataset_to_hub/aloha_hdf5_format.py:44
↓ 2 callersMethodget_checkpoints_dir
Given the log directory, get the sub-directory in which checkpoints will be saved.
lerobot/common/logger.py:136
↓ 2 callersMethodget_codebook_vector_from_indices
(self, indices)
lerobot/common/policies/vqbet/vqbet_utils.py:410
↓ 2 callersFunctionget_ep_csv_fname
(episode_id: int)
lerobot/scripts/visualize_dataset_html.py:133
↓ 2 callersMethodget_last_pretrained_model_dir
Given the log directory, get the sub-directory in which the last checkpoint's pretrained weights will be saved.
lerobot/common/logger.py:146
↓ 2 callersFunctioninside_slurm
Check whether the python process was launched through slurm
lerobot/common/utils/utils.py:31
↓ 2 callersFunctionis_headless
Detects if python is running without a monitor.
lerobot/scripts/control_robot.py:243
↓ 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
lerobot/common/policies/tdmpc/modeling_tdmpc.py:628
↓ 2 callersMethodlog_dict
(self, d, step, mode="train")
lerobot/common/logger.py:230
↓ 2 callersFunctionlog_output_dir
(out_dir)
lerobot/common/logger.py:38
↓ 2 callersFunctionlog_train_info
(logger: Logger, info, step, cfg, dataset, is_online)
lerobot/scripts/train.py:164
↓ 2 callersFunctionlog_warning
Log message with level WARNING.
lerobot/common/datasets/push_dataset_to_hub/_umi_imagecodecs_numcodecs.py:322
↓ 2 callersFunctionmain
( pretrained_policy_path: Path | None = None, hydra_cfg_path: str | None = None, out_dir: str | No
lerobot/scripts/eval.py:445
↓ 2 callersFunctionmake_dataset
Args: cfg: A Hydra config as per the LeRobot config scheme. split: Select the data subset used to create an instance of LeRobotDa
lerobot/common/datasets/factory.py:39
↓ 2 callersFunctionpack_one
(t, pattern)
lerobot/common/policies/vqbet/vqbet_utils.py:964
↓ 2 callersFunctionpreprocess_observation
Convert environment observation to LeRobot format observation. Args: observation: Dictionary of observation batches from a Gym vector envi
lerobot/common/envs/utils.py:22
↓ 2 callersFunctionprotective_squeeze
Squeeze dim only if it's not the last dim. Image dim expected to be *, H, W, C
lerobot/common/datasets/push_dataset_to_hub/_umi_imagecodecs_numcodecs.py:62
↓ 2 callersFunctionpush_dataset_to_hub
( raw_dir: Path, raw_format: str, repo_id: str, push_to_hub: bool = True, local_dir: Path
lerobot/scripts/push_dataset_to_hub.py:140
↓ 2 callersMethodread
Read a frame from the camera returned in the format (height, width, channels) (e.g. (640, 480, 3)), contrarily to the pytorch format which is
lerobot/common/robot_devices/cameras/opencv.py:286
↓ 2 callersMethodread
(self, data_name, motor_names: str | list[str] | None = None)
lerobot/common/robot_devices/motors/dynamixel.py:595
↓ 2 callersMethodread_current_position
(self)
lerobot/common/robot_devices/robots/pgi_tools.py:121
↓ 2 callersMethodread_grip_state
(self)
lerobot/common/robot_devices/robots/pgi_tools.py:117
↓ 2 callersMethodreconnect
(self)
lerobot/common/robot_devices/motors/dynamixel.py:334
↓ 2 callersFunctionrecord
( robot: Robot, policy: torch.nn.Module | None = None, hydra_cfg: DictConfig | None = None, fp
lerobot/scripts/control_robot.py:300
↓ 2 callersFunctionrun_arm_calibration
This function ensures that a neural network trained on data collected on a given robot can work on another robot. For instance before calibration,
lerobot/common/robot_devices/robots/koch.py:67
↓ 2 callersFunctionsample_vectors
(samples, num)
lerobot/common/policies/vqbet/vqbet_utils.py:1030
↓ 2 callersMethodset_force
(self, force)
lerobot/common/robot_devices/robots/pgi_tools.py:76
↓ 2 callersFunctionset_global_random_state
Set the random state for `random`, `numpy`, and `torch`. Args: random_state_dict: A dictionary of the form returned by `get_global_random
lerobot/common/utils/utils.py:70
↓ 2 callersMethodset_joint_state
Command the leader robot to a given state. Args: joint_state (np.ndarray): The state to command the leader robot to.
lerobot/common/robot_devices/robots/ur.py:72
↓ 2 callersMethodset_position
(self, position)
lerobot/common/robot_devices/robots/pgi_tools.py:87
↓ 2 callersMethodset_speed
(self, speed)
lerobot/common/robot_devices/robots/pgi_tools.py:98
↓ 2 callersFunctionto_hf_dataset
(data_dict, video)
lerobot/common/datasets/push_dataset_to_hub/aloha_hdf5_format.py:173
↓ 2 callersFunctiontrain
(cfg: DictConfig, out_dir: str | None = None, job_name: str | None = None)
lerobot/scripts/train.py:237
↓ 2 callersMethodupdate
Update the target model's parameters with an EMA step.
lerobot/common/policies/tdmpc/modeling_tdmpc.py:530
↓ 2 callersFunctionupdate_policy
Returns a dictionary of items for logging.
lerobot/scripts/train.py:107
↓ 2 callersFunctionwrite_shape_on_image_inplace
(image)
lerobot/common/robot_devices/cameras/utils.py:9
↓ 1 callersMethod__init__
( self, message="This robot device is not connected. Try calling `robot_device.connect()` first."
lerobot/common/robot_devices/utils.py:4
↓ 1 callersMethod__init__
Args: shapes (dict): A dictionary where keys are input modalities (e.g. "observation.image") and values are their sha
lerobot/common/policies/normalize.py:100
↓ 1 callersMethod__init__
( self, repo_id: str, root: Path | None = DATA_DIR, split: str = "train",
lerobot/common/datasets/lerobot_dataset.py:44
↓ 1 callersMethod__init__
(self, sharpness: float | Sequence[float])
lerobot/common/datasets/transforms.py:112
↓ 1 callersMethod_check_input
(self, sharpness)
lerobot/common/datasets/transforms.py:116
↓ 1 callersFunction_compile_episode_data
Convenience function for `eval_policy(return_episode_data=True)` Compiles all the rollout data into a Hugging Face dataset. Similar logic is
lerobot/scripts/eval.py:400
↓ 1 callersMethod_generate_value
(self, left: float, right: float)
lerobot/common/datasets/transforms.py:132
↓ 1 callersMethod_init_weights
Initialize model weights. Orthogonal initialization for all linear and convolutional layers' weights (apart from final layers of rewa
lerobot/common/policies/tdmpc/modeling_tdmpc.py:597
↓ 1 callersMethod_make_data_spec
Makes the data spec for np.memmap.
lerobot/common/datasets/online_buffer.py:134
↓ 1 callersFunction_make_memmap_safe
Make a numpy memmap with checks on available disk space first. Expected kwargs are: "filename", "dtype" (must by np.dtype), "mode" and "shape"
lerobot/common/datasets/online_buffer.py:34
↓ 1 callersFunction_make_noise_scheduler
Factory for noise scheduler instances of the requested type. All kwargs are passed to the scheduler.
lerobot/common/policies/diffusion/modeling_diffusion.py:160
↓ 1 callersFunction_policy_cfg_from_hydra_cfg
(policy_cfg_class, hydra_cfg)
lerobot/common/policies/factory.py:25
↓ 1 callersFunction_relative_path_between
Returns path1 relative to path2.
lerobot/common/utils/utils.py:142
↓ 1 callersFunction_replace_submodules
Args: root_module: The module for which the submodules need to be replaced predicate: Takes a module as an argument and must retu
lerobot/common/policies/diffusion/modeling_diffusion.py:503
↓ 1 callersFunction_replace_submodules
Args: root_module: The module for which the submodules need to be replaced predicate: Takes a module as an argument and must retu
lerobot/common/policies/vqbet/modeling_vqbet.py:780
↓ 1 callersMethod_reset_parameters
Xavier-uniform initialization of the transformer parameters as in the original code.
lerobot/common/policies/act/modeling_act.py:372
↓ 1 callersMethodadd_data
Add new data to the buffer, which could potentially mean shifting old data out. The new data should contain all the frames (in order) of any
lerobot/common/datasets/online_buffer.py:167
↓ 1 callersMethodadd_episode
( self, data: dict[str, np.ndarray], chunks: dict[str, tuple] | None = None, c
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:489
↓ 1 callersFunctionaggregate_stats
Aggregate stats of multiple LeRobot datasets into one set of stats without recomputing from scratch. The final stats will have the union of all d
lerobot/common/datasets/compute_stats.py:161
↓ 1 callersFunctionall_gather_sizes
(x, dim)
lerobot/common/policies/vqbet/vqbet_utils.py:1065
↓ 1 callersFunctionall_gather_variably_sized
(x, sizes, dim=0)
lerobot/common/policies/vqbet/vqbet_utils.py:1072
↓ 1 callersMethodapply_calibration
Convert from unsigned int32 joint position range [0, 2**32[ to the universal float32 nominal degree range ]-180.0, 180.0[ with a "zero positio
lerobot/common/robot_devices/motors/dynamixel.py:500
↓ 1 callersFunctionapply_drive_mode
(position, drive_mode)
lerobot/common/robot_devices/robots/gello_ur5.py:40
↓ 1 callersFunctionapply_drive_mode
(position, drive_mode)
lerobot/common/robot_devices/robots/koch.py:38
↓ 1 callersMethodare_motors_configured
(self)
lerobot/common/robot_devices/motors/dynamixel.py:341
↓ 1 callersFunctionassert_drive_mode
(drive_mode)
lerobot/common/robot_devices/robots/gello_ur5.py:34
↓ 1 callersFunctionassert_drive_mode
(drive_mode)
lerobot/common/robot_devices/robots/koch.py:32
↓ 1 callersMethodasync_read
(self)
lerobot/common/robot_devices/cameras/opencv.py:335
↓ 1 callersFunctionbatched_bincount
(x, *, minlength)
lerobot/common/policies/vqbet/vqbet_utils.py:1106
↓ 1 callersFunctionbatched_embedding
(indices, embeds)
lerobot/common/policies/vqbet/vqbet_utils.py:1151
↓ 1 callersFunctionbenchmark_decoding
( imgs_dir: Path, video_path: Path, timestamps_mode: str, backend: str, ep_num_images: int
benchmarks/video/run_video_benchmark.py:162
↓ 1 callersFunctionbenchmark_encoding_decoding
( dataset: LeRobotDataset, video_path: Path, imgs_dir: Path, encoding_cfg: dict, decoding_
benchmarks/video/run_video_benchmark.py:240
↓ 1 callersFunctioncalibrate
(robot: Robot)
lerobot/scripts/control_robot.py:266
↓ 1 callersFunctioncdist
(x, y)
lerobot/common/policies/vqbet/vqbet_utils.py:944
↓ 1 callersFunctioncheck_datasets_formats
(repo_ids: list)
benchmarks/video/run_video_benchmark.py:67
↓ 1 callersFunctioncheck_format
(raw_dir)
lerobot/common/datasets/push_dataset_to_hub/dora_parquet_format.py:36
↓ 1 callersFunctioncheck_format
(raw_dir)
lerobot/common/datasets/push_dataset_to_hub/aloha_hdf5_format.py:51
↓ 1 callersFunctioncheck_format
(raw_dir: Path)
lerobot/common/datasets/push_dataset_to_hub/cam_png_format.py:32
↓ 1 callersFunctioncheck_format
(raw_dir)
lerobot/common/datasets/push_dataset_to_hub/xarm_pkl_format.py:41
↓ 1 callersFunctioncheck_format
(raw_dir)
lerobot/common/datasets/push_dataset_to_hub/umi_zarr_format.py:42
↓ 1 callersFunctioncheck_format
(raw_dir)
lerobot/common/datasets/push_dataset_to_hub/pusht_zarr_format.py:41
↓ 1 callersMethodcompute_loss
This function expects `batch` to have (at least): { "observation.state": (B, n_obs_steps, state_dim) "observ
lerobot/common/policies/diffusion/modeling_diffusion.py:287
↓ 1 callersMethodconditional_sample
( self, batch_size: int, global_cond: Tensor | None = None, generator: torch.Generator | None = None
lerobot/common/policies/diffusion/modeling_diffusion.py:210
↓ 1 callersMethodconfigure_motors
(self)
lerobot/common/robot_devices/motors/dynamixel.py:350
↓ 1 callersMethodconfigure_parameters
This long function is unfortunately doing something very simple and is being very defensive: We are separating out all parameters of
lerobot/common/policies/vqbet/vqbet_utils.py:244
↓ 1 callersMethodconnect
(self)
lerobot/common/robot_devices/cameras/opencv.py:218
↓ 1 callersMethodconvert_to_short
(self,value)
lerobot/common/robot_devices/robots/pgi_tools.py:129
↓ 1 callersMethodcopy_from_path
Copy a on-disk zarr to in-memory compressed. Recommended
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:229
↓ 1 callersMethodcopy_from_store
Load to memory.
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:156
↓ 1 callersFunctioncreate_branch
Create a branch on a existing Hugging Face repo. Delete the branch if it already exists before creating it.
lerobot/common/datasets/utils.py:398
↓ 1 callersMethodcreate_empty_zarr
(cls, storage=None, root=None)
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:119
↓ 1 callersMethodcreate_from_group
(cls, group, **kwargs)
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:136
↓ 1 callersFunctioncreate_lerobot_dataset_card
(tags: list | None = None, text: str | None = None)
lerobot/common/datasets/utils.py:413
↓ 1 callersFunctioncreate_sinusoidal_pos_embedding
1D sinusoidal positional embeddings as in Attention is All You Need. Args: num_positions: Number of token positions required. Returns
lerobot/common/policies/act/modeling_act.py:675
↓ 1 callersFunctiondecode_video_frames
( video_path: str, timestamps: list[float], tolerance_s: float, backend: str, )
benchmarks/video/run_video_benchmark.py:150
↓ 1 callersMethoddisconnect
(self)
lerobot/common/robot_devices/robots/gello_ur5.py:368
↓ 1 callersMethoddisconnect
(self)
lerobot/common/robot_devices/robots/koch.py:496
↓ 1 callersMethoddisconnect
(self)
lerobot/common/robot_devices/cameras/opencv.py:358
↓ 1 callersMethoddiscretize
(self, n_vqvae_training_steps, actions)
lerobot/common/policies/vqbet/modeling_vqbet.py:423
↓ 1 callersFunctiondisplay_and_save_video_stream
(output_dir: Path, fps: int, width: int, height: int)
benchmarks/video/capture_camera_feed.py:25
↓ 1 callersFunctiondisplay_sys_info
Run this to get basic system info to help for tracking issues & bugs.
lerobot/scripts/display_sys_info.py:66
↓ 1 callersMethoddrop_episode
(self)
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:549
↓ 1 callersFunctionencode_datasets
( raw_dir: Path, raw_repo_ids: list[str], push_repo: str, vcodec: str, pix_fmt: str, g
lerobot/common/datasets/push_dataset_to_hub/_encode_datasets.py:52
← previousnext →101–200 of 577, ranked by callers