Quality estimation
Quality estimation model ensemble (5 models) trained on the publicly available EyePACS EyeQ dataset.
CFI quality control and quality estimation for AI and other automated analyses.
We trained the model on the EyePACS EyeQ dataset.
See VascX Models: Deep Ensembles for Retinal Vascular Analysis From Color Fundus Images
- Architecture: resnet50
- Weight initialisation: Imagenet
- Input resolution: 224px
See VascX Models: Deep Ensembles for Retinal Vascular Analysis From Color Fundus Images
- Trained on a single dataset - EyePACS.
We recommend to run inference using retinalysis-inference, which can auto-download the model weights and execute CFI pre-processing (crop to square) if necessary. For running… Show moreShow less
We recommend to run inference using retinalysis-inference, which can auto-download the model weights and execute CFI pre-processing (crop to square) if necessary. For running inference on a CFI:
-
Install
retinalysis-inference:pip install retinalysis-inference -
Load the ensemble:
from rtnls_inference import (ClassificationEnsemble,)ensemble = ClassificationEnsemble.from_huggingface("Eyened/vascx:quality/quality.pt").to(device) -
Run inference:
# 1. Preprocess one input record.image = np.array(Image.open("/PATH/TO/RGB/FUNDUS/IMAGE.PNG"))item = ensemble.preprocess_item({"image": image})# 2. Make a batch of size 1.batch = ensemble.make_batch([item])# 3. Run the ensemble.predictions = ensemble.predict_batch(batch)# 4. Postprocess the prediction into the final quality prediction.result = ensemble.postprocess_batch(predictions, batch)[0]
For more information see retinalysis-inference.
If you use this model, please consider citing: VascX Models: Deep Ensembles for Retinal Vascular Analysis From Color Fundus Images Vargas Quiros, J. D., Liefers, B., van Garderen,… Show moreShow less
If you use this model, please consider citing:
- VascX Models: Deep Ensembles for Retinal Vascular Analysis From Color Fundus Images Vargas Quiros, J. D., Liefers, B., van Garderen, K. A., Vermeulen, J. P., & Klaver, C. C. W. (2025). VascX Models: Deep Ensembles for Retinal Vascular Analysis From Color Fundus Images. Translational Vision Science & Technology, 14(7), 19-19.
The original EyePACS datasets and EyeQ labels:
- Diabetic Retinopathy Detection Emma Dugas, Jared, Jorge, and Will Cukierski. Diabetic Retinopathy Detection. 2015. Kaggle.
- Evaluation of Retinal Image Quality Assessment Networks in Different Color-spaces Huazhu Fu, Boyang Wang, Jianbing Shen, Shanshan Cui, Yanwu Xu, Jiang Liu, Ling Shao. MICCAI, 2019
We share the model under a Creative Commons Attribution–NonCommercial 4.0 license. We note that some of the datasets used for training and evaluating the model ensemble were made publicly available for research purposes, but do not include a license. Other such as Leuven-Haifa explicitly use custom terms with non-commercial clauses.