Unverified Commit e3fb8c09 authored by Philip Meier's avatar Philip Meier Committed by GitHub
Browse files

update draw_boxes reference image in tests(#8052)

parent 1d6f7875
test/assets/fakedata/draw_boxes_util.png

560 Bytes | W: | H:

test/assets/fakedata/draw_boxes_util.png

855 Bytes | W: | H:

test/assets/fakedata/draw_boxes_util.png
test/assets/fakedata/draw_boxes_util.png
test/assets/fakedata/draw_boxes_util.png
test/assets/fakedata/draw_boxes_util.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -105,7 +105,7 @@ def test_draw_boxes(): ...@@ -105,7 +105,7 @@ def test_draw_boxes():
res = Image.fromarray(result.permute(1, 2, 0).contiguous().numpy()) res = Image.fromarray(result.permute(1, 2, 0).contiguous().numpy())
res.save(path) res.save(path)
if PILLOW_VERSION >= (8, 2): if PILLOW_VERSION >= (10, 1):
# The reference image is only valid for new PIL versions # The reference image is only valid for new PIL versions
expected = torch.as_tensor(np.array(Image.open(path))).permute(2, 0, 1) expected = torch.as_tensor(np.array(Image.open(path))).permute(2, 0, 1)
assert_equal(result, expected) assert_equal(result, expected)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment