chengchunhsu / EveryPixelMatters

Implementation of ECCV 2020 paper "Every Pixel Matters: Center-aware Feature Alignment for Domain Adaptive Object Detector"
Other
165 stars 21 forks source link

AttributeError: 'Image' object has no attribute 'shape' #22

Closed martellolee closed 1 month ago

martellolee commented 1 month ago

您好! 我运行代码遇到下列错误,请问如何解决? 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'

谢谢!