SeaClear YOLOv8m
two-stage underwater debris detector
2 min read
This model automatically detects and classifies underwater debris in footage captured by remotely operated vehicles (ROVs). Built as a two-stage pipeline on the YOLOv8m architecture (from the popular Ultralytics library), it was trained on the SeaClear Marine Debris Dataset. The system groups detected objects into four broad categories: plastic, metal, foam, and other. It is useful for marine ecology researchers, environmental system developers, and computer vision engineers.
Key features
- Two-stage pipeline: separate weights for the initial detection stage (Stage 1) and the refined second stage (Stage 2).
- Balanced categories: 40 original classes consolidated into 4 clear groups for easier analysis.
- Data leakage prevention: strict frame-by-frame splitting and hash checks to prevent overlap between the training and validation sets.
- Ready-to-use checkpoints: weight files for both training stages, complete with logs and configs.
What you can do
- Analyze underwater footage: run the detector on underwater camera feeds to spot plastic and metal debris.
- Compare metrics: review validation results and benchmark the single-stage approach against the two-stage pipeline.
- Integrate in Python: load the weights via the Ultralytics library for your own computer vision tasks.
- Inspect the pipeline: use the included config files and logs to reproduce training on your own dataset.
Example
from huggingface_hub import hf_hub_download
from ultralytics import YOLO
model = YOLO(hf_hub_download("immortalxmach/seaclear-yolov8m", "stage2_best.pt"))
results = model.predict("rov_frame.jpg", imgsz=640, conf=0.25, iou=0.45)
results[0].show()Read more
DetailsMetrics (Stage 2): Precision 0.923, Recall 0.902, mAP@0.50 0.950, mAP@0.50:0.95 0.728.
Requirements: PyTorch 2.5.1, Ultralytics 8.4.18; trained on an RTX 4060 Laptop GPU.
Limitations: validation was performed within the original video sequences, with no independent test set. License: AGPL-3.0.










Comments