You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code work in python2, python3 do not has long type. You can delete all code lines include "alpha". I will rewrite code include "alpha" these days. It is not as same as the paper.
Thanks.
When I run this program , an error occurs:
"NameError: name 'long' is not defined"
it points to line 11 of file focalloss.py:
if isinstance(alpha,(float,int,long)): self.alpha = torch.Tensor([alpha,1-alpha])
The text was updated successfully, but these errors were encountered: