Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,36 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Histopathologic Cancer Detection - EfficientNetV2S & ViT-Hybrid
|
| 2 |
+
This repository contains models for detecting metastatic cancer in histopathologic images.
|
| 3 |
+
- **EfficientNetV2S**: A Baseline CNN-based model for local feature extraction.
|
| 4 |
+
- **ViT-Hybrid**: A Transformer-based model that learns global dependencies.
|
| 5 |
+
Both models were trained on the [Histopathologic Cancer Detection Kaggle dataset](https://www.kaggle.com/competitions/histopathologic-cancer-detection/data)
|
| 6 |
+
|
| 7 |
+
## Model Performance
|
| 8 |
+
- **EfficientNetV2S**
|
| 9 |
+
- Accuracy: 93.59% (Private), 93.74% (Public)
|
| 10 |
+
- AUC: 0.9774
|
| 11 |
+
- **ViT-Hybrid**
|
| 12 |
+
- Accuracy: 95.07% (Private), 94.87% (Public)
|
| 13 |
+
- AUC: 0.9791
|
| 14 |
+
- **ViT-Hybrid + TTA (Test-Time Augmentation)**
|
| 15 |
+
- Accuracy: 96.50% (Private), 96.75% (Public)
|
| 16 |
+
|
| 17 |
+
## Model Use
|
| 18 |
+
from huggingface_hub import hf_hub_download
|
| 19 |
+
from tensorflow.keras.models import load_model
|
| 20 |
+
|
| 21 |
+
# Download EfficientNetV2S model
|
| 22 |
+
model_path = hf_hub_download(repo_id="MooseML/EfficientNet-Cancer-Detection", filename="efficientnet_cancer_model.h5")
|
| 23 |
+
model = load_model(model_path)
|
| 24 |
+
|
| 25 |
+
# Download ViT-Hybrid model
|
| 26 |
+
model_path_vit = hf_hub_download(repo_id="MooseML/EfficientNet-Cancer-Detection", filename="ViT_hybrid_cancer_model.h5")
|
| 27 |
+
model_vit = load_model(model_path_vit)
|
| 28 |
+
|
| 29 |
+
## Github and Kaggle Links for Full Training Pipeline
|
| 30 |
+
- Full Training Code: [GitHub Repository](https://github.com/MooseML/Histopathologic-Cancer-Detection)
|
| 31 |
+
- Kaggle Competition: [Histopathologic Cancer Detection](https://www.kaggle.com/competitions/histopathologic-cancer-detection)
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
---
|
| 35 |
+
license: mit
|
| 36 |
+
---
|