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
loss = loss.sum([1,2,3,4])/masks.sum([1,2,3,4])
if masks.sum([1,2,3,4]) contains 0, then the loss will be NaN
so i simply change the upper code to loss = loss.sum([1,2,3,4])/(masks.sum([1,2,3,4])+1e-6), Is this appropriate?
The text was updated successfully, but these errors were encountered:
loss = loss.sum([1,2,3,4])/masks.sum([1,2,3,4])
if masks.sum([1,2,3,4]) contains 0, then the loss will be NaN
so i simply change the upper code to
loss = loss.sum([1,2,3,4])/(masks.sum([1,2,3,4])+1e-6)
, Is this appropriate?The text was updated successfully, but these errors were encountered: