Skip to content

Commit

Permalink
add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoLostanlen committed Jul 31, 2023
1 parent 1ad8b6c commit 42a2acc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_vision.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@ def test_classifier(mock_wildfire_image):
# Test mask
mask = np.ones((384, 640))
out = model(mock_wildfire_image, mask)
assert out.shape == (1, 5)

mask = np.zeros((384, 640))
out = model(mock_wildfire_image, mask)
assert out.shape == (0, 5)

0 comments on commit 42a2acc

Please sign in to comment.