i2MAP-rfdetrl-slice

RF-DETR large object detector trained at MBARI on i2MAP images. Designed for use in a sliced fashion, e.g. SAHI.

Useful for fast moving transecting AUV imagery as a first stage in a two-stage processing pipeline (detect->classify). Designed for general object detection in i2MAP transecting AUV. Training data includes 37262 boxes in 21594 positive images, and 5398 negative images that span 73 unique i2MAP dives between 2016-2023. Depth range 100-1000 meters in Monterey Bay, California, USA.
Training data will not be released as it includes data that is not public.

Architecture RF-DETR Large
Epochs 30
Classes 1

Best validation metrics

Metric Value
val/F1 0.7609
val/ema_mAP_50 0.8145
val/ema_mAP_50_95 0.5049
val/ema_mAP_75 0.5569
val/mAP_50 0.8145
val/mAP_50_95 0.5049
val/mAP_75 0.5569
val/precision 0.7841
val/recall 0.7649

Classes

object

Files

  • checkpoint_best_ema.pth
  • checkpoint_best_total.pth
  • hparams.yaml
  • metrics.csv
  • metrics_plot.png
  • rfdetrl-20161128.onnx
  • training_config.json

Usage with SAHI

pip install sahi rfdetr
from sahi import AutoDetectionModel
from sahi.predict import get_sliced_prediction

# Load the i2MAP RF-DETR large model (PyTorch checkpoint)
detection_model = AutoDetectionModel.from_pretrained(
    model_type="roboflow",       # SAHI's RF-DETR backend
    model="RFDETRLarge",
    model_path="path/to/i2MAP-rfdetrl-slice.pth",
    image_size=704,
    confidence_threshold=0.3,
    device="cuda:0",  # or "cpu"
)

# Sliced inference on 704 x 704 tiles with 20% overlap
result = get_sliced_prediction(
    "path/to/your/i2map_image.jpg",
    detection_model,
    slice_height=704,
    slice_width=704,
    overlap_height_ratio=0.2,
    overlap_width_ratio=0.2,
)

for pred in result.object_prediction_list:
    print(pred.category.name, pred.score.value, pred.bbox.to_xyxy())

result.export_visuals(export_dir="output/")
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Collections including MBARI-org/i2MAP-rfdetrl-slice