From d5b669634ae71e5a76679b976d9cc8031dcea0b5 Mon Sep 17 00:00:00 2001 From: Remi Date: Mon, 7 Oct 2024 11:35:35 +0200 Subject: [PATCH 1/2] Fix nightly by updating .cache in dockerignore (#464) --- .dockerignore | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index 70180795..b8c1be15 100644 --- a/.dockerignore +++ b/.dockerignore @@ -65,7 +65,6 @@ htmlcov/ .nox/ .coverage .coverage.* -.cache nosetests.xml coverage.xml *.cover @@ -73,6 +72,11 @@ coverage.xml .hypothesis/ .pytest_cache/ +# Ignore .cache except calibration +.cache/* +!.cache/calibration/ +!.cache/calibration/** + # Translations *.mo *.pot From c29e70e5a17d61f150e33779dab01e2d4f2e0534 Mon Sep 17 00:00:00 2001 From: Eugene Mironov Date: Wed, 9 Oct 2024 16:35:19 +0700 Subject: [PATCH 2/2] Fix issue with wrong using index instead of camera_index in opencv (#466) --- lerobot/common/robot_devices/cameras/opencv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lerobot/common/robot_devices/cameras/opencv.py b/lerobot/common/robot_devices/cameras/opencv.py index 7de4bc4e..2d8b12c9 100644 --- a/lerobot/common/robot_devices/cameras/opencv.py +++ b/lerobot/common/robot_devices/cameras/opencv.py @@ -156,7 +156,7 @@ def save_images_from_cameras( executor.submit( save_image, image, - camera.index, + camera.camera_index, frame_index, images_dir, )