Skip to main content

test seqseg without torch build test seqseg build

SeqSeg — Sequential Vessel Segmentation
Example coronary segmentation (SeqSeg)

SeqSeg: Sequential Vessel Segmentation and Tracking

Automatic tracking and segmentation of blood vessels in CT and MR images using deep learning and geometric tracking.

Paper License Python 3.9+

Why SeqSeg?

SeqSeg segments vessels sequentially, taking steps along vessel centerlines and detecting bifurcations to grow complete vascular trees from just 1–2 seed points. By combining local deep-learning predictions (nnU-Net) with geometric tracking, it stays robust across vessel scales — from small coronaries to large aortas.

  • 🌱 Minimal supervision — only 1–2 seed points to initialize
  • 🌿 Robust bifurcation detection — automatically follows every branch
  • 🩻 Multi-modal — works with CT and MR 3D medical images
  • 📏 Scalable — vessels from ~1mm coronaries to ~30mm aortas
  • ✅ Clinically validated — coronary, aortic, cerebral, and pulmonary anatomies (pre-trained weights for aorta CT/MR and coronary CT)
  • ⚡ Fast — on CPU, about 2–5 minutes for an aorta, 5–15 for a coronary tree, and 10–30 for a cerebral tree. GPU is faster. Details in Benchmarks.

A finished case includes a simvascular/ project you can open directly in SimVascular, with pathlines and contours for every segmented branch.

SeqSeg Demo
Real-time demonstration: automatic segmentation of an abdominal aorta in a 3D MR scan.

Start here

  • First segmentation — the tutorial runs a sample abdominal-aorta MR scan.
  • Your own images — Usage describes images/ and seeds.json. The command is in Quick Start.
  • Train a model — Training.

Quick Start

Python 3.9 or newer. 3.11 is the version used in the tutorial and conda example.

The tutorial is the sample run (abdominal-aorta MR, seed points, and Windows notes). Plan on 15–20 minutes including setup. Tracing is capped, so that part finishes in a few minutes; a real case should use the defaults.

Install SeqSeg and the aorta weights below, then run seqseg run batch on your own data. The folder needs images/ and seeds.json (Usage). This example is an aorta MR case. Change -train_dataset, -config_name, and -img_ext to match your images and weights.

pip install seqseg

# Aorta and femoral weights (MR and CT)
curl -L -o nnUNet_results.zip https://zenodo.org/records/15020477/files/nnUNet_results.zip
unzip nnUNet_results.zip

Aorta and femoral weights (nnUNet_results.zip). Coronary CT weights are a separate archive, nnUNet_results_coronary.zip.

-nnunet_results_path is the folder that contains Dataset005_SEQAORTANDFEMOMR (and the other dataset folders in that zip).

seqseg run batch \
    -data_dir your_data/ \
    -nnunet_results_path nnUNet_results/ \
    -train_dataset Dataset005_SEQAORTANDFEMOMR \
    -config_name global_aorta \
    -img_ext .mha \
    -outdir results/
Anatomy -train_dataset -config_name
Aorta / femoral MR Dataset005_SEQAORTANDFEMOMR global_aorta
Aorta / femoral CT Dataset006_SEQAORTANDFEMOCT global_aorta
Coronary CT Dataset010_SEQCOROASOCACT global_coro

The tutorial uses -config_name aorta_tutorial for its sample scan. The trainer-folder layout is in Installation. The full command list and flag spelling are in Usage.

Documentation

Job Guide Description
Run Installation Setup, dependencies, and pre-trained model weights
Run Tutorial End-to-end aorta example with sample data
Run Usage Data layout, seeds, CLI arguments, and output files
Run Configuration YAML configs and tracking parameters
Train Training Train nnU-Net models on a new dataset
Understand Algorithm Overview Methodology, workflow, and training strategy
Understand Performance & Benchmarks Accuracy, timing, and qualitative comparisons
Integrate API Call tracing from Python
Integrate Research & Development SimVascular, 3D Slicer, and repository layout

Citation

When using SeqSeg, please cite the following paper:

@Article{SveinssonCepero2024,
author={Sveinsson Cepero, Numi
and Shadden, Shawn C.},
title={SeqSeg: Learning Local Segments for Automatic Vascular Model Construction},
journal={Annals of Biomedical Engineering},
year={2024},
month={Sep},
day={18},
issn={1573-9686},
doi={10.1007/s10439-024-03611-z},
url={https://doi.org/10.1007/s10439-024-03611-z},
}

Metadata

Release files for seqseg 2.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for seqseg 2.1.9
File Size Uploaded Provenance Actions
seqseg-2.1.9.tar.gz 200.2 kB Without provenance Details for seqseg-2.1.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for seqseg 2.1.9
File Interpreter ABI Platform Actions
seqseg-2.1.9-py3-none-any.whl Python 3 none any Details for seqseg-2.1.9-py3-none-any.whl

Total release size: 448.8 kB

Release files / seqseg-2.1.9.tar.gz

Download URL seqseg-2.1.9.tar.gz
Size 200.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bf902a9cc0db948194cac5bde92a406c36c0af2cdad8908b9e56e9f6a889320f
BLAKE2b-256 checksum
How to use checksums
f324df0f16ab174a8b66cc7f7f187b63999fb80a27a883360645610f018bea20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / seqseg-2.1.9-py3-none-any.whl

Download URL seqseg-2.1.9-py3-none-any.whl
Size 248.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
646265a7496b38d9833a678a88c2b5b66a796c81c1b556478ea0d3778715b398
BLAKE2b-256 checksum
How to use checksums
d196232ccdccc59d531716dfd64b50be686a334adb0a0e73b1b990084a9c3c67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for seqseg 2.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.1.9 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page