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 gets stuck in the while loop in train.py. This happens when torch.sum(seg[i_bs,0,xstart:xend,ystart:yend]) is equal to zero at which case (k x patch_size x
patch_size) will never reach zero and hence there is no exit from the loop.
Can you please explain the function of this while loop?
The text was updated successfully, but these errors were encountered:
It works for me when i replaced the while loop condition with 'while torch.sum(seg[i_bs,0,xstart:xend,ystart:yend]) != 0 and torch.sum(seg[i_bs,0,xstart:xend,ystart:yend]) < kpatch_sizepatch_size :'. Since torch.sum might become zero after a few loops.
The code gets stuck in the while loop in train.py. This happens when torch.sum(seg[i_bs,0,xstart:xend,ystart:yend]) is equal to zero at which case (k x patch_size x
patch_size) will never reach zero and hence there is no exit from the loop.
Can you please explain the function of this while loop?
The text was updated successfully, but these errors were encountered: