File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -205,16 +205,16 @@ def input_to_segm(self, input):
205205 for predictions in input :
206206 for th in self .thresholds :
207207 # threshold probability maps
208- predictions = predictions > th
208+ predictions_th = predictions > th
209209
210210 if self .invert_pmaps :
211211 # for connected component analysis we need to treat boundary signal as background
212212 # assign 0-label to boundary mask
213- predictions = np .logical_not (predictions )
213+ predictions_th = np .logical_not (predictions_th )
214214
215- predictions = predictions .astype (np .uint8 )
215+ predictions_th = predictions_th .astype (np .uint8 )
216216 # run connected components on the predicted mask; consider only 1-connectivity
217- seg = measure .label (predictions , background = 0 , connectivity = 1 )
217+ seg = measure .label (predictions_th , background = 0 , connectivity = 1 )
218218 segs .append (seg )
219219
220220 return np .stack (segs )
You can’t perform that action at this time.
0 commit comments