SIGMA icon indicating copy to clipboard operation
SIGMA copied to clipboard

target = target.resize(image.size) AttributeError: 'list' object has no attribute 'resize'

Open sysuzgg opened this issue 2 years ago • 0 comments

fcos_core/data/transforms/transforms.py line 61, in call report "AttributeError: 'list' object has no attribute 'resize'". When I change it to "target = F.resize(target, size), it reported " TypeError: img should be PIL Image. Got <class 'list'>" . Can you help me?

sysuzgg avatar Oct 22 '22 01:10 sysuzgg