-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
作者,你好,选用ALCNet进行test出现如下报错
File "LESPS/model/ACM/model_ALCNet.py", line 182, in forward
[transforms.Resize([hei//16, wid//16])(out),
File "/opt/conda/lib/python3.7/site-packages/torchvision/transforms/transforms.py", line 244, in call
return F.resize(img, self.size, self.interpolation)
File "/opt/conda/lib/python3.7/site-packages/torchvision/transforms/functional.py", line 319, in resize
raise TypeError('img should be PIL Image. Got {}'.format(type(img)))
TypeError: img should be PIL Image. Got <class 'torch.Tensor'>
请问怎么解决?谢谢
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels