Skip to content

Commit bed90e3

Browse files
authored
fix: typos and grammar (#1148)
1 parent 6163daa commit bed90e3

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

examples/11_use_moss.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ python lerobot/scripts/configure_motor.py \
141141
--ID 1
142142
```
143143

144-
Note: These motors are currently limitated. They can take values between 0 and 4096 only, which corresponds to a full turn. They can't turn more than that. 2048 is at the middle of this range, so we can take -2048 steps (180 degrees anticlockwise) and reach the maximum range, or take +2048 steps (180 degrees clockwise) and reach the maximum range. The configuration step also sets the homing offset to 0, so that if you misassembled the arm, you can always update the homing offset to account for a shift up to ± 2048 steps (± 180 degrees).
144+
Note: These motors are currently limited. They can take values between 0 and 4096 only, which corresponds to a full turn. They can't turn more than that. 2048 is at the middle of this range, so we can take -2048 steps (180 degrees anticlockwise) and reach the maximum range, or take +2048 steps (180 degrees clockwise) and reach the maximum range. The configuration step also sets the homing offset to 0, so that if you misassembled the arm, you can always update the homing offset to account for a shift up to ± 2048 steps (± 180 degrees).
145145

146146
Then unplug your motor and plug the second motor and set its ID to 2.
147147
```bash

lerobot/common/datasets/image_writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def worker_process(queue: queue.Queue, num_threads: int):
106106
class AsyncImageWriter:
107107
"""
108108
This class abstract away the initialisation of processes or/and threads to
109-
save images on disk asynchrounously, which is critical to control a robot and record data
109+
save images on disk asynchronously, which is critical to control a robot and record data
110110
at a high frame rate.
111111
112112
When `num_processes=0`, it creates a threads pool of size `num_threads`.

lerobot/common/datasets/lerobot_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ def start_image_writer(self, num_processes: int = 0, num_threads: int = 4) -> No
944944
def stop_image_writer(self) -> None:
945945
"""
946946
Whenever wrapping this dataset inside a parallelized DataLoader, this needs to be called first to
947-
remove the image_writer in order for the LeRobotDataset object to be pickleable and parallelized.
947+
remove the image_writer in order for the LeRobotDataset object to be picklable and parallelized.
948948
"""
949949
if self.image_writer is not None:
950950
self.image_writer.stop()

lerobot/common/datasets/video_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def decode_video_frames_torchvision(
101101
keyframes_only = False
102102
torchvision.set_video_backend(backend)
103103
if backend == "pyav":
104-
keyframes_only = True # pyav doesnt support accuracte seek
104+
keyframes_only = True # pyav doesn't support accurate seek
105105

106106
# set a video stream reader
107107
# TODO(rcadene): also load audio stream at the same time

lerobot/common/policies/pi0/modeling_pi0.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def prepare_images(self, batch):
357357
if self.config.resize_imgs_with_padding is not None:
358358
img = resize_with_pad(img, *self.config.resize_imgs_with_padding, pad_value=0)
359359

360-
# Normalize from range [0,1] to [-1,1] as expacted by siglip
360+
# Normalize from range [0,1] to [-1,1] as expected by siglip
361361
img = img * 2.0 - 1.0
362362

363363
bsize = img.shape[0]

lerobot/common/policies/pi0fast/modeling_pi0fast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ def prepare_images(self, batch):
516516
interpolate_like_pi=self.config.interpolate_like_pi,
517517
)
518518

519-
# Normalize from range [0,1] to [-1,1] as expacted by siglip
519+
# Normalize from range [0,1] to [-1,1] as expected by siglip
520520
img = img * 2.0 - 1.0
521521

522522
bsize = img.shape[0]

0 commit comments

Comments
 (0)