mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-24 10:16:09 +00:00
fix(typos): fixing typos
This commit is contained in:
@@ -242,7 +242,7 @@ def sample_images(image_paths: list[str]) -> np.ndarray:
|
|||||||
images = None
|
images = None
|
||||||
for i, idx in enumerate(sampled_indices):
|
for i, idx in enumerate(sampled_indices):
|
||||||
path = image_paths[idx]
|
path = image_paths[idx]
|
||||||
# we load as uint8 to reduce memory usage
|
# we load RGB images as uint8 to reduce memory usage
|
||||||
img = load_image_as_numpy(path, dtype=np.uint8, channel_first=True)
|
img = load_image_as_numpy(path, dtype=np.uint8, channel_first=True)
|
||||||
img = auto_downsample_height_width(img)
|
img = auto_downsample_height_width(img)
|
||||||
|
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ def visualize_dataset(
|
|||||||
stats = dataset.meta.stats[key]
|
stats = dataset.meta.stats[key]
|
||||||
lo = stats["q01"] if "q01" in stats else stats["min"]
|
lo = stats["q01"] if "q01" in stats else stats["min"]
|
||||||
hi = stats["q99"] if "q99" in stats else stats["max"]
|
hi = stats["q99"] if "q99" in stats else stats["max"]
|
||||||
depth_ranges[key] = (float(lo), float(hi))
|
depth_ranges[key] = (float(np.asarray(lo).item()), float(np.asarray(hi).item()))
|
||||||
|
|
||||||
first_index = None
|
first_index = None
|
||||||
for batch in tqdm.tqdm(dataloader, total=len(dataloader)):
|
for batch in tqdm.tqdm(dataloader, total=len(dataloader)):
|
||||||
|
|||||||
Reference in New Issue
Block a user