Downloads · 30 days
10
1% of all-time downloads
MBARI-org/megamidwater
megamidwater is a object detection model from MBARI-org. Use it when you need objects located in an image. It is set up for yolov5. The card lists the license as apache-2.0.
Downloads · 30 days
10
1% of all-time downloads
All-time downloads
795
Public
Repo size
168 MB
Likes
1
Public
Click a slice to open those files.
.pt168 MB · 100%
From the Hugging Face model README
pip install -U yolov5
import yolov5
model = yolov5.load('MBARI-org/megamidwater')
# Run the yolo
# set model parameters
model.conf = 0.25 # NMS confidence threshold
model.iou = 0.1 # NMS IoU threshold
model.agnostic = False # NMS class-agnostic
model.multi_label = False # NMS multiple labels per box
model.max_det = 1000 # maximum number of detections per image
# set image
img = 'http://dsg.mbari.org/images/dsg/external/Ctenophora/Deiopea_01.png'
# perform inference
results = model(img, size=1280)
# print results
print(results.pandas().xyxy[0])
yolov5 train --data data.yaml --img 1280 --batch 16 --weights mbari-org/megamidwater --epochs 10