Skip to content

ci errors from the recent updates #2502

Description

@wyli

Describe the bug
bug from pillow 8.3, python-pillow/Pillow#5571

======================================================================
ERROR: test_kitty_pretrained_2 (tests.test_efficientnet.TestEFFICIENTNET)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/conda/lib/python3.6/site-packages/parameterized/parameterized.py", line 533, in standalone_func
    return func(*(a + p.args), **p.kwargs)
  File "/__w/MONAI/MONAI/tests/test_efficientnet.py", line 267, in test_kitty_pretrained
    img = tfms(img).unsqueeze(0).to(device)
  File "/opt/conda/lib/python3.6/site-packages/torchvision/transforms/transforms.py", line 60, in __call__
    img = t(img)
  File "/opt/conda/lib/python3.6/site-packages/torchvision/transforms/transforms.py", line 97, in __call__
    return F.to_tensor(pic)
  File "/opt/conda/lib/python3.6/site-packages/torchvision/transforms/functional.py", line 129, in to_tensor
    np.array(pic, mode_to_nptype.get(pic.mode, np.uint8), copy=True)
TypeError: __array__() takes 1 positional argument but 2 were given

log: https://github.com/Project-MONAI/MONAI/runs/2963278377#step:7:11309

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions