Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoLostanlen committed Apr 4, 2024
1 parent 3e8ff47 commit 347c230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_vision.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def test_classifier(mock_wildfire_image):
# Instantiate the ONNX model
model = Classifier()
# Check preprocessing
out = model.preprocess_image(mock_wildfire_image)
out, pad = model.preprocess_image(mock_wildfire_image)

Check warning on line 10 in tests/test_vision.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

tests/test_vision.py#L10

Unused variable 'pad'
assert isinstance(out, np.ndarray) and out.dtype == np.float32
assert out.shape == (1, 3, 384, 640)
# Check inference
Expand Down

0 comments on commit 347c230

Please sign in to comment.