health. The README states this is not a medical device and is not intended for clinical usage.
Who it is forA researcher starting an imaging study who needs structures labeled.
The problemManual contouring of organs takes hours per scan.
The outcomeA folder of segmentation files, one per class, for your scan.
What you need first
- Python 3.10 or newer and PyTorch 2.0.0 or newer
- A Nifti file, or a folder or zip of all DICOM slices of one patient, as input
- A GPU for reasonable runtime; CPU works with the --fast or --roi_subset options
- A free non-commercial license number for the non-open tasks and for totalseg_get_body_stats
Steps
- Install it with
pip install TotalSegmentator - For CT run
TotalSegmentator -i ct.nii.gz -o segmentations - For MR run
TotalSegmentator -i mri.nii.gz -o segmentations --task total_mr - On CPU add
--fastor--roi_subset, and on an M series Mac use--device mps
Prompt for your agent
Using wasserth/TotalSegmentator, install it with `pip install TotalSegmentator`, run `TotalSegmentator -i ct.nii.gz -o segmentations` on <my scan>, and summarize which classes came out nonempty.
Caveat. Weights download automatically on the first run, so the first scan is slower.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for wasserth/TotalSegmentator and "Get organ masks from a CT or MR scan in one command"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer