Add config.json and download snippet (enables download counting)
#1
by laurachrobak - opened
- README.md +20 -1
- config.json +33 -0
README.md
CHANGED
|
@@ -6,6 +6,14 @@ base_model:
|
|
| 6 |
- timm/tf_efficientnetv2_s.in21k
|
| 7 |
- timm/tf_efficientnetv2_m.in21k
|
| 8 |
pipeline_tag: image-classification
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
|
|
@@ -21,4 +29,15 @@ For more info and detailed explanation please check out my github repo: https://
|
|
| 21 |
|
| 22 |
For inference steps, you can download the model weights here from the kfold_checkpoints folder and use the inference_only.ipynb from my github repo to get the submission csv file.
|
| 23 |
|
| 24 |
-
If you have any questions, please contact me through long.vu2124@gmail.com, I will gladly answer them all.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
- timm/tf_efficientnetv2_s.in21k
|
| 7 |
- timm/tf_efficientnetv2_m.in21k
|
| 8 |
pipeline_tag: image-classification
|
| 9 |
+
tags:
|
| 10 |
+
- fathomnet
|
| 11 |
+
- marine-biology
|
| 12 |
+
- ocean
|
| 13 |
+
- underwater-imagery
|
| 14 |
+
- fathomnet-2025
|
| 15 |
+
- kaggle
|
| 16 |
+
- fgvc
|
| 17 |
---
|
| 18 |
|
| 19 |
|
|
|
|
| 29 |
|
| 30 |
For inference steps, you can download the model weights here from the kfold_checkpoints folder and use the inference_only.ipynb from my github repo to get the submission csv file.
|
| 31 |
|
| 32 |
+
If you have any questions, please contact me through long.vu2124@gmail.com, I will gladly answer them all.
|
| 33 |
+
|
| 34 |
+
## Download
|
| 35 |
+
|
| 36 |
+
```python
|
| 37 |
+
from huggingface_hub import hf_hub_download
|
| 38 |
+
import json
|
| 39 |
+
|
| 40 |
+
repo = "FathomNet/Fathomnet-2025-2ndplace-ensemble-EffNetv2"
|
| 41 |
+
cfg = json.load(open(hf_hub_download(repo, "config.json")))
|
| 42 |
+
ckpts = [hf_hub_download(repo, p) for p in cfg["checkpoints"]]
|
| 43 |
+
```
|
config.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"task": "image-classification",
|
| 3 |
+
"num_classes": 79,
|
| 4 |
+
"architecture": "two-stream hierarchical classifier (ROI + full-image context) with uncertainty-guided gating",
|
| 5 |
+
"base_models": [
|
| 6 |
+
"timm/tf_efficientnetv2_m.in21k",
|
| 7 |
+
"timm/tf_efficientnetv2_s.in21k"
|
| 8 |
+
],
|
| 9 |
+
"framework": "pytorch-lightning",
|
| 10 |
+
"checkpoint_format": "ckpt",
|
| 11 |
+
"ensemble": {
|
| 12 |
+
"type": "5-fold",
|
| 13 |
+
"combination": "weighted geometric mean",
|
| 14 |
+
"tta": "2-view rotation"
|
| 15 |
+
},
|
| 16 |
+
"checkpoints": [
|
| 17 |
+
"kfold_checkpoints/fold_0/best-model-hdist-epoch=39-val_hdist=0.5219.ckpt",
|
| 18 |
+
"kfold_checkpoints/fold_1/best-model-hdist-epoch=38-val_hdist=0.5838.ckpt",
|
| 19 |
+
"kfold_checkpoints/fold_2/best-model-hdist-epoch=39-val_hdist=0.6019.ckpt",
|
| 20 |
+
"kfold_checkpoints/fold_3/best-model-hdist-epoch=41-val_hdist=0.5304.ckpt",
|
| 21 |
+
"kfold_checkpoints/fold_4/best-model-hdist-epoch=35-val_hdist=0.5538.ckpt"
|
| 22 |
+
],
|
| 23 |
+
"code": "https://github.com/kidshock/fathomnet-2025-2ndplace",
|
| 24 |
+
"inference": "inference_only.ipynb in the code repo",
|
| 25 |
+
"competition": {
|
| 26 |
+
"name": "FathomNet 2025 (Kaggle, FGVC @ CVPR 2025)",
|
| 27 |
+
"url": "https://www.kaggle.com/competitions/fathomnet-2025",
|
| 28 |
+
"task": "hierarchical classification of marine taxa",
|
| 29 |
+
"metric": "hierarchical distance (lower is better)",
|
| 30 |
+
"placement": 2
|
| 31 |
+
},
|
| 32 |
+
"license": "apache-2.0"
|
| 33 |
+
}
|