Skip to main content

Quality estimation

quality
Model description:

Quality estimation model ensemble (5 models) trained on the publicly available EyePACS EyeQ dataset.

Intended uses:

CFI quality control and quality estimation for AI and other automated analyses.

Training data:

We trained the model on the EyePACS EyeQ dataset.

Training procedure:

See VascX Models: Deep Ensembles for Retinal Vascular Analysis From Color Fundus Images

  • Architecture: resnet50
  • Weight initialisation: Imagenet
  • Input resolution: 224px
Evaluation:

See VascX Models: Deep Ensembles for Retinal Vascular Analysis From Color Fundus Images

Limitations:
  • Trained on a single dataset - EyePACS.
Inference:
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:

  1. Install retinalysis-inference:

    pip install retinalysis-inference
  2. Load the ensemble:

    from rtnls_inference import (
    ClassificationEnsemble,
    )
    ensemble = ClassificationEnsemble.from_huggingface("Eyened/vascx:quality/quality.pt").to(device)
  3. 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.

License & citation:
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:

The original EyePACS datasets and EyeQ labels:

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.