Add config.json and model card to enable Inference API
Browse files- README.md +11 -0
- config.json +9 -0
- model.py +1 -0
README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
license: mit
|
| 4 |
+
pipeline_tag: image-segmentation
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
# DANet for Fracture Segmentation
|
| 8 |
+
|
| 9 |
+
This is a DANet model with a ResNet-50 backbone, fine-tuned for segmenting bone fractures in X-ray images.
|
| 10 |
+
|
| 11 |
+
This model was trained in a Kaggle notebook as part of a hackathon project.
|
config.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"DANet"
|
| 4 |
+
],
|
| 5 |
+
"auto_map": {
|
| 6 |
+
"AutoModel": "model.DANet"
|
| 7 |
+
},
|
| 8 |
+
"model_type": "danet"
|
| 9 |
+
}
|
model.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
|
|
|
|
| 2 |
import torch
|
| 3 |
import torch.nn as nn
|
| 4 |
from torch.nn import functional as F
|
|
|
|
| 1 |
|
| 2 |
+
# Paste the full DANet architecture code here... (same as before)
|
| 3 |
import torch
|
| 4 |
import torch.nn as nn
|
| 5 |
from torch.nn import functional as F
|