surawut/chessboard-dataset-yolo
Preview • Updated • 4.09k
Run surawut/chess-move-tracking-yolo11 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/surawut/chess-move-tracking-yolo11. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/surawut/chess-move-tracking-yolo11 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use surawut/chess-move-tracking-yolo11 with ultralytics:
from huggingface_hub import hf_hub_download
from ultralytics import YOLO
# pick the weights file from this repo's "Files and versions" tab
weights = hf_hub_download("surawut/chess-move-tracking-yolo11", "<weights>.pt")
model = YOLO(weights)
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