Download or clone the full repository.
pip install -r requirements.txt
You can train models or run evaluations on the following vessel segmenation datasets:
Download the original datasets and place them in ./data. Alternatively, you can also update the paths in local_config.ini.
To evaluate the pre-trained models:
python eval_vessels.py --model vlight --modelname models/pretrained/{drive,chase,hrf}_vlight --dataset {drive,chase,hrf}
To train VLight on DRIVE for 40 epochs (80k samples) with a learning rate of 0.001, for example, run:
python train_vessels.py --sessionname drive_vlight --lr 0.001 -e 40 --dataset-train drive --dataset-val drive