Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,63 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
+
pipeline_tag: image-segmentation
|
| 4 |
+
tags:
|
| 5 |
+
- wsss
|
| 6 |
+
- boundary-refinement
|
| 7 |
+
- pytorch
|
| 8 |
---
|
| 9 |
+
|
| 10 |
+
# HGA Pretrained Checkpoints (PASCAL VOC 2012 & MS COCO 2014)
|
| 11 |
+
|
| 12 |
+
This repository hosts the official best-performing model checkpoints for the **HGA (Hierarchical-Geometric Alignment)** weakly supervised semantic segmentation (WSSS) paradigm.
|
| 13 |
+
|
| 14 |
+
Both checkpoints leverage the high-performance **EfficientViT-SAM-XL0** backbone, but employ different decoder architectures optimized for their respective dataset scales.
|
| 15 |
+
|
| 16 |
+
## 📊 Benchmark Checklist
|
| 17 |
+
|
| 18 |
+
| Checkpoint Filename | Target Dataset | Backbone | Decoder Type | Reached mIoU |
|
| 19 |
+
|:---|:---:|:---:|:---:|:---:|
|
| 20 |
+
| **`best_model_voc.pth`** | PASCAL VOC 2012 Val | EfficientViT-SAM-XL0 | **RC (Resize-Conv) Decoder** | **84.91%** |
|
| 21 |
+
| **`best_model_coco.pth`** | MS COCO 2014 Val | EfficientViT-SAM-XL0 | **CT (Transpose-Conv) Decoder** | **59.31%** |
|
| 22 |
+
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
## ⚠️ Critical Setup Instructions (Decoder Mismatch Prevention)
|
| 26 |
+
|
| 27 |
+
To prevent PyTorch `state_dict` loading errors (such as `KeyError` or missing key warnings), you must configure the decoder type in your `config.py` to match the downloaded checkpoint exactly:
|
| 28 |
+
|
| 29 |
+
### 1. For PASCAL VOC 2012 (`best_model_voc.pth`):
|
| 30 |
+
Ensure your decoder configuration is set to use the patched **Resize-Convolution (RC) Decoder**:
|
| 31 |
+
```python
|
| 32 |
+
# Inside your config.py for VOC evaluation:
|
| 33 |
+
decoder_type = "RC" # Ensure this matches the RC-Decoder setup
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
### 2. For MS COCO 2014 (`best_model_coco.pth`):
|
| 37 |
+
Ensure your decoder configuration is set to use the standard **Transposed Convolution (CT) Decoder**:
|
| 38 |
+
```python
|
| 39 |
+
# Inside your config.py for COCO evaluation:
|
| 40 |
+
decoder_type = "CT" # Ensure this matches the CT-Decoder setup
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
---
|
| 44 |
+
|
| 45 |
+
## 🚀 Evaluation & Reproducibility Guide
|
| 46 |
+
|
| 47 |
+
The evaluation scripts are designed to automatically reconstruct the correct network architecture based on your configuration files.
|
| 48 |
+
|
| 49 |
+
1. Download the target checkpoint file (`.pth`) and place it under your local `checkpoints/` folder.
|
| 50 |
+
2. Clone our official codebase and configure your directory paths:
|
| 51 |
+
👉 **[Uncertainty-42/HGA GitHub Repository](https://github.com/Uncertainty-42/HGA)**
|
| 52 |
+
3. Run the evaluation shell scripts directly from the repository root:
|
| 53 |
+
|
| 54 |
+
```bash
|
| 55 |
+
# To evaluate PASCAL VOC:
|
| 56 |
+
bash val_voc.sh
|
| 57 |
+
|
| 58 |
+
# To evaluate MS COCO:
|
| 59 |
+
bash val_coco.sh
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
## 📝 Citation
|
| 63 |
+
Our paper is currently under review/pre-print preparation. The official BibTeX citation and arXiv link will be updated here as soon as the preprint is publicly released.
|