ChessQueries
ONNX
chess
computer-vision
image-to-fen

ChessQ Lite model weights

Resources: Demo · Paper · Code · Paper model weights

ChessQ Lite recognizes chessboard positions from images. These models are further trained on proprietary data; V5 and V6 also predict viewing direction.

ChessQ Lite V6

Format Download Size Use
FP16 safetensors V6 FP16 63.45 MB PyTorch, CUDA or CPU
INT8 ONNX V6 INT8 35.91 MB ONNX Runtime, including browser WASM

Matching JSON manifests describe inputs, outputs and artifact checksums. See SHA256SUMS-v6. V6 Core ML is awaiting Apple validation; V4 Core ML remains available below.

Accuracy

V4/V5/V6 Lite and Large on our full proprietary test collection of 6,605 images, which is not publicly distributed. Scores use fixed category weights, independent of category size, with the same weights for every model and both metrics. An exact board has all 64 squares correct.

Category-weighted square accuracy versus exact-board accuracy for ChessQ Lite and Large V4, V5 and V6.

Download SVG. The plot compares FP32 reference models. V6 Lite exports achieve 79.62% weighted exact-board accuracy with FP16 CUDA and 79.20% with INT8 CPU; browser preprocessing may differ.

Quick start

With Python 3.12, install the inference package and download either V6 file above:

python -m pip install "git+https://github.com/JSeytre/chessqueries.git@f54c07b50ae27ec5516bc80efdfb4e0600adc007"
chessqueries-predict photo.jpg --checkpoint cq-vit-s-644-v6-seed1-safetensors-fp16-r1.safetensors --device cuda --json

For CPU, use --device cpu. For ONNX, also install onnxruntime==1.30.0 and select the .onnx file. Browser integration guide.

Previous releases

Version Downloads
V5 FP16 · INT8
V4 FP16 · Core ML for iOS 17+ · iOS guide

License

Weights use the PolyForm Noncommercial License 1.0.0. Commercial use requires separate permission. Third-party terms are listed in NOTICE.

Contact: contact "at" chessq.org.

Downloads last month
1,492
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Paper for joelseytre/chessq-lite