Downloads · 30 days
11
2% of all-time downloads
NMFS-OSI/yolo11-segment-fish-grayscale
yolo11-segment-fish-grayscale is a image segmentation model from NMFS-OSI. Use it for the image segmentation task on the model card, and read the license before you ship it in a product. The card lists the license as agpl-3.0.
This model was trained to detect and segment fish in underwater Grayscale Imagery using the YOLO11n-seg architecture, leveraging automatic training with the Segment Anything Model (SAM) for generating segmentation mas…
Downloads · 30 days
11
2% of all-time downloads
All-time downloads
471
Public
Repo size
21.7 MB
Likes
2
Public
Click a slice to open those files.
.pt18 MB · 70%
From the Hugging Face model README
This model was trained to detect and segment fish in underwater Grayscale Imagery using the YOLO11n-seg architecture, leveraging automatic training with the Segment Anything Model (SAM) for generating segmentation masks. The combination of detection and SAM-powered segmentation enhances the model's ability to outline fish boundaries.

Download the model weights here
The segmentation dataset was generated using an automated pipeline:
sam_b.pt) was applied to generate precise segmentation masks around detected fish./content/sam_dataset/.This automated process allowed for efficient mask generation without manual annotation, facilitating faster dataset creation.
The model was trained and evaluated on the generated segmentation dataset with the following results:

To use the trained YOLO11n-seg model for fish segmentation:
from ultralytics import YOLO
# Load YOLO11n-seg model
model = YOLO("yolo11n_fish_seg_trained.pt")
# Perform inference on an image
results = model("/content/test_image.jpg")
results.show()
The model was trained on black-and-white underwater footage, and may not generalize well to color images or videos with different lighting conditions. The unsupervised learning nature of this model may lead to some incorrect detections, particularly in noisy environments where it may confuse other underwater objects for fish. Images with complex backgrounds, occlusions, or poor resolution may affect the model's performance.
This repository is a scientific product and is not official communication of the National Oceanic and Atmospheric Administration, or the United States Department of Commerce. All NOAA project content is provided on an ‘as is’ basis and the user assumes responsibility for its use. Any claims against the Department of Commerce or Department of Commerce bureaus stemming from the use of this GitHub project will be governed by all applicable Federal law. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by the Department of Commerce. The Department of Commerce seal and logo, or the seal and logo of a DOC bureau, shall not be used in any manner to imply endorsement of any commercial product or activity by DOC or the United States Government.