marko-barisic commited on
Commit
335c675
·
verified ·
1 Parent(s): 8da9119

Document new yolo11m-seg checkpoint and inference_config.json

Browse files
Files changed (1) hide show
  1. README.md +20 -1
README.md CHANGED
@@ -6,9 +6,28 @@ Public assets for the [sea turtle behavior pipeline](https://github.com/bara495/
6
 
7
  | Path | Description |
8
  |------|-------------|
9
- | `models/yolo/best.pt` | YOLOv8m-seg model - sea turtle detection |
 
10
  | `models/breathing/best_model.keras` | ResNet50 classifier - breathing detection |
11
  | `models/breathing/optimal_threshold.json` | F1-optimal threshold for breathing classifier |
12
  | `1min_sample/` | 1-minute sample clips (2 cameras, 2 days) for pipeline testing |
13
 
14
  Downloaded automatically by `setup.sh` -- no manual action needed.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
 
7
  | Path | Description |
8
  |------|-------------|
9
+ | `models/yolo/best.pt` | YOLO11m-seg model — sea turtle detection |
10
+ | `models/yolo/inference_config.json` | Calibrated `conf`/`iou`/`max_det` this checkpoint needs — see below |
11
  | `models/breathing/best_model.keras` | ResNet50 classifier - breathing detection |
12
  | `models/breathing/optimal_threshold.json` | F1-optimal threshold for breathing classifier |
13
  | `1min_sample/` | 1-minute sample clips (2 cameras, 2 days) for pipeline testing |
14
 
15
  Downloaded automatically by `setup.sh` -- no manual action needed.
16
+
17
+ ## YOLO inference settings
18
+
19
+ Always run this model with `max_det=1` — every tank holds exactly one turtle,
20
+ so this is a domain constraint, not a tuning choice. Use `inference_config.json`'s
21
+ `conf` (0.40) rather than a generic default: it's calibrated against the full
22
+ validation set under `max_det=1`, the model's actual deployment shape, and
23
+ holds P=R=F1=1.0 across a wide safe range (0.05-0.75) rather than sitting at
24
+ either edge of it.
25
+
26
+ 2026-09-05: replaced the previous checkpoint, which scored well on paper
27
+ (fitness in the top 10 of ~40 sweep runs) but had 89 false positives and 80%
28
+ recall when actually run at real inference settings. Root cause was two
29
+ independent bugs — a checkpoint-selection bug in training.py that could save
30
+ the wrong epoch's weights as best.pt, and 2 of 50 validation images carrying
31
+ duplicate ground-truth labels — both since fixed. This checkpoint is a full
32
+ retrain under the corrected code and corrected labels, verified with a clean
33
+ P=R=F1=1.0 sweep on the full val set.