i2MAP-rfdetrl-slice
Object Detector for Underwater Imagery
2 min readupdated
This model is an RF-DETR Large object detector trained by MBARI researchers on underwater dive data from Monterey Bay. It is designed to work with sliced images (for example, using the SAHI library) and serves as the first stage in two-stage processing pipelines for fast-moving AUVs. The model was trained on a large dataset of deep-sea footage captured at depths between 100 and 1,000 meters, helping automate object detection in seafloor imagery.
Key features
- Built on the RF-DETR Large architecture for efficient object detection
- Trained on 37,262 bounding boxes from thousands of MBARI deep-sea dive images spanning 2016 to 2023
- Achieves balanced validation metrics (F1 0.76, mAP_50 0.81)
- Supports seamless inference integration through the SAHI library using tiled image slicing
What you can do
- Process underwater photos and videos captured by autonomous underwater vehicles (AUVs)
- Set up a two-stage processing pipeline (detection using the model followed by classification)
- Use Python scripts with the SAHI library for tiling images and running inference
Example
from sahi import AutoDetectionModel
from sahi.predict import get_sliced_prediction
detection_model = AutoDetectionModel.from_pretrained(
model_type="roboflow",
model="RFDETRLarge",
model_path="checkpoint_best_ema.pth",
image_size=704,
confidence_threshold=0.3,
device="cuda:0",
)
result = get_sliced_prediction(
"image.jpg",
detection_model,
slice_height=704,
slice_width=704,
overlap_height_ratio=0.2,
overlap_width_ratio=0.2,
)
Read more
DetailsArchitecture: RF-DETR Large
Training epochs: 30
Metrics: val/F1: 0.7609, val/mAP_50: 0.8145, val/precision: 0.7841
Files: checkpoint_best_ema.pth, checkpoint_best_total.pth, rfdetrl-20161128.onnx










Comments