您好!
我运行代码遇到下列错误,请问如何解决?
File "/home/EveryPixelMatters/fcos_core/data/collate_batch.py", line 17, in call
images = to_image_list(transposed_batch[0], self.size_divisible)
File "/home/EveryPixelMatters/fcos_core/structures/image_list.py", line 50, in to_image_list
max_size = tuple(max(s) for s in zip([img.shape for img in tensors]))
File "/home/EveryPixelMatters/fcos_core/structures/image_list.py", line 50, in
max_size = tuple(max(s) for s in zip([img.shape for img in tensors]))
AttributeError: 'Image' object has no attribute 'shape'
您好! 我运行代码遇到下列错误,请问如何解决? File "/home/EveryPixelMatters/fcos_core/data/collate_batch.py", line 17, in call images = to_image_list(transposed_batch[0], self.size_divisible) File "/home/EveryPixelMatters/fcos_core/structures/image_list.py", line 50, in to_image_list max_size = tuple(max(s) for s in zip([img.shape for img in tensors])) File "/home/EveryPixelMatters/fcos_core/structures/image_list.py", line 50, in
max_size = tuple(max(s) for s in zip( [img.shape for img in tensors]))
AttributeError: 'Image' object has no attribute 'shape'
谢谢!