Skip to content

Commit

Permalink
[Cherry-pick] update draw_boxes reference image #8052 (#8076)
Browse files Browse the repository at this point in the history
Co-authored-by: Philip Meier <[email protected]>
  • Loading branch information
NicolasHug and pmeier authored Oct 28, 2023
1 parent 291c9aa commit 7f53572
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified test/assets/fakedata/draw_boxes_util.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def test_draw_boxes():
res = Image.fromarray(result.permute(1, 2, 0).contiguous().numpy())
res.save(path)

if PILLOW_VERSION >= (8, 2):
if PILLOW_VERSION >= (10, 1):
# The reference image is only valid for new PIL versions
expected = torch.as_tensor(np.array(Image.open(path))).permute(2, 0, 1)
assert_equal(result, expected)
Expand Down

0 comments on commit 7f53572

Please sign in to comment.