Update README.md
Browse files
README.md
CHANGED
|
@@ -6,4 +6,28 @@ tags:
|
|
| 6 |
- CXR
|
| 7 |
- CTPA
|
| 8 |
- pulmonary-embolism
|
| 9 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
- CXR
|
| 7 |
- CTPA
|
| 8 |
- pulmonary-embolism
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Pulmonary Embolism Classifier 🧠
|
| 12 |
+
|
| 13 |
+
This is a classification model for pulmonary embolism classification from CTPA scans.
|
| 14 |
+
This classification model is used to aid a classification task to a diffusion model that generated 3D CTPA scans from a single 2D chest X-ray.
|
| 15 |
+
|
| 16 |
+
The input to the classification model are CTPA scan latents of size 32 x 32 x 64.
|
| 17 |
+
This model was trained on CTPAs that were downscaled from size 256 x 256 x 64 in a 2D slice-by-slice manner using a VAE.
|
| 18 |
+
|
| 19 |
+
This model is used in this git repository: https://github.com/NoaCahan/X-ray2CTPA
|
| 20 |
+
|
| 21 |
+
## 🧩 Model Details
|
| 22 |
+
- **Architecture:** 3D 121-DenseNet
|
| 23 |
+
- **Framework:** PyTorch
|
| 24 |
+
- **Input:** 3D volumes (64×32×32)
|
| 25 |
+
- **Output:** PE Binary Classification probability
|
| 26 |
+
|
| 27 |
+
## 🧠 How to Use
|
| 28 |
+
```python
|
| 29 |
+
from huggingface_hub import hf_hub_download
|
| 30 |
+
import torch
|
| 31 |
+
|
| 32 |
+
model_path = hf_hub_download("username/medical-diffusion-classifier", "classification_model_256.pth.tar")
|
| 33 |
+
model = torch.load(model_path, weights_only=False)
|