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
Hello, I find ImageGradientLoss in loss/loss.py may not be able to perform backward since pred = pred.argmax(1).view(size[0], 1, size[2], size[3]).float()
is not differentiable.
I checked it in some toy experiment and maybe we can use pred = pred [:, 1, :, :]
instead.
The text was updated successfully, but these errors were encountered:
Hello, I find ImageGradientLoss in loss/loss.py may not be able to perform backward since
pred = pred.argmax(1).view(size[0], 1, size[2], size[3]).float()
is not differentiable.
I checked it in some toy experiment and maybe we can use
pred = pred [:, 1, :, :]
instead.
The text was updated successfully, but these errors were encountered: