MCPcopy Create free account

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

Functions577 in github.com/Cheney-36/lerobot

Methodn_steps
(self)
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:467
Functionnone_or_int
(value)
lerobot/scripts/control_robot.py:195
Functionnoop
(*args, **kwargs)
lerobot/common/policies/vqbet/vqbet_utils.py:936
Methodnum_dofs
Get the number of joints of the robot. Returns: int: The number of joints of the robot.
lerobot/common/robot_devices/robots/ur.py:38
Methodnum_episodes
Number of episodes.
lerobot/common/datasets/lerobot_dataset.py:119
Methodnum_episodes
Number of episodes.
lerobot/common/datasets/lerobot_dataset.py:350
Methodnum_episodes
(self)
lerobot/common/datasets/online_buffer.py:224
Methodnum_samples
Number of samples/frames.
lerobot/common/datasets/lerobot_dataset.py:114
Methodnum_samples
Number of samples/frames.
lerobot/common/datasets/lerobot_dataset.py:345
Methodnum_samples
(self)
lerobot/common/datasets/online_buffer.py:230
Functionon_press
(key)
lerobot/scripts/control_robot.py:369
Functionparse_int_or_none
(value)
benchmarks/video/run_video_benchmark.py:58
Methodpop_episode
(self)
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:567
Functionprint_cuda_memory_usage
Use this function to locate and debug memory leak.
lerobot/common/utils/utils.py:171
Functionprocess_sample
(sample: int)
benchmarks/video/run_video_benchmark.py:173
Functionrandom_shifts_aug
Randomly shifts images horizontally and vertically. Adapted from https://github.com/facebookresearch/drqv2
lerobot/common/policies/tdmpc/modeling_tdmpc.py:777
Methodread
(self)
lerobot/common/robot_devices/motors/utils.py:9
Methodread_baud_rate
(self)
lerobot/common/robot_devices/robots/pgi_tools.py:172
Methodread_current_Speed
(self)
lerobot/common/robot_devices/robots/pgi_tools.py:125
Methodread_device_id
(self)
lerobot/common/robot_devices/robots/pgi_tools.py:162
Methodread_info
(self)
lerobot/common/robot_devices/robots/pgi_tools.py:34
Methodread_initialization_direction
(self)
lerobot/common/robot_devices/robots/pgi_tools.py:152
Methodread_io_level
(self, io_number)
lerobot/common/robot_devices/robots/pgi_tools.py:218
Methodread_io_mode
(self)
lerobot/common/robot_devices/robots/pgi_tools.py:208
Methodread_io_parameters
(self, io_param)
lerobot/common/robot_devices/robots/pgi_tools.py:231
Methodread_loop
(self)
lerobot/common/robot_devices/cameras/opencv.py:331
Methodread_parity
(self)
lerobot/common/robot_devices/robots/pgi_tools.py:192
Methodread_stop_bits
(self)
lerobot/common/robot_devices/robots/pgi_tools.py:182
Functionrender_frame
(env: gym.vector.VectorEnv)
lerobot/scripts/eval.py:252
Methodrepo_id_to_index
Return a mapping from dataset repo_id to a dataset index automatically created by this class. This index is incorporated as a data key in the
lerobot/common/datasets/lerobot_dataset.py:284
Methodrepo_index_to_id
Return the inverse mapping if repo_id_to_index.
lerobot/common/datasets/lerobot_dataset.py:292
Methodresult_ms
(self)
lerobot/common/utils/benchmark.py:91
Methodrevert_calibration
(self)
lerobot/common/robot_devices/motors/utils.py:8
Functionrun_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/gello_ur5.py:69
Methodrun_calibration
(self)
lerobot/common/robot_devices/robots/utils.py:6
Functionsample_trajectory_and_update_buffer
()
lerobot/scripts/train.py:539
Functionsample_vectors_distributed
(local_samples, num)
lerobot/common/policies/vqbet/vqbet_utils.py:1085
Functionsave_color_image
(image, path, write_shape=False)
lerobot/common/robot_devices/cameras/utils.py:23
Functionsave_depth_image
(depth, path, write_shape=False)
lerobot/common/robot_devices/cameras/utils.py:31
Functionsave_image
将输入的张量图像保存到指定路径下。 Args: img_tensor (Tensor): 输入的张量图像,形状为 (H, W, C),数据类型为 float32 或 uint8。 key (str): 图像保存路径的标识字符串。
lerobot/scripts/control_robot.py:165
Functionsave_image
(img_array, camera_index, frame_index, images_dir)
lerobot/common/robot_devices/cameras/opencv.py:70
Functionsave_image
(img_array, i, out_dir)
lerobot/common/datasets/push_dataset_to_hub/utils.py:50
Methodsave_to_path
( self, zarr_path, chunks: dict[str, tuple] | None = None, compressors: str |
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:322
Functionseeded_context
Set the seed when entering a context, and restore the prior random state at exit. Example usage: ``` a = random.random() # produces som
lerobot/common/utils/utils.py:93
Methodselect_action
Select a single action given environment observations. This method handles caching a history of observations and an action trajectory generat
lerobot/common/policies/diffusion/modeling_diffusion.py:108
Methodselect_action
Select a single action given environment observations. This method wraps `select_actions` in order to return one action at a time for executi
lerobot/common/policies/vqbet/modeling_vqbet.py:98
Methodselect_action
Select a single action given environment observations.
lerobot/common/policies/tdmpc/modeling_tdmpc.py:134
Methodselect_action
Select a single action given environment observations. This method wraps `select_actions` in order to return one action at a time for executi
lerobot/common/policies/act/modeling_act.py:99
Methodsend_action
The provided action is expected to be a vector.
lerobot/common/robot_devices/robots/gello_ur5.py:359
Methodsend_action
The provided action is expected to be a vector.
lerobot/common/robot_devices/robots/koch.py:477
Methodset_baud_rate
(self, baud_rate_index)
lerobot/common/robot_devices/robots/pgi_tools.py:166
Methodset_calibration
(self, calibration: dict[str, tuple[int, bool]])
lerobot/common/robot_devices/motors/dynamixel.py:497
Methodset_chunks
(self, chunks: dict)
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:611
Methodset_compressors
(self, compressors: dict)
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:627
Methodset_device_id
(self, device_id)
lerobot/common/robot_devices/robots/pgi_tools.py:156
Methodset_initialization_direction
(self, direction)
lerobot/common/robot_devices/robots/pgi_tools.py:146
Methodset_io_level
(self, io_number, level)
lerobot/common/robot_devices/robots/pgi_tools.py:212
Methodset_io_mode
(self, mode)
lerobot/common/robot_devices/robots/pgi_tools.py:202
Methodset_io_parameters
(self, io_param, value)
lerobot/common/robot_devices/robots/pgi_tools.py:225
Methodset_parity
(self, parity)
lerobot/common/robot_devices/robots/pgi_tools.py:186
Methodset_stop_bits
(self, stop_bits)
lerobot/common/robot_devices/robots/pgi_tools.py:176
Functionshow_episode
(dataset_namespace, dataset_name, episode_id)
lerobot/scripts/visualize_dataset_html.py:107
Methodteleop_step
( self, record_data=False )
lerobot/common/robot_devices/robots/gello_ur5.py:257
Methodteleop_step
( self, record_data=False )
lerobot/common/robot_devices/robots/koch.py:373
Methodtest_io_parameters
(self, io_function)
lerobot/common/robot_devices/robots/pgi_tools.py:196
Methodtolerance_s
Tolerance in seconds used to discard loaded frames when their timestamps are not close enough from the requested frames. It is only used when
lerobot/common/datasets/lerobot_dataset.py:124
Methodtolerance_s
Tolerance in seconds used to discard loaded frames when their timestamps are not close enough from the requested frames. It is only used when
lerobot/common/datasets/lerobot_dataset.py:355
Functiontrain_notebook
(out_dir=None, job_name=None, config_name="default", config_path="../configs")
lerobot/scripts/train.py:659
Functionuniform_init
(*shape)
lerobot/common/policies/vqbet/vqbet_utils.py:972
Methodupdate_meta
(self, data)
lerobot/common/datasets/push_dataset_to_hub/_diffusion_policy_replay_buffer.py:391
Methodvideo
Returns True if this dataset loads video frames from mp4 files. Returns False if it only loads images from png files.
lerobot/common/datasets/lerobot_dataset.py:80
Methodvideo
Returns True if this dataset loads video frames from mp4 files. Returns False if it only loads images from png files. NOTE: Fow now,
lerobot/common/datasets/lerobot_dataset.py:305
Methodvideo_frame_keys
Keys to access video frames that requires to be decoded into images. Note: It is empty if the dataset contains images only, or equal
lerobot/common/datasets/lerobot_dataset.py:100
Methodvideo_frame_keys
Keys to access video frames that requires to be decoded into images. Note: It is empty if the dataset contains images only, or equal
lerobot/common/datasets/lerobot_dataset.py:331
Methodwrite
(self, data_name, values: int | float | np.ndarray, motor_names: str | list[str] | None = None)
lerobot/common/robot_devices/motors/dynamixel.py:695
Methodwrite_to_flash
(self, save)
lerobot/common/robot_devices/robots/pgi_tools.py:140
Functionwrite_video
(video_path, stacked_frames, fps)
lerobot/common/utils/io_utils.py:21
← previous501–577 of 577, ranked by callers