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
when i was trying to recurrence the face-xray, I modified the HRNet-Image-Calssification, but I got a bug that loss is nan.
this is what i added after stage4 in the cls_hrnet.py:
# Upsamplingx0_h, x0_w=y_list[0].size(2), y_list[0].size(3)
x1=F.interpolate(y_list[1], size=(x0_h, x0_w), mode='bilinear',align_corners=True)
x2=F.interpolate(y_list[2], size=(x0_h, x0_w), mode='bilinear',align_corners=True)
x3=F.interpolate(y_list[3], size=(x0_h, x0_w), mode='bilinear',align_corners=True)
x=torch.cat([y_list[0], x1, x2, x3], 1)
x=self.one_conv2d(x) # one conv2d to make the channel to 1x=F.interpolate(x, size=(224,224),mode='bilinear',align_corners=True)
xray=torch.sigmoid(x)
then I found the xray is almost zero and the loss is nan, what's wrong?
when i was trying to recurrence the face-xray, I modified the HRNet-Image-Calssification, but I got a bug that loss is nan.
this is what i added after stage4 in the
cls_hrnet.py
:then I found the xray is almost zero and the loss is nan, what's wrong?
I write the loss function below:
The text was updated successfully, but these errors were encountered: