Skipping steps during re-execution
The run-models command has several --no-* flags that are intended for re-executing part of a pipeline after some outputs already exist. These flags skip work; they do not change where downstream steps look for inputs. If a later step needs an output from a skipped step, that output must already be present in the same OUTPUT_PATH layout.
For example, to reuse images that were already preprocessed, place them in the output folder before running run-models and pass --no-preprocess:
/path/to/segmentations
- preprocessed_rgb/
- image_001.png
- image_002.png
vascx run-models ./samples/fundus/original/ /path/to/segmentations --no-preprocess
In --no-preprocess mode, model inputs are read from /path/to/segmentations/preprocessed_rgb/*.png. Files must be RGB PNG images named <id>.png; the <id> filename stem is used for all downstream outputs, such as artery_vein/<id>.png, vessels/<id>.png, disc/<id>.png, and rows in fovea.csv and quality.csv. These images should have the same preprocessed format produced by VascX/fundusprep, namely a square, model-ready fundus crop, normally 1024x1024 pixels.
DATA_PATH is still required to be an existing path for CLI compatibility, but when --no-preprocess is used its contents are not used as model inputs. If you plan to run calc-biomarkers on the output folder, keep or provide the matching bounds.csv from preprocessing as well.
The other skip flags follow the same idea:
--no-vesselsskips vessel and artery-vein segmentation. Reuse this only whenvessels/<id>.pngandartery_vein/<id>.pngalready exist for the IDs you need downstream.--no-discskips optic disc segmentation. Reuse this only whendisc/<id>.pngalready exists for the IDs you need downstream.--no-foveaskips fovea detection. Reuse this only whenfovea.csvalready exists if you will create overlays or run biomarker extraction.--no-qualityskips image quality estimation. Reuse this whenquality.csvalready exists or when you do not need quality predictions.--no-overlayskips overlay creation. Reuse this when overlays already exist or when visualization overlays are not needed.
Only models for enabled steps are required. For example, a run with --no-quality --no-fovea does not need quality/quality.pt or fovea/fovea_may26.pt. If no local model options are provided, VascX keeps using the default Hugging Face model locations.