wasserth / TotalSegmentator

Tool for robust segmentation of >100 important anatomical structures in CT and MR images
Apache License 2.0
1.39k stars 229 forks source link

Readme example results in `TypeError` #295

Closed ancestor-mithril closed 2 weeks ago

ancestor-mithril commented 4 months ago

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)
TypeError: totalsegmentator() missing 1 required positional argument: 'output'
wasserth commented 4 months ago

This should be fixed in the latest master branch:

pip install git+https://github.com/wasserth/TotalSegmentator.git