surawut/chessboard-dataset-yolo
Preview • Updated • 213
How to use surawut/chess-move-tracking-yolo11 with ultralytics:
# Couldn't find a valid YOLO version tag.
# Replace XX with the correct version.
from ultralytics import YOLOvXX
model = YOLOvXX.from_pretrained("surawut/chess-move-tracking-yolo11")
source = 'http://images.cocodataset.org/val2017/000000039769.jpg'
model.predict(source=source, save=True)This repository contains fine-tuned models for a Chess Move Tracking pipeline.
models/yolo11s_pose_chessboard.pt:
chessboard).a1, h1, a8, h8.models/yolo11m_pieces.pt:
Hand, bB, bK, bN, bP, bQ, bR, wB, wK, wN, wP, wQ, wR).You can use these models directly with the Ultralytics library.
First, install the required library:
pip install -U ultralytics
This model detects the 4 semantic corners of the chessboard (a1, h1, a8, h8) to help with perspective warping.
from ultralytics import YOLO
# Load the model directly from Hugging Face
model = YOLO("https://huggingface.co/surawut/chess-move-tracking-yolo11/resolve/main/models/yolo11s_pose_chessboard.pt")
# Load an image (raw frame)
image_path = "path/to/raw_frame.jpg"
# Run inference
results = model(image_path)
This model detects the 12 chess pieces + hand on a warped (640x640) top-down view of the board.
from ultralytics import YOLO
# Load the model directly from Hugging Face
model = YOLO("https://huggingface.co/surawut/chess-move-tracking-yolo11/resolve/main/models/yolo11m_pieces.pt")
# Load a chessboard image
warped_image_path = "path/to/warped_board.jpg"
# Run inference
results = model(warped_image_path)
Base model
Ultralytics/YOLO11