Downloads · 30 days
5
6% of all-time downloads
farazv2/new-overlay-model-yolo
new-overlay-model-yolo is a machine learning model from farazv2. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for ultralytics. The card lists the license as agpl-3.0.
This model was trained to detect and segment overlay elements in images/videos using YOLOv8 segmentation with optimized hyperparameters.
Downloads · 30 days
5
6% of all-time downloads
All-time downloads
89
Public
Repo size
54.8 MB
Likes
0
Public
Click a slice to open those files.
.pt54.8 MB · 100%
From the Hugging Face model README
This model was trained to detect and segment overlay elements in images/videos using YOLOv8 segmentation with optimized hyperparameters.
| Metric | Value |
|---|---|
| Box [email protected] | 0.9038 |
| Box [email protected]:0.95 | 0.7171 |
| Mask [email protected] | 0.3981 |
| Mask [email protected]:0.95 | 0.1520 |
This model includes several optimizations over the baseline:
pip install ultralytics
from ultralytics import YOLO
from huggingface_hub import hf_hub_download
# Download model
model_path = hf_hub_download(
repo_id="farazv2/overlay-model-yolo",
filename="best.pt"
)
# Load model
model = YOLO(model_path)
# Run inference
results = model('image.jpg')
# Process results
for result in results:
boxes = result.boxes # Bounding boxes
masks = result.masks # Segmentation masks
# Visualize
result.show()
# Save
result.save('output.jpg')
# Process multiple images
results = model(['image1.jpg', 'image2.jpg', 'image3.jpg'])
# Process video
results = model('video.mp4', save=True)
| Parameter | Value | Notes |
|---|---|---|
| Epochs | 10 | |
| Image Size | 800 | Increased from 640 |
| Batch Size | 16 | Optimized for dual T4 |
| Optimizer | AdamW | |
| Initial LR | 0.0005 | With cosine scheduler |
| Mosaic | 1.0 | Re-enabled (critical!) |
| Copy-Paste | 0.3 | New addition |
| Multi-Scale | True | Enabled |
| Mixed Precision | True | Enabled |
| Patience | 25 |
The model can be exported to various formats:
from ultralytics import YOLO
model = YOLO('best.pt')
# Export to ONNX
model.export(format='onnx')
# Export to TensorRT
model.export(format='engine')
# Export to CoreML
model.export(format='coreml')
If you use this model, please cite:
@software{overlay_yolo_model,
author = {farazv2},
title = {YOLO Overlay Detection Model - Optimized},
year = {2025},
publisher = {HuggingFace},
url = {https://huggingface.co/farazv2/overlay-model-yolo}
}
This model is released under the AGPL-3.0 license, following Ultralytics YOLOv8 licensing.