TotalSegmentator
TotalSegmentator copied to clipboard
Readme example results in `TypeError`
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'
This should be fixed in the latest master branch:
pip install git+https://github.com/wasserth/TotalSegmentator.git