Downloads · 30 days
0
illegalcall/jepa-track-hidden-ball
jepa-track-hidden-ball is a machine learning model from illegalcall. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as mit.
A small shell-game world model that predicts which cup holds a hidden ball from a single contact-sheet image.
Downloads · 30 days
0
Access
Public
Updated Mar 28, 2026
Repo size
73.1 MB
Likes
1
Public
Click a slice to open those files.
.ckpt72.4 MB · 99%
From the Hugging Face model README
A small shell-game world model that predicts which cup holds a hidden ball from a single contact-sheet image.

serve_demo_ui.pydemo_jepawm_predict.pyThe bundled checkpoint is designed for a shell-game benchmark:
The repo slices a contact sheet into ordered frames, runs the checkpoint locally, and returns the final cup prediction.
Hidden-ball balanced accuracy:
| Setting | Result |
|---|---|
1 swap | 100.0% ± 0.0% |
3 swaps | 74.3% ± 2.9% |
1-2-3-4 swaps | 75.8% ± 2.7% |
1-2-3-4-5 swaps | 74.5% ± 1.2% |
1-2-3-4-5-6 swaps | 73.7% ± 1.1% |
Random chance is 33.3%.
This is not a plain next-step JEPA checkpoint.
The working shell-game variant uses explicit hidden-state supervision during training. Pure next-step JEPA-style prediction did not solve this benchmark.
git clone https://github.com/illegalcall/jepa-track-hidden-ball.git
cd jepa-track-hidden-ball
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
PYTHONPATH=local_inference_assets python3 demo_jepawm_predict.py \
--checkpoint /path/to/lewm_auxonly_123456_h12_epoch_12_object.ckpt \
--sheet demo_cases/case_1/sheet.png \
--history-size 12 \
--device cpu \
--output result.json
python3 serve_demo_ui.py --host 127.0.0.1 --port 8123
Then open:
http://127.0.0.1:8123/demo_ui/
This checkpoint has 18,048,683 trainable parameters.
lewm_auxonly_123456_h12_epoch_12_object.ckptlocal-ui-overview.pnglocal-ui-output-card.png