Add config.json and download snippet (enables download counting)
#1
by laurachrobak - opened
- README.md +20 -1
- config.json +20 -0
README.md
CHANGED
|
@@ -3,7 +3,26 @@ license: mit
|
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
pipeline_tag: image-classification
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
---
|
| 7 |
This is a visual recognition model designed for fine-grained classification of marine species. The model leverages multi-scale contextual inputs to capture interactions between the object and its habitat. In addition, it encodes the hierarchical structure of marine taxonomy into the feature space, allowing the model to reflect hierarchical relationships in its predictions. By integrating instance and environmental features with taxonomic structure, the model achieves improved performance in fine-grained marine species classification.
|
| 8 |
|
| 9 |
-
While we employed standard classification accuracy for training, the primary evaluation metric was hierarchical distance, defined by the number of hops between the predicted label and the ground truth in the taxonomy tree. The final model attained a public distance score of 1.62 and a private distance score of 1.45 on the official evaluation leaderboard.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
pipeline_tag: image-classification
|
| 6 |
+
tags:
|
| 7 |
+
- fathomnet
|
| 8 |
+
- marine-biology
|
| 9 |
+
- ocean
|
| 10 |
+
- underwater-imagery
|
| 11 |
+
- fathomnet-2025
|
| 12 |
+
- kaggle
|
| 13 |
+
- fgvc
|
| 14 |
---
|
| 15 |
This is a visual recognition model designed for fine-grained classification of marine species. The model leverages multi-scale contextual inputs to capture interactions between the object and its habitat. In addition, it encodes the hierarchical structure of marine taxonomy into the feature space, allowing the model to reflect hierarchical relationships in its predictions. By integrating instance and environmental features with taxonomic structure, the model achieves improved performance in fine-grained marine species classification.
|
| 16 |
|
| 17 |
+
While we employed standard classification accuracy for training, the primary evaluation metric was hierarchical distance, defined by the number of hops between the predicted label and the ground truth in the taxonomy tree. The final model attained a public distance score of 1.62 and a private distance score of 1.45 on the official evaluation leaderboard.
|
| 18 |
+
|
| 19 |
+
## Download
|
| 20 |
+
|
| 21 |
+
```python
|
| 22 |
+
from huggingface_hub import hf_hub_download
|
| 23 |
+
import json
|
| 24 |
+
|
| 25 |
+
repo = "FathomNet/FathomNet-2025-1stplace-Model"
|
| 26 |
+
cfg = json.load(open(hf_hub_download(repo, "config.json")))
|
| 27 |
+
ckpt = hf_hub_download(repo, cfg["checkpoints"][0])
|
| 28 |
+
```
|
config.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"task": "image-classification",
|
| 3 |
+
"num_classes": 79,
|
| 4 |
+
"framework": "pytorch",
|
| 5 |
+
"checkpoint_format": "ckpt",
|
| 6 |
+
"checkpoints": [
|
| 7 |
+
"last.ckpt"
|
| 8 |
+
],
|
| 9 |
+
"description": "Multi-scale context + taxonomy-aware fine-grained classifier",
|
| 10 |
+
"competition": {
|
| 11 |
+
"name": "FathomNet 2025 (Kaggle, FGVC @ CVPR 2025)",
|
| 12 |
+
"url": "https://www.kaggle.com/competitions/fathomnet-2025",
|
| 13 |
+
"task": "hierarchical classification of marine taxa",
|
| 14 |
+
"metric": "hierarchical distance (lower is better)",
|
| 15 |
+
"placement": 1,
|
| 16 |
+
"public_score": 1.62,
|
| 17 |
+
"private_score": 1.45
|
| 18 |
+
},
|
| 19 |
+
"license": "mit"
|
| 20 |
+
}
|