Add config.json and download snippet (enables download counting)
Browse files- README.md +63 -45
- config.json +22 -0
README.md
CHANGED
|
@@ -1,45 +1,63 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
[
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- fathomnet
|
| 5 |
+
- marine-biology
|
| 6 |
+
- ocean
|
| 7 |
+
- underwater-imagery
|
| 8 |
+
- object-detection
|
| 9 |
+
- fish
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# megafishdetector
|
| 13 |
+
|
| 14 |
+
Detector for generic "fish" trained on publicly available datasets, currently supporting YOLO-style bounding boxes prediction and training. Can also be used as pre-trained networks for further fine-tuning.
|
| 15 |
+
|
| 16 |
+
Initial experiments to train a generic MegaFishDetector modelled off of the MegaDetector for land animals (https://github.com/microsoft/CameraTraps/blob/main/megadetector.md)
|
| 17 |
+
|
| 18 |
+
Currently based on YOLOv5 (https://github.com/ultralytics/yolov5).
|
| 19 |
+
|
| 20 |
+
This repo contains links to public datasets, code to parse datasets into a common format (currently YOLO darknet only), and a model zoo for people to start with. For instructions to run, see the link above.
|
| 21 |
+
|
| 22 |
+
## Instructions
|
| 23 |
+
1. Install [Yolov5](https://github.com/ultralytics/yolov5)
|
| 24 |
+
2. Download desired network [weights](https://github.com/warplab/megafishdetector/blob/main/MODEL_ZOO.md)
|
| 25 |
+
3. Usage (from yolov5 root): python detect.py --imgsz 1280 --conf-thres 0.1 --weights [path/to/megafishdetector_v0_yolov5m_1280p] --source [path/to/video/image folder]
|
| 26 |
+
|
| 27 |
+
## Public Datasets Used in v0:
|
| 28 |
+
|
| 29 |
+
- [AIMs Ozfish](https://github.com/open-AIMS/ozfish)
|
| 30 |
+
- [FathomNet](https://www.fathomnet.org/)
|
| 31 |
+
- [VIAME FishTrack](https://viame.kitware.com/#/collection/62afcb66dddafb68c8442126)
|
| 32 |
+
- [NOAA Puget Sound Nearshore Fish (2017-2018)](https://lila.science/datasets/noaa-puget-sound-nearshore-fish)
|
| 33 |
+
- [DeepFish](https://alzayats.github.io/DeepFish/)
|
| 34 |
+
- [NOAA Labelled Fishes in the Wild](https://www.st.nmfs.noaa.gov/aiasi/DataSets.html)
|
| 35 |
+
|
| 36 |
+
## To Cite:
|
| 37 |
+
|
| 38 |
+
[paper](https://arxiv.org/abs/2305.02330)
|
| 39 |
+
```
|
| 40 |
+
@misc{yang2023biological,
|
| 41 |
+
title={Biological Hotspot Mapping in Coral Reefs with Robotic Visual Surveys},
|
| 42 |
+
author={Daniel Yang and Levi Cai and Stewart Jamieson and Yogesh Girdhar},
|
| 43 |
+
year={2023},
|
| 44 |
+
eprint={2305.02330},
|
| 45 |
+
archivePrefix={arXiv},
|
| 46 |
+
primaryClass={cs.RO}
|
| 47 |
+
}
|
| 48 |
+
```
|
| 49 |
+
## TODO:
|
| 50 |
+
- Train larger models
|
| 51 |
+
- requirements.txt for things like fathomnet environment
|
| 52 |
+
- COCO format output
|
| 53 |
+
|
| 54 |
+
## Download
|
| 55 |
+
|
| 56 |
+
```python
|
| 57 |
+
from huggingface_hub import hf_hub_download
|
| 58 |
+
import json
|
| 59 |
+
|
| 60 |
+
repo = "FathomNet/megafishdetector"
|
| 61 |
+
cfg = json.load(open(hf_hub_download(repo, "config.json")))
|
| 62 |
+
weights = hf_hub_download(repo, cfg["checkpoints"]["yolov5m_1280p"])
|
| 63 |
+
```
|
config.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"task": "object-detection",
|
| 3 |
+
"classes": [
|
| 4 |
+
"fish"
|
| 5 |
+
],
|
| 6 |
+
"architecture": "yolov5",
|
| 7 |
+
"framework": "ultralytics-yolov5",
|
| 8 |
+
"checkpoints": {
|
| 9 |
+
"yolov5s_640p": "weights/megafishdetector_v0_yolov5s_640p.pt",
|
| 10 |
+
"yolov5m_1280p": "weights/megafishdetector_v0_yolov5m_1280p.pt",
|
| 11 |
+
"yolov5l_640p": "weights/megafishdetector_v0_yolov5l_640p.pt"
|
| 12 |
+
},
|
| 13 |
+
"input_size": {
|
| 14 |
+
"yolov5s_640p": 640,
|
| 15 |
+
"yolov5m_1280p": 1280,
|
| 16 |
+
"yolov5l_640p": 640
|
| 17 |
+
},
|
| 18 |
+
"version": "v0",
|
| 19 |
+
"code": "https://github.com/warplab/megafishdetector",
|
| 20 |
+
"paper": "https://arxiv.org/abs/2305.02330",
|
| 21 |
+
"license": "mit"
|
| 22 |
+
}
|