Skip to content

Commit

Permalink
Restoring old paths
Browse files Browse the repository at this point in the history
  • Loading branch information
iago-suarez committed Feb 18, 2024
1 parent 649a824 commit 7a2f57b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7a2f57b

Please sign in to comment.