mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-24 10:16:09 +00:00
test(fix): fixing failing tests
This commit is contained in:
@@ -47,6 +47,7 @@ class _FakeMeta:
|
|||||||
def __init__(self, video_keys: list[str], image_keys: list[str], video_path: Path | None = None) -> None:
|
def __init__(self, video_keys: list[str], image_keys: list[str], video_path: Path | None = None) -> None:
|
||||||
self.video_keys = video_keys
|
self.video_keys = video_keys
|
||||||
self.camera_keys = [*video_keys, *image_keys]
|
self.camera_keys = [*video_keys, *image_keys]
|
||||||
|
self.depth_keys = []
|
||||||
self._video_path = video_path
|
self._video_path = video_path
|
||||||
self.episodes = {0: {f"videos/{key}/from_timestamp": 0.0 for key in video_keys}}
|
self.episodes = {0: {f"videos/{key}/from_timestamp": 0.0 for key in video_keys}}
|
||||||
|
|
||||||
|
|||||||
@@ -344,7 +344,7 @@ def test_with_different_image_formats(tmp_path, img_array_factory):
|
|||||||
writer = AsyncImageWriter()
|
writer = AsyncImageWriter()
|
||||||
try:
|
try:
|
||||||
image_array = img_array_factory()
|
image_array = img_array_factory()
|
||||||
formats = ["png", "jpeg", "bmp"]
|
formats = ["png", "tiff", "tif"]
|
||||||
for fmt in formats:
|
for fmt in formats:
|
||||||
fpath = tmp_path / f"test_image.{fmt}"
|
fpath = tmp_path / f"test_image.{fmt}"
|
||||||
write_image(image_array, fpath)
|
write_image(image_array, fpath)
|
||||||
|
|||||||
Reference in New Issue
Block a user