/ Модель

Характеристики

Лицензия
AGPL 3.0
Библиотека
pytorch
Опубликована
30 окт 2026

cubecheck

Классификация и разметка3 профессии

Набор моделей компьютерного зрения для поиска углов и распознавания цветов наклеек головоломок Рубика, помогающий перепроверять скрамблы по изображению с камеры.

0скачиваний за 30 дней0лайковвеса обновлены14 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

CubeCheck — набор небольших нейросетей для проверки перемешанных головоломок Рубика по одному изображению с камеры. Модель разработал Darshan V. S.; она используется на сайте check.cubing.in и предназначена для того, чтобы помочь скрамблеру перепроверить выполненную последовательность ходов. Репозиторий содержит модели для кубов размером от 2×2 до 7×7, а также экспериментальные варианты для Skewb, Pyraminx и FTO.

Обработка включает поиск головоломки и её видимых углов, уточнение их положения и чтение цветов наклеек на видимых гранях. Для кубов указаны небольшие U-Net-сети и CNN с позиционной сетью и двумя слоями Transformer; опубликованные компоненты имеют от 0,72 до 2,5 млн параметров. Доступны веса PyTorch и модели ONNX для запуска, в том числе в браузере. Обучение проводилось на синтетических изображениях; для версий куба приведены результаты тестов на синтетических данных, но результаты на реальных фотографиях не опубликованы.

Модель рассчитана на стандартную схему цветов WCA и обзор трёх граней либо, для кубов от 3×3, двух граней. Необычные схемы цветов и кубы без наклеек не проверялись; качество может снижаться при цветном освещении, смазывании движения и удалённой съёмке, особенно для 6×6 и 7×7. Skewb, Pyraminx и FTO обозначены как экспериментальные, а результат предназначен только для дополнительной проверки, не как официальный инструмент WCA. Лицензия репозитория — AGPL-3.0.

Сценарии применения

  • перепроверка скрамбла кубика 2×2–7×7 по кадру с камеры
  • обнаружение видимых углов кубика в кадре
  • распознавание цветов наклеек на видимых гранях
  • проверка выполненного скрамбла на пропущенный или ошибочный ход
  • экспериментальная проверка Skewb, Pyraminx и FTO

Ограничения

Модель обучена на синтетических изображениях, результаты на реальных фотографиях не опубликованы; цветное освещение, смаз движения, нестандартные цвета и далёкая съёмка могут ухудшить проверку. Варианты для Skewb, Pyraminx и FTO экспериментальные; модель не является официальным инструментом WCA.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

CubeCheck models

Small networks that check a scrambled cube, 2×2 to 7×7, from one camera view, and (experimental, since v0.3.0) a skewb, a pyraminx and an FTO. They power check.cubing.in, where they run in the browser.

Versions

Each release is a tag; the code pins the one it was tested with.

TagCornersSticker readerCube sizes
v0.3.0c7, plus one per puzzle: skewb-c1, pyram-c2, fto-c2r4, plus one per puzzle: skewb-r1, pyram-r2, fto-r22×2 to 7×7; skewb, pyraminx, FTO (experimental)
v0.2.0c7: trained with painted fingers over corners and across whole edges, and with two-face viewsr4: one reader for every size2×2 to 7×7
v0.1.0c2r23×3

This repository was called cubecheck-3x3 until v0.2.0; the old name still redirects here.

Files (v0.2.0)

FileWhat it doesParametersSize
corners/c7/finder.ptWhole frame at 256×256 → is there a cube, and roughly where its 7 visible corners are2.5 M (small U-Net)10 MB
corners/c7/refiner.pt256×256 close-up → the 7 corners precisely2.5 M (small U-Net)10 MB
reader/r4/best.ptThe three visible faces of an N×N cube, straightened to 24 px per sticker → each of the 3N² stickers: one of 6 colours, or covered0.72 M (small CNN, a position network, 2 transformer layers)2.9 MB
onnx/finder.onnx, onnx/refiner.onnxThe corner networks for ONNX Runtime (used by the website)9.9 MB each
onnx/reader-N.onnx (N = 2…7)The sticker reader for one cube size: the website loads only the size it checks2.9 MB each
onnx/meta.jsonInput sizes and the settings the website uses (finder bar 0.5, a second look 2× closer when unsure)
*_log.json, log.jsonTraining curves, one entry per epoch

The older corners/c2/ and reader/r2/ files are kept (the v0.1.0 tag has its own onnx/).

The .pt files are PyTorch checkpoints holding only weights, settings and scores (they load with torch.load(..., weights_only=True)). Use them from Python or to train further, and the ONNX files to run in a browser or anywhere ONNX Runtime runs.

Files added in v0.3.0: skewb, pyraminx and FTO (experimental)

Each puzzle has its own three networks, the same kinds as the cube's, each trained on from the cube's weights. The cube files above are unchanged.

FileWhat it doesSize
corners/skewb-c1/, corners/pyram-c2/, corners/fto-c2/ (finder.pt, refiner.pt)Find the puzzle and its visible corners: 7 on a skewb, the 4 tips of a pyraminx, 5 on an FTO (the corner nearest the camera and the four around it)10 MB each
reader/skewb-r1/, reader/pyram-r2/, reader/fto-r2/ (best.pt)The visible faces, straightened (triangles upright) → each sticker: one of the puzzle's colours (6, 4 or 8), or covered. Features are averaged over each sticker's own outline2.8 MB each
onnx/skewb/, onnx/pyram/, onnx/fto/ (finder.onnx, refiner.onnx, reader.onnx, meta.json)The same for ONNX Runtime, as the website loads them. The reader's sticker averaging is exported as a matrix product (ONNX Runtime's WebGPU backend computed the einsum wrongly)about 23 MB a puzzle

Use

From the GitHub repository:

cd python
uv sync --extra models
uv run python scripts/download_models.py   # into runs/corners/ and runs/reader/

The website downloads the ONNX files at build time (web/scripts/fetch-models.mjs).

Results (v0.2.0)

Held-out synthetic renders with harsh random camera effects, single frames, run exactly as the website runs them (python/scripts/evaluate_nxn.py), 300 renders per size with scrambles of every length:

2×23×34×45×56×67×7
True scramble called correct98.7%99.3%100%99.0%96.3%90.3%
False alarm (the rest say "re-check")0%0.7%0%0%0.7%0.3%
One slipped move caught96.7%100%100%99.0%96.7%90.7%
One slipped move missed2.0%0%0%0%0.3%0%

On 1,000 full 3×3 scrambles: true scramble correct 99.9% with no false alarms, one slip caught 99.5%. With two faces and a sliver in view (the cube held toward the scrambler), 86–95% correct with 0.3–2.7% false alarms. The live page waits for several frames to agree.

With fingers hiding a whole edge of the cube, c7 puts the two hidden corners about half as far off as the model before it (4–7% of the edge, from 8–11%), and false alarms on a 7×7 held that way fell from 19% to 6%.

Skewb, pyraminx and FTO (v0.3.0, experimental)

Held-out synthetic renders, single frames, the models as the website runs them, each puzzle held the usual way (skewb and FTO a corner toward the camera, pyraminx an edge):

SkewbPyraminxFTO
True scramble called correct98.3%96.7%98.3%
False alarm0.2%0%0%
One slipped move caught98.4%94.7%98.1%

Held any way round, most views become "re-check" with a hint to turn the puzzle; false alarms stay at 0.5% (pyraminx) and 0.2% (FTO). These models have seen only a handful of real puzzles.

Results on real photos are not published yet.

Training data

Synthetic only: about 127,000 3D renders (1280×720) of 2×2 to 7×7 cubes in randomised rooms, handheld and on tables, with exact labels for the 7 corners and every sticker. Scrambles of every length, views of three faces, of two faces and a sliver, and of exactly two faces, cluttered scenes, and 15,000 frames with no cube. Room backgrounds are CC0 photos from Poly Haven. The training images contain no photographs of people. Camera effects and painted fingers are added at training time. See docs/dataset.md.

The skewb, pyraminx and FTO models were trained on renders made the same way: 20,000 per puzzle held the usual way, and for the pyraminx and FTO another 20,000 turned any way round, with a few thousand rooms without a puzzle for the corner models. These renders aren't in the published dataset yet.

Training

Each model starts from its parent's weights. c7: from c5b, finder 8 epochs and refiner 20 on one RTX 4090 (about 1.5 hours). r4: from r3 (itself from the 3×3 reader r2), on an Apple M-series laptop, about 2 hours a stage. The puzzle models: corner networks on one rented RTX 3090, readers on the laptop (about 45 minutes each). Cube commands: docs/training.md.

Intended use and limitations

  • Helps a scrambler double-check a scramble. Not an official WCA tool, and not a replacement for the scrambler's own check.
  • Skewb, pyraminx and FTO are experimental: treat a verdict as a second opinion. See docs/other-puzzles.md.
  • Standard WCA colour scheme. Stickerless cubes and unusual colour schemes are untested.
  • Trained on renders: accuracy on real webcams, under strongly coloured light or with heavy motion blur may be lower.
  • Needs a corner of the cube toward the camera (three faces), or two faces on 3×3 and bigger. 6×6 and 7×7 stickers are small, so the cube has to be close: farther away the check says "re-check".

Licence

AGPL-3.0, like the code. If you use these weights in a service that people use over a network, share its source with them.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · pytorch

Нельзя запустить

Библиотека «pytorch» рантаймом не поддерживается.

Ревизия весов
d571c20

0 моделей