krumo / Domain-Adaptive-Faster-RCNN-PyTorch

Domain Adaptive Faster R-CNN in PyTorch
MIT License
305 stars 68 forks source link

how to solve the img's label when resize img? #35

Closed shishi-jie closed 2 months ago

shishi-jie commented 2 years ago

File "D:\000_zhuang\DA_F_RCNN_torch_c\maskrcnn_benchmark\data\transforms\transforms.py", line 60, in call target = target.resize(image.size) AttributeError: 'list' object has no attribute 'resize'

krumo commented 2 years ago

Hi, you could consider to follow https://github.com/facebookresearch/maskrcnn-benchmark/issues/876 to rename all self.transforms to self._transforms in coco.py.