salmakamila126/diabetic-retinopathy-convnext-research
ConvNeXt weights for diabetic retinopathy assessment
2 min read
The model is designed for the automated classification of color fundus photographs across five severity grades of diabetic retinopathy (ranging from no disease to the proliferative stage). The project is built on the facebook/convnext-tiny-224 architecture and incorporates the results of experiments E5, E6, and E7, trained on the APTOS 2019 and DDR datasets. The solution is tailored for medical research and the reproduction of scientific experiments in medical image analysis. The weights stem from research work and are provided as ready-to-use checkpoints for PyTorch.
Key features
- Classification of fundus images into 5 ordered retinopathy severity categories.
- Utilization of the ConvNeXt V1 Tiny architecture as the base backbone (backbone — base neural network structure for feature extraction).
- Experimental configurations E5, E6, and E7 featuring distinct head layer structures and combined loss functions (loss).
- Support for multi-view analysis for the E7 model incorporating global and local views.
What you can do
- Run diabetic retinopathy severity classification on your own research datasets of fundus images.
- Examine the implementation of custom head layers and loss functions (LDAM, ordinal cross-entropy) within the repository code.
- Test weight loading via a manifest and inference using the provided PyTorch script.
Example
import json
from pathlib import Path
import torch
from huggingface_hub import hf_hub_download
from PIL import Image, ImageOps
from transformers import ConvNextConfig, ConvNextImageProcessor, ConvNextModel
repo = "salmakamila126/diabetic-retinopathy-convnext-research"
experiment, dataset = "E5", "APTOS2019"
path = hf_hub_download(repo, "metadata/weights_manifest.json")
print("Manifest loaded successfully")Read more
DetailsBenchmarks: peak accuracy (Accuracy) reaches 0.836 for the E7 model on APTOS2019 with a QWK of 0.912.
Limitations: the model is intended strictly for research and reproducibility purposes and has not undergone clinical validation for actual diagnostics.
Details: training was conducted using the AdamW optimizer, BF16 mixed-precision format, and a seed of 42.










Comments