Fix image resolution bug to 512 to preserve fine retinal details
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ from fastapi.responses import JSONResponse
|
|
| 11 |
|
| 12 |
# Model configuration
|
| 13 |
CLASS_NAMES = ['No_DR', 'Mild', 'Moderate', 'Severe', 'Proliferative_DR']
|
| 14 |
-
IMAGE_SIZE =
|
| 15 |
DEVICE = 'cpu' # Hugging Face Spaces use CPU
|
| 16 |
|
| 17 |
# Model architecture (must match training)
|
|
|
|
| 11 |
|
| 12 |
# Model configuration
|
| 13 |
CLASS_NAMES = ['No_DR', 'Mild', 'Moderate', 'Severe', 'Proliferative_DR']
|
| 14 |
+
IMAGE_SIZE = 512
|
| 15 |
DEVICE = 'cpu' # Hugging Face Spaces use CPU
|
| 16 |
|
| 17 |
# Model architecture (must match training)
|