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
Run Prediction speed Batched prediction, TTA and tile options, timing log
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.2.5

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.2.5
File Size Uploaded Provenance Actions
seqseg-2.2.5.tar.gz 286.7 kB Without provenance Details for seqseg-2.2.5.tar.gz

Built distribution (wheel)

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

Total release size: 633.7 kB

Release files / seqseg-2.2.5.tar.gz

Download URL seqseg-2.2.5.tar.gz
Size 286.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b2c0a960cc1157d2015f88b908d5a8bb0f45eaa6144a4605bf25e960c3e42c41
BLAKE2b-256 checksum
How to use checksums
15e33a3a5debb48177da46e283eab564e4d42951b63d9c2eb6fd9f18a9f158ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

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

Download URL seqseg-2.2.5-py3-none-any.whl
Size 346.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91a6a5f1fbb9aad6e285987428f0f10bf7cbe1cd9f78953c5a0a6d41c7681fe3
BLAKE2b-256 checksum
How to use checksums
5009984d32416781dafb08f14cd4973c35b7d5e99048f050bec5e285020eb6ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for seqseg 2.2.5

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.2.5 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