The example in documentation results in an error with TotalSegmentator==2.1.0
import nibabel as nib
from totalsegmentator.python_api import totalsegmentator
if __name__ == "__main__":
# option 2: provide input and output as nifti image objects
input_img = nib.load(input_path)
output_img = totalsegmentator(input_img)
The example in documentation results in an error with
TotalSegmentator==2.1.0