assert start_index is not None and stop_index is not None and stop_index > start_index
von216 opened this issue · 2 comments
von216 commented
VNet_PyTorch-Atriaseg2018/LASC18/utils.py
Line 127 in 0bc00b2
von216 commented
Hi, could you help me this this error. there is none because of start_index = None, stop_index = None
bragancas commented
Hi, start_index
and stop_index
is defined as None
(in Lines 122,123) and would remain as None
in the case when if
statement (Lines 125 & 127) does not evaluate to True
. This might be because output[index,:,:].sum() >= 10
(Line 125) and output[(dim_range - 1) - index,:,:].sum() >= 10
(Line 127) in the if-statement does not evaluate to True
.
I would presume that the Image being supplied to the patch_builder
function is empty and hence you receive the above error..