---
title: GlauClsDRGrading
canonical_url: "https://www.modelscope.cn/models/flyer123/GlauClsDRGrading"
md_url: "https://www.modelscope.cn/models/flyer123/GlauClsDRGrading.md"
repository: flyer123/GlauClsDRGrading
chinese_name: "青光眼分类和DR分级模型"
last_updated: 2024-03-14
license: "Apache License 2.0"
pipeline_tag: image-classification
tasks:
  - image-classification
library_name:
  - onnx
  - pytorch
frameworks:
  - Pytorch
downloads: 175
stars: 0
---

# GlauClsDRGrading

> GlauClsDRGrading - flyer123 在 ModelScope 开源的模型。这是一个使用Refuge和Aptos训练的青光眼分类和DR分级模型

flyer123/GlauClsDRGrading 是 ModelScope 魔搭社区上的image-classification模型，采用 Apache License 2.0 许可。

- **Repository**: flyer123/GlauClsDRGrading
- **License**: Apache License 2.0
- **Tasks**: image-classification
- **Downloads**: 175
- **Stars**: 0
- **Last updated**: 2024-03-14

Source: https://www.modelscope.cn/models/flyer123/GlauClsDRGrading

---

## 模型介绍
该模型使用ConvNeXt-tiny训练，使用的训练集为Refuge训练集和Aptos训练集

## 如何使用：
```bash
pip install onnxruntime-gpu
```

```bash
import onnxruntime as ort
img = cv2.imread("img_path")
img = cv2.resize(img, (448,448))
img = img[...,::-1] # bgr to rgb
img = img.transpose(2,0,1)[np.newaxis]

providers = ['CUDAExecutionProvider']
ort_sess = ort.InferenceSession('model.onnx', providers=providers, )
outputs = ort_sess.run(None, {'input': x.numpy()}, )
print(outputs)

```

## 输入说明
输入为 448 * 448的三通道图像
## 输出说明:
输出为dict， 格式如下:
{
    "Glau": [0.05, 0.56],
    "DR": [-0.01, 0.01, 0.01, 0.01, 0.01]
}
Glau代表青光眼二分类的logits
DR代表DR五分级的结果

## 数据评估及结果:
在Refuge验证集上的混淆矩阵如下：
```
[[349,  11],
[  8,  32]]]
```

在Aptos验证集山的混淆矩阵如下:
```
[[140,   1,   0,   0,   0],
[  1,  27,   3,   0,   2],
[  2,  31,  51,   1,   1],
[  0,   1,  14,   0,   3],
[  0,   3,   6,   1,  11]]
```



#### Clone with HTTP
```bash
 git clone https://www.modelscope.cn/flyer123/GlauClsDRGrading.git
```
