Downloads · 30 days
0
Ehlum/NWSD
NWSD is a machine learning model from Ehlum. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as gpl-3.0.
This model performs semantic segmentation of water surfaces in beach or coastal images. It’s a fine-tuned version of YOLOv11n, adapted for binary segmentation with a single class: water.
Downloads · 30 days
0
Access
Public
Updated Nov 7, 2025
Repo size
6.4 MB
Likes
0
Public
Click a slice to open those files.
.pt6.4 MB · 100%
From the Hugging Face model README
This model performs semantic segmentation of water surfaces in beach or coastal images.
It’s a fine-tuned version of YOLOv11n, adapted for binary segmentation with a single class: water.
Built for lightweight, real-time deployment, the model achieves strong accuracy while remaining small and efficient.
water)nwsd-v2.pt (≈6 MB)nwsd_api.py)| Metric | Value | Notes |
|---|---|---|
| mAP50 | > 0.85 | On validation set |
| Inference speed | ~50 ms/image | On CPU |
| GPU memory | < 2 GB | For 640×640 input |
waterUse cases:
Limitations:
from huggingface_hub import hf_hub_download
import torch
model_path = hf_hub_download(repo_id="Ehlum-Lucas/NWSD", filename="nwsd-v2.pt")
model = torch.load(model_path, map_location="cpu")
model.eval()
from PIL import Image
import torch
from torchvision import transforms
img = Image.open("beachTest.jpg").convert("RGB")
input_tensor = transforms.ToTensor()(img).unsqueeze(0)
with torch.no_grad():
pred = model(input_tensor)
You can fine-tune or retrain the model using YOLOv11 tools:
python train.py --data data.yaml --weights <path_to_weights> --img 640 --batch 16 --epochs 50
Example configuration (data.yaml) defines paths to your datasets and class names.
python evaluate.py --data data.yaml --weights model/nwsd-v2.pt
Generates:
This model is released under the GPL-3.0 License. See the LICENSE file for details.
If you use this model in your work, please consider citing:
@misc{nwsd2025,
title={Water Surface Segmentation on Beach Images},
author={Lucas Iglesia},
year={2025},
howpublished={\url{https://huggingface.co/Ehlum-Lucas/NWSD}}
}