andres.salguero
commited on
Commit
·
f9f55c0
1
Parent(s):
78440cf
update readme
Browse files
README.md
CHANGED
|
@@ -21,8 +21,20 @@ widget:
|
|
| 21 |
|
| 22 |
This is a fine-tuned ResNet-50 model designed to classify the severity of acne from medical images into five categories (Severity 1 to Severity 5). The model leverages transfer learning on ResNet-50 pre-trained on ImageNet and adapts it for acne severity classification tasks.
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
## Model Details
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
### Training Details
|
| 27 |
- **Framework:** PyTorch
|
| 28 |
- **Base Model:** ResNet-50 (pretrained on ImageNet)
|
|
@@ -33,6 +45,10 @@ This is a fine-tuned ResNet-50 model designed to classify the severity of acne f
|
|
| 33 |
- **Epochs:** 10.
|
| 34 |
- **Validation Accuracy:** 0.85 (on a held-out validation set).
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
## Intended Use
|
| 37 |
|
| 38 |
This model is intended for educational purposes and demonstrates image classification for medical images. It should not be used for clinical decision-making without further validation.
|
|
@@ -42,4 +58,15 @@ This model is intended for educational purposes and demonstrates image classific
|
|
| 42 |
You can use this model via the Hugging Face Transformers pipeline for inference. Ensure you have the `transformers` library installed:
|
| 43 |
|
| 44 |
```bash
|
| 45 |
-
pip install transformers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
This is a fine-tuned ResNet-50 model designed to classify the severity of acne from medical images into five categories (Severity 1 to Severity 5). The model leverages transfer learning on ResNet-50 pre-trained on ImageNet and adapts it for acne severity classification tasks.
|
| 23 |
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
## Model Overview
|
| 27 |
+
|
| 28 |
## Model Details
|
| 29 |
|
| 30 |
+
### Key Features
|
| 31 |
+
- **Input:** Medical images of acne-affected skin.
|
| 32 |
+
- **Output:** Severity classification with one of the following labels:
|
| 33 |
+
- `level0` (No acne or minimal severity)
|
| 34 |
+
- `level1` (Mild severity)
|
| 35 |
+
- `level2` (Moderate severity)
|
| 36 |
+
- `level3` (Severe or advanced acne)
|
| 37 |
+
|
| 38 |
### Training Details
|
| 39 |
- **Framework:** PyTorch
|
| 40 |
- **Base Model:** ResNet-50 (pretrained on ImageNet)
|
|
|
|
| 45 |
- **Epochs:** 10.
|
| 46 |
- **Validation Accuracy:** 0.85 (on a held-out validation set).
|
| 47 |
|
| 48 |
+
---
|
| 49 |
+
|
| 50 |
+
## How to Use the Model
|
| 51 |
+
|
| 52 |
## Intended Use
|
| 53 |
|
| 54 |
This model is intended for educational purposes and demonstrates image classification for medical images. It should not be used for clinical decision-making without further validation.
|
|
|
|
| 58 |
You can use this model via the Hugging Face Transformers pipeline for inference. Ensure you have the `transformers` library installed:
|
| 59 |
|
| 60 |
```bash
|
| 61 |
+
pip install transformers
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
### Hugging Face Inference API
|
| 65 |
+
|
| 66 |
+
You can use the model via the Hugging Face Inference API by sending an image encoded in base64. Here’s an example:
|
| 67 |
+
|
| 68 |
+
```bash
|
| 69 |
+
curl -X POST https://api-inference.huggingface.co/models/YOUR_MODEL_NAME \
|
| 70 |
+
-H "Authorization: Bearer YOUR_API_KEY" \
|
| 71 |
+
-H "Content-Type: application/json" \
|
| 72 |
+
-d '{"inputs": "BASE64_ENCODED_IMAGE"}'
|