Ring Detector YOLOv8 (Visual Ring Search)
This model is a fine-tuned YOLOv8 Nano object detection model designed specifically to detect rings in images. It serves as the "Stage 1" component of a Visual Search Engine for jewelry.
π Project Overview
In a visual search pipeline, background noise (fingers, boxes, textures) can interfere with feature extraction. This model:
- Identifies the ring in a raw image.
- Crops the image to the bounding box of the ring.
- Passes the clean crop to a background remover (
rembg) and anEfficientNetB0feature extractor.
π Training Details
- Base Model:
yolov8n.pt(Ultralytics) - Dataset: Custom dataset labeled via Roboflow (Dataset:
02_labeled_rings). - Classes: 1 (Ring)
- Hardware: Trained on CPU/GPU via Jupyter Notebook.
- Training Code: Available in the project GitHub repository under
notebooks/train_detector.py.
π οΈ How to Use
You can load this model directly using the ultralytics library:
from ultralytics import YOLO
# Load the model
model = YOLO('best.pt')
# Run inference
results = model.predict('your_image.jpg', conf=0.5)
# View results
for r in results:
print(r.boxes)
r.show()
- Downloads last month
- 3