From 7a2f57bdd6ba7c21cf86a4cd16a2755fafdd8465 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iago=20Su=C3=A1rez?= Date: Mon, 19 Feb 2024 00:45:22 +0100 Subject: [PATCH] Restoring old paths --- tests/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/tests.py b/tests/tests.py index 646adf7..fc9f96a 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -91,13 +91,13 @@ def test_batched_triangle(self) -> None: self.assert_segs_close(r[:, :4], e, tol=2.5) def test_real_img(self) -> None: - img = cv2.imread('../resources/ai_001_001.frame.0000.color.jpg', cv2.IMREAD_GRAYSCALE) + img = cv2.imread('resources/ai_001_001.frame.0000.color.jpg', cv2.IMREAD_GRAYSCALE) segments = pytlsd.lsd(img) # Check that it detects at least 500 segments self.assertGreater(len(segments), 500) def test_batched_real_imgs(self) -> None: - img = cv2.imread('../resources/ai_001_001.frame.0000.color.jpg', cv2.IMREAD_GRAYSCALE) + img = cv2.imread('resources/ai_001_001.frame.0000.color.jpg', cv2.IMREAD_GRAYSCALE) batch_size = 8 # Generate synthetic variations of img batch = [] @@ -126,7 +126,7 @@ def test_batched_real_imgs(self) -> None: def test_with_grads(self) -> None: # Read one image - gray = cv2.imread('../resources/ai_001_001.frame.0000.color.jpg', cv2.IMREAD_GRAYSCALE) + gray = cv2.imread('resources/ai_001_001.frame.0000.color.jpg', cv2.IMREAD_GRAYSCALE) flt_img = gray.astype(np.float64) scale_down = 0.8