Downloads · 30 days
0
Kuro-neko/snake-world-model-pixel-edm-v2
snake-world-model-pixel-edm-v2 is a machine learning model from Kuro-neko. 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 DIAMOND-style pixel-space EDM (Elucidating the Design Space of Diffusion-Based Generative Models) implementation for world modeling in the Snake game environment. This model predicts future game frames conditioned o…
Downloads · 30 days
0
Access
Public
Updated Nov 28, 2025
Repo size
213 MB
Likes
0
Public
Click a slice to open those files.
.pt213 MB · 100%
From the Hugging Face model README
A DIAMOND-style pixel-space EDM (Elucidating the Design Space of Diffusion-Based Generative Models) implementation for world modeling in the Snake game environment. This model predicts future game frames conditioned on previous frames and player actions.
See GitHub repo for train and play code: https://github.com/roastedpotato66/snake-world-modeling
The model uses a DIAMOND-style UNet architecture working directly in pixel space:
(B, 15, 64, 64) - noisy target frame (3 channels) + 4 context frames (12 channels)(B, 3, 64, 64) - denoised next frame predictionUNet Encoder-Decoder
Adaptive Group Normalization
EDM Preconditioning
c_skip * x_noisy + c_out * network(x)Frame Stacking
The simplest way is to directly download the model.pt and create and move it to the output/ folder. Before playing, you will need to generate some data (1k is enough) for initialization. Follow the instructions in the GitHub repository's README.
Use the provided play script in the GitHub:
python scripts/play_pixel_edm.py \
--model_path model.pt \
--data_dir data/images \
--cfg_scale 2.0 \
--steps 3
Controls:
WASD or Arrow Keys - Move snakeR - Reset with new random seed from dataESC - Quit