Offline usage
By default, vascx run-models loads model weights from the Hugging Face model repository. This is convenient on connected workstations, but it will fail on offline clusters unless the model files are provided locally.
For offline use, download the VascX model files on a machine with internet access, copy them to the cluster, and arrange them in this directory layout:
/path/to/vascx-models/
- quality/
- quality.pt
- artery_vein/
- av_wsoft_patches_02_finetune.pt
- vessels/
- vessels_may26.pt
- disc/
- disc_may26.pt
- fovea/
- fovea_may26.pt
Then pass that directory to run-models:
vascx run-models /path/to/images /path/to/segmentations --model-dir /path/to/vascx-models
You can also set the model directory once in the environment:
export VASCX_MODEL_DIR=/path/to/vascx-models
vascx run-models /path/to/images /path/to/segmentations
For more control, provide individual model files directly with options --quality-model, --av-model, --vessels-model, --disc-model and --fovea-model. Per-model options take precedence over --model-dir and VASCX_MODEL_DIR.