File size: 2,967 Bytes
f11e385
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ccb0c48
f11e385
 
 
 
 
 
 
 
 
 
 
 
 
 
ccb0c48
 
f11e385
 
 
 
 
 
 
 
 
 
ab21cda
f11e385
ab21cda
f11e385
 
 
 
 
 
 
 
 
 
 
ab21cda
1
2
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
license: mit
language:
- en
tags:
- biology
- CV
- images
- animals
- lepidoptera
- butterflies
- detection
- heliconius
- forewings
- hindwings
- separated wings
- full body
- butterfly
- RGB
- ruler
- whitebalance
- label
- colorchecker
---

## Model Card for yolo_beetle_detection

This model detects beetles and scale bars in images by drawing bounding boxes around the respective items. This model was developed to facilitate downstream applications during BeetlePalooza 2024.


## Model Details

yolo_beetle_best.pt is the weights file for the YOLO model.
The yolov8m checkpoint was fine-tuned over 100 epochs on 29 annotated images of beetles sourced from the (2018-NEON-beetles dataset)[https://huggingface.co/datasets/imageomics/2018-NEON-beetles]. 
Please checkout the repository on HF and cite information accordingly.

All 29 images were used as the training set.

## Model Description

The model is responsible for taking an input image (RGB) and generating bounding boxes for all classes below that are found in the image. Data augmentations applied during training include shear (10.0), scale (0.5), translate (0.1), fliplr (0.2), and flipud(0.2). 
The model was trained for 100 epochs with a default image size of 640. 

### Segmentation Classes
[`box class`] corresponding category

- [0] beetle
- [1] scale_bar


### Details

```
model.train(data=YAML, 
            epochs=100, 
            batch=4,
            device=DEVICE,
            optimizer='auto',
            verbose=True,
            val=True,
            shear=10.0,
            scale=0.5, 
            translate=0.1,
            fliplr = 0.2,
            flipud = 0.2
            )

```

## Metrics (Training)
                  Class     Images  Instances      Box(P          R      mAP50  mAP50-95)
                   all         29        479      0.992      0.998      0.995      0.743
                beetle         29        450      0.991      0.997      0.995      0.714
             scale_bar         29         29      0.992          1      0.995      0.771
                  
**Developed by:** Michelle Ramirez

## How to Get Started with the Model

To view applications of how to load in the model file and predict masks on images, please refer to [the 2018-NEON-beetles-processing github page](https://github.com/Imageomics/2018-NEON-beetles-processing/tree/beetle_detection)

<!-- ## Citation

**BibTeX:**

```
```

**APA:**

## Acknowledgements

The [Imageomics Institute](https://imageomics.org) is funded by the US National Science Foundation's Harnessing the Data Revolution (HDR) program under [Award #2118240](https://www.nsf.gov/awardsearch/showAward?AWD_ID=2118240) (Imageomics: A New Frontier of Biological Information Powered by Knowledge-Guided Machine Learning). Any opinions, findings and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.
 -->