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 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?