AssertionError after UserWarning
/scratch/ncomte/softwares/vertebrae_segmentation/consistency_loop.py:369: UserWarning: Narrow disc detected.
warnings.warn('Narrow disc detected. ')
Traceback (most recent call last):
File "/scratch/ncomte/softwares/vertebrae_segmentation/test.py", line 129, in <module>
multi_label_mask, locations, labels, loc_has_converged = consistency_refinement_close_loop(locations, pir_img, binary_mask,
File "/scratch/ncomte/softwares/vertebrae_segmentation/consistency_loop.py", line 1170, in consistency_refinement_close_loop
extra_locations_from_gap, extra_labels_from_gap = get_extra_locations_from_intervals(locations, labels)
File "/scratch/ncomte/softwares/vertebrae_segmentation/consistency_loop.py", line 846, in get_extra_locations_from_intervals
assert len(locations) >= 3
AssertionError
For case-143868/STANDARD_HEAD-NECK-U-EXT/THIN_ST_TORSO