JialeCao001 / SipMask

SipMask: Spatial Information Preservation for Fast Image and Video Instance Segmentation (ECCV2020)
https://arxiv.org/pdf/2007.14772.pdf
MIT License
334 stars 54 forks source link

AttributeError: 'float' object has no attribute 'detach' #59

Open chenneng opened 3 years ago

chenneng commented 3 years ago

File "/home//SipMask/SipMask-mmdetection/tools/../mmdet/models/anchor_heads/sipmask_head.py", line 486, in loss loss_iou = loss_iou * 10 / num_iou.detach() AttributeError: 'float' object has no attribute 'detach'

JialeCao001 commented 3 years ago

You can remove detach.