Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chenneng opened this issue Sep 20, 2021 · 1 comment
Open

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

chenneng opened this issue Sep 20, 2021 · 1 comment

Comments

@chenneng
Copy link

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
Copy link
Owner

You can remove detach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants