Add all but model weights
Browse files- .gitattributes +24 -0
- README.md +2 -4
- app.py +36 -0
- images/crab.png +3 -0
- images/fish.png +3 -0
- images/fish_2.png +3 -0
- images/fish_3.png +3 -0
- images/fish_4.png +3 -0
- images/fish_5.png +3 -0
- images/flat_fish.png +3 -0
- images/flat_red_fish.png +3 -0
- images/jelly.png +3 -0
- images/jelly_2.png +3 -0
- images/jelly_3.png +3 -0
- images/puff.png +3 -0
- images/red_fish.png +3 -0
- images/red_fish_2.png +3 -0
- images/scene.png +3 -0
- images/scene_2.png +3 -0
- images/scene_3.png +3 -0
- images/scene_4.png +3 -0
- images/scene_5.png +3 -0
- images/scene_6.png +3 -0
- images/soft_coral.png +3 -0
- images/starfish.png +3 -0
- images/starfish_2.png +3 -0
- requirements.txt +1 -0
.gitattributes
CHANGED
@@ -33,3 +33,27 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
images/fish_2.png filter=lfs diff=lfs merge=lfs -text
|
37 |
+
images/flat_fish.png filter=lfs diff=lfs merge=lfs -text
|
38 |
+
images/flat_red_fish.png filter=lfs diff=lfs merge=lfs -text
|
39 |
+
images/red_fish.png filter=lfs diff=lfs merge=lfs -text
|
40 |
+
images/scene_2.png filter=lfs diff=lfs merge=lfs -text
|
41 |
+
images/scene_5.png filter=lfs diff=lfs merge=lfs -text
|
42 |
+
images/fish_4.png filter=lfs diff=lfs merge=lfs -text
|
43 |
+
images/red_fish_2.png filter=lfs diff=lfs merge=lfs -text
|
44 |
+
images/scene_4.png filter=lfs diff=lfs merge=lfs -text
|
45 |
+
images/scene_6.png filter=lfs diff=lfs merge=lfs -text
|
46 |
+
images/soft_coral.png filter=lfs diff=lfs merge=lfs -text
|
47 |
+
images/starfish_2.png filter=lfs diff=lfs merge=lfs -text
|
48 |
+
images/fish_3.png filter=lfs diff=lfs merge=lfs -text
|
49 |
+
images/scene_3.png filter=lfs diff=lfs merge=lfs -text
|
50 |
+
images/scene.png filter=lfs diff=lfs merge=lfs -text
|
51 |
+
images/starfish.png filter=lfs diff=lfs merge=lfs -text
|
52 |
+
images/crab.png filter=lfs diff=lfs merge=lfs -text
|
53 |
+
images/fish_5.png filter=lfs diff=lfs merge=lfs -text
|
54 |
+
images/fish.png filter=lfs diff=lfs merge=lfs -text
|
55 |
+
images/jelly_2.png filter=lfs diff=lfs merge=lfs -text
|
56 |
+
images/jelly_3.png filter=lfs diff=lfs merge=lfs -text
|
57 |
+
images/jelly.png filter=lfs diff=lfs merge=lfs -text
|
58 |
+
images/puff.png filter=lfs diff=lfs merge=lfs -text
|
59 |
+
yolov8m.pt filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
colorFrom: blue
|
5 |
colorTo: red
|
6 |
sdk: gradio
|
@@ -9,5 +9,3 @@ app_file: app.py
|
|
9 |
pinned: false
|
10 |
license: cc-by-4.0
|
11 |
---
|
12 |
-
|
13 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: FathomNet2023 Competition Baseline
|
3 |
+
emoji: 📊
|
4 |
colorFrom: blue
|
5 |
colorTo: red
|
6 |
sdk: gradio
|
|
|
9 |
pinned: false
|
10 |
license: cc-by-4.0
|
11 |
---
|
|
|
|
app.py
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import glob
|
2 |
+
import gradio as gr
|
3 |
+
from ultralytics import YOLO
|
4 |
+
|
5 |
+
model_path = "yolov8m.pt"
|
6 |
+
model = YOLO(model_path)
|
7 |
+
|
8 |
+
|
9 |
+
def run(image_path):
|
10 |
+
results = model.predict(image_path)
|
11 |
+
return results[0].plot()[:, :, ::-1] # reverse channels for gradio
|
12 |
+
|
13 |
+
|
14 |
+
title = "MBARI Monterey Bay Benthic"
|
15 |
+
description = (
|
16 |
+
"Gradio demo for the FathomNet2023 Baseline Model: Developed by researchers"
|
17 |
+
" at the Monterey Bay Aquarium Research Institute (MBARI) to serve as a"
|
18 |
+
" baseline YOLOv8m model for the FathomNet2023 Kaggle Competition, in"
|
19 |
+
" conjunction with the Fine Grained Visual Categorization workshop at CVPR"
|
20 |
+
" 2023. The training dataset comprises both the FathomNet2023 competition"
|
21 |
+
" split and internal MBARI data, including 290 fine-grained taxonomic"
|
22 |
+
" categories of benthic animals."
|
23 |
+
)
|
24 |
+
|
25 |
+
examples = glob.glob("images/*.png")
|
26 |
+
|
27 |
+
interface = gr.Interface(
|
28 |
+
run,
|
29 |
+
inputs=[gr.components.Image(type="filepath")],
|
30 |
+
outputs=gr.components.Image(type="numpy"),
|
31 |
+
title=title,
|
32 |
+
description=description,
|
33 |
+
examples=examples,
|
34 |
+
)
|
35 |
+
|
36 |
+
interface.queue().launch()
|
images/crab.png
ADDED
Git LFS Details
|
images/fish.png
ADDED
Git LFS Details
|
images/fish_2.png
ADDED
Git LFS Details
|
images/fish_3.png
ADDED
Git LFS Details
|
images/fish_4.png
ADDED
Git LFS Details
|
images/fish_5.png
ADDED
Git LFS Details
|
images/flat_fish.png
ADDED
Git LFS Details
|
images/flat_red_fish.png
ADDED
Git LFS Details
|
images/jelly.png
ADDED
Git LFS Details
|
images/jelly_2.png
ADDED
Git LFS Details
|
images/jelly_3.png
ADDED
Git LFS Details
|
images/puff.png
ADDED
Git LFS Details
|
images/red_fish.png
ADDED
Git LFS Details
|
images/red_fish_2.png
ADDED
Git LFS Details
|
images/scene.png
ADDED
Git LFS Details
|
images/scene_2.png
ADDED
Git LFS Details
|
images/scene_3.png
ADDED
Git LFS Details
|
images/scene_4.png
ADDED
Git LFS Details
|
images/scene_5.png
ADDED
Git LFS Details
|
images/scene_6.png
ADDED
Git LFS Details
|
images/soft_coral.png
ADDED
Git LFS Details
|
images/starfish.png
ADDED
Git LFS Details
|
images/starfish_2.png
ADDED
Git LFS Details
|
requirements.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
ultralytics==8.0.158
|