EAGLE: chronic stroke lesion segmentation from T1 + FLAIR

Model weights for EAGLE (eagleseg), a tool that segments chronic stroke lesions on brain MRI from a T1-weighted and a FLAIR scan, with a built-in review viewer.

Use it (no account needed): install EAGLE (https://github.com/justalittlemore1/eagle), then

eagleseg segment --t1 T1.nii.gz --flair FLAIR.nii.gz --out results

The first run downloads this model automatically (about 6 GB, every file checked against BUNDLE.sha256). Offline: download this repository and run eagleseg model download --from-folder <folder>.

Intended use: research. Not a medical device; not for diagnosis or treatment decisions. Outputs should be reviewed by a trained reader (EAGLE flags components that need review).

Model: a two-chain cascade (two lesion-candidate detector chains with T1 confirmation classifiers; accepted candidates are combined), lesion outlines from four drawer networks and a four-network T1 base model, built on a modified nnU-Net. Labels follow the T1-defined (ATLAS) lesion convention.

Requirements: an NVIDIA GPU with 16 GB or more is recommended (about 10 s per scan warm on a cluster MIG slice, 8.7 s on 1 mm scans). 8-12 GB GPUs (e.g. RTX 3070) work in low-VRAM mode (--low-vram, automatic below 15 GB): lossless results, about 12 s per scan measured on a MIG slice under a 7 GB memory cap (10 s on 1 mm scans; estimated ~18-24 s on an RTX 3070 β€” run eagleseg benchmark to measure your card). CPU works but is slow.

Licence: CC BY-NC 4.0 for the weights; the EAGLE code is MIT. Third-party software included in runtime/ keeps its own licence (nnU-Net: Apache-2.0).

Citation: paper in preparation; until then please cite the EAGLE GitHub repository.


EAGLE model bundle u_pair_2c-v1.2

What this is. This folder is the complete stroke-lesion model that EAGLE (the eagleseg program) uses: the trained networks, the two candidate classifiers, the program that runs them ("runner") and a checksum list. It is the model chosen on 2026-11-25 ("U_PAIR_2c": two detector chains whose accepted candidates are combined, outlines from four drawer networks, plus a four-network T1 base model). Nothing else from the research computer is needed: with this folder, EAGLE and the Python packages listed in environment.yml, the model runs on any Linux computer with a suitable NVIDIA GPU.

Size: about 6.2 GB (632 files). The networks were saved without their training-only state (optimizer), which halves the size; the network weights themselves are bit-for-bit the trained ones.

Licence of the weights: CC BY-NC 4.0 (Creative Commons Attribution-NonCommercial 4.0). Research use; credit EAGLE when you use it. Not a medical device and not for clinical use.

What is inside

Item What it is
models/ the 15 networks (6 detector, 1 T1 feature network, 4 base, 4 drawer) and the classifier files
runtime/ the runner (eagle_runner.py) and the exact code it needs, including the modified nnU-Net
bundle.json version, list of components, decision thresholds, checksums of the original files
BUNDLE.sha256 checksum of every file in this folder
cascade.json ready-made EAGLE configuration for this folder
environment.yml the Python packages (and versions) the model was checked with

Decision thresholds: gate 1 (seed-1 detector, original classifier) accepts a candidate at score β‰₯ 0.802; gate 2 (seed-2 detector, refitted classifier) at score β‰₯ 0.82748; a candidate is kept if either gate accepts it.

1. Copy the folder off the cluster

Run this on your own computer (Linux or macOS terminal; on Windows use WSL). Replace <user>@<cluster> with the account and login host that hold the folder, and <folder> with the folder's full path there (the EAGLE team gives you both). It copies the whole folder into ~/eagle_models/:

mkdir -p ~/eagle_models
rsync -avP <user>@<cluster>:<folder>/u_pair_2c_v1 ~/eagle_models/

rsync can be restarted if the connection drops (it continues where it stopped). Without rsync, scp works too:

scp -r <user>@<cluster>:<folder>/u_pair_2c_v1 ~/eagle_models/

Always copy the whole folder; do not rename or move files inside it.

2. Check that nothing was damaged

In a terminal, inside the copied folder:

cd ~/eagle_models/u_pair_2c_v1
sha256sum -c BUNDLE.sha256          # macOS: shasum -a 256 -c BUNDLE.sha256

Every line must end in OK. (The first line printed on screen may take a minute: the networks are large.)

3. Install the model's software

With conda / Miniforge (https://conda-forge.org/download/):

conda env create -f ~/eagle_models/u_pair_2c_v1/environment.yml
conda activate eagle-upair2c

Install EAGLE into the same environment (see EAGLE's README), so that the python named in cascade.json is this environment's Python. If EAGLE lives in a different environment, open cascade.json in a text editor and replace both "python" entries with the full path printed by conda run -n eagle-upair2c which python.

4. Point EAGLE at the folder

  1. Copy cascade.json from this folder to ~/.config/eagleseg/cascade.json.
  2. Tell EAGLE where this folder is, one of:
    • set the environment variable: export EAGLESEG_MODEL_DIR=~/eagle_models/u_pair_2c_v1 (put it in ~/.bashrc to make it permanent), or
    • add the line "model_dir": "/home/you/eagle_models/u_pair_2c_v1", near the top of ~/.config/eagleseg/cascade.json, or
    • put the folder at EAGLE's default place, ~/.local/share/eagleseg/models/cascade.
  3. Check: eagleseg backends must list cascade as available.
  4. Run: eagleseg segment --t1 T1.nii.gz --flair FLAIR.nii.gz --out results/ (or eagleseg batch ..., or the viewer eagleseg serve --backend cascade --open).

EAGLE starts the runner as runtime/eagle_runner.py --bundle <this folder>; the runner then loads every network, classifier and code file from this folder only. On its first start it writes a working copy of the runner code (a few MB) to ~/.cache/eagleseg/bundles/ (change with the environment variable EAGLE_UPAIR_CACHE); the folder itself is never modified and may be read-only.

Hardware

An NVIDIA GPU with at least 16 GB of memory, 32 GB of RAM, Linux. The first case of a session loads the model (1–2 minutes); further cases take about 30–75 seconds. CPU-only (--device cpu) works but takes several minutes per case and is not validated.

How this folder was checked

On the research cluster (2026-11-26) EAGLE ran this folder on internal development cases (ATLAS, NORTH, LAB, CONTRA; stored orientations LAS, RAS and oblique) while a Python audit hook made every research file inaccessible to the runner. Gate decisions, accepted candidates and final masks were compared with the reference results of the shipped model; see bundle.json β†’ verification. The networks were not changed: each stripped checkpoint was reloaded and every weight tensor compared bit-for-bit with the original.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support