[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111309":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":12,"contributorsCount":11,"subscribersCount":11,"size":11,"stars1d":11,"stars7d":11,"stars30d":11,"stars90d":11,"forks30d":11,"starsTrendScore":11,"compositeScore":13,"rankGlobal":8,"rankLanguage":8,"license":14,"archived":15,"fork":15,"defaultBranch":16,"hasWiki":15,"hasPages":15,"topics":17,"createdAt":8,"pushedAt":18,"updatedAt":19,"readmeContent":20,"aiSummary":21,"trendingCount":11,"starSnapshotCount":11,"syncStatus":22,"lastSyncTime":23,"discoverSource":24},111309,"AnyGameRenderer","AlayaLab\u002FAnyGameRenderer","AlayaLab",null,"Python",56,0,1,37,"Apache License 2.0",false,"main",[],"2026-10-25 14:38:31","2026-11-16 13:15:42","# AnyGameRenderer: Entity-Consistent Generative Rendering Across Games and an Entity-Level Benchmark\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Falaya-lab.github.io\u002FAnyGameRenderer\u002F\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F%F0%9F%8C%90-Project_Page-2d6cdf\" alt=\"Project Page\">\u003C\u002Fa>&nbsp;\n  \u003Ca href=\"https:\u002F\u002Farxiv.org\u002Fpdf\u002F2610.31466\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FarXiv-Report-b31b1b?logo=arxiv&logoColor=white\" alt=\"Technical Report\">\u003C\u002Fa>&nbsp;\n  \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002FAlayaLab\u002FAnyGameRenderer\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F%F0%9F%A4%97-Model-ffcc00\" alt=\"Model\">\u003C\u002Fa>&nbsp;\n  \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002FAlayaLab\u002FAnyGameRenderer-data\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F%F0%9F%A4%97-Dataset-ff9d00\" alt=\"Dataset\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003C!-- TODO before release: fill in the HF dataset repo in the badges above. -->\n\nAnyGameRenderer takes a crude gameplay recording (the \"programmer art\" agents produce) and a text prompt, and outputs the same gameplay re-rendered in the prompted style, frame-aligned with the input.\n\n## Highlights\n\n- 🎮 **Generalizes across genres:** one checkpoint renders tower defense, auto-battlers, top-down survivors, turn-based battles, kart racing, crowd runners, arena survival, co-op games, and shooters.\n- 🎯 **Keeps entity correspondence:** group counts stay correct, entities appear and disappear on the right frame, and small far-away entities are not lost.\n- 📹 **Its input is plain video:** gray blockouts, colored primitives, semantic maps, wireframes, and coarse mockups all work, with no per-object labels or engine hooks.\n- 🎨 **Any prompted style:** photoreal AAA, LEGO, Ghibli, crayon, synthwave, samurai, candy land … with the characters re-imagined to match.\n- 📊 **Measured at the entity level:** on 59 held-out cases with 753 ground-truth entities, temporal match rises from 50.9 % to 62.9 % and position match from 57.1 % to 61.9 % over the zero-shot base, while the unrendered (4.1 → 2.9 %) and hallucination (52.1 → 46.0 %) rates fall.\n\n## Gallery: One model, every genre\n\nCrude recordings of agent-made games, re-rendered by AnyGameRenderer; left is the input, right is the output.\n\n| | |\n|:--:|:--:|\n| ![](assets\u002Fgallery\u002Fgenre_trenchfire.gif) | ![](assets\u002Fgallery\u002Fgenre_cityroam.gif) |\n| WW1 shooter | Open-city driving |\n| ![](assets\u002Fgallery\u002Fgenre_turbokart.gif) | ![](assets\u002Fgallery\u002Fgenre_elitestriker.gif) |\n| Kart racing | Soccer broadcast |\n| ![](assets\u002Fgallery\u002Fgenre_spinarena.gif) | ![](assets\u002Fgallery\u002Fgenre_aliensurv.gif) |\n| Spinning-top battle | Survivors-like |\n| ![](assets\u002Fgallery\u002Fgenre_wheelfactor.gif) | ![](assets\u002Fgallery\u002Fgenre_fallenangels.gif) |\n| Vehicle combat | Dark fantasy |\n| ![](assets\u002Fgallery\u002Fgenre_yavball.gif) | ![](assets\u002Fgallery\u002Fstyle_ukiyoe.gif) |\n| Fantasy ball sport | Creature battle · ukiyo-e style |\n\n## Quick Start\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FAlayaLab\u002FAnyGameRenderer.git && cd AnyGameRenderer\nbash setup_env.sh && conda activate agr                          # Python 3.10, torch 2.9.1+cu128, transformers 4.57.6 …\nbash download_weights.sh                                         # base weights (~123 GB) + processor files + the LoRA (2.4 GB) -> weights\u002F\nbash run_example.sh                                              # examples\u002F*\u002Fprimitive.mp4 -> examples\u002Fout\u002F*.mp4 (~17 min per clip)\n```\n\nAccept the [MiniMax-H3 Community License](https:\u002F\u002Fhuggingface.co\u002FMiniMaxAI\u002FMiniMax-H3\u002Fblob\u002Fmain\u002FLICENSE) before downloading; each `examples\u002F\u003Cgame>\u002F` (three agent-made games: a WW1 shooter, a third-person heist, and city driving) holds the crude recording, its `spec.json` \u002F `caption.txt`, the original game footage, and the rendered output.\n\n**Your own clip** is three commands:\n\n```bash\npython make_caption.py my_clip\u002Fspec.json -o my_clip\u002Fcaption.txt          # spec -> caption in the training format\necho '{\"name\":\"my_clip\",\"primitive\":\"my_clip\u002Fprimitive.mp4\",\"caption_file\":\"my_clip\u002Fcaption.txt\",\"out\":\"out\u002Fmy_clip.mp4\"}' > jobs.jsonl\nCUDA_VISIBLE_DEVICES=0 python infer.py jobs.jsonl                        # one process per GPU; finished outputs are skipped on re-run\n```\n\nOptions: `--steps 20` `--seed 42` `--blocks_to_swap 40` `--lora ''` (base model) `--lora_multiplier 1.0` `--attn_mode flash3` `--weights DIR` `--processor DIR|HF-id`; output is `out\u002F\u003Cname>.mp4` at 1344×768, 24 fps, with generated audio.\n\n## Inputs and captions\n\n**Crude recording** — an mp4 at 24 fps, 2–15 s (1344×768 recommended; length is snapped down to `17n+5` frames) of pale-gray geometry with one flat, saturated proxy color per character \u002F weapon \u002F vehicle class (red, orange, yellow, yellow-green, green, cyan, blue, purple, magenta), and no HUD, text, or effects.\n\n**Caption** — the easiest way is to give [`skills\u002Fanygamerenderer-caption\u002FSKILL.md`](skills\u002Fanygamerenderer-caption\u002FSKILL.md) to your coding agent and ask it to write the spec and caption for your clip — it inspects the proxy colors, picks the right fields and knows 45 ready-made art styles:\n\n```json\n{\n  \"shape\": \"cylinder\",\n  \"setting\": \"a futuristic indoor training arena: smooth white curved walls, dark teal panels, red floor stripes ...\",\n  \"subjects\": [\n    {\"color\": \"green\", \"desc\": \"the player's own weapon seen in first person: a futuristic assault rifle ...\",\n     \"many\": false, \"motion\": \"locked to the viewpoint, swaying gently with each step\"},\n    {\"color\": \"blue\", \"desc\": \"a rival cadet in a dark-gray combat suit with a visored helmet, carrying a rifle\",\n     \"many\": true, \"motion\": \"moving as recorded\"}\n  ],\n  \"sound\": \"hum of arena ventilation, footsteps on hard flooring, rifle fire echoing\"\n}\n```\n\n## Requirements\n\n| | |\n|---|---|\n| GPU | 1× ≥ 80 GB (peak ≈ 50 GB with the text encoder loaded, ≈ 32 GB during sampling at `--blocks_to_swap 40`). |\n| CPU RAM | ≥ 128 GB (the 66 GB transformer is merged with the LoRA on CPU and swapped blocks stay there). |\n| Disk | 123 GB base weights + 2.4 GB LoRA. |\n| Time | ≈ 17 min per 124-frame clip at 20 steps on H100-class, plus ≈ 6 min of weight loading per process. |\n| Software | Linux, CUDA 12.8 driver, Python 3.10, packages pinned in `requirements.txt`. |\n\n## Notes\n\n- Resolution and length are fixed to what the LoRA was trained on (1344×768, 124 frames); longer clips up to 345 frames run but were not trained for.\n- Generation is deterministic for a given seed, and different seeds change appearance details, not layout.\n- `third_party\u002Fmusubi_tuner` is [kohya-ss\u002Fmusubi-tuner](https:\u002F\u002Fgithub.com\u002Fkohya-ss\u002Fmusubi-tuner) at commit `c4dc6b8` (its MiniMax-H3 branch); `infer.py` always imports this copy, so an installed musubi-tuner is neither needed nor used.\n\n## Citation\n\n```bibtex\n@article{liu2026anygamerenderer,\n  title={AnyGameRenderer: Entity-Consistent Generative Rendering Across Games and an Entity-Level Benchmark},\n  author={Liu, Ruicong and Ouyang, Liangyang and Lan, Fengbo and Wang, Zhixiang and Zhang, Kaipeng},\n  journal={arXiv preprint arXiv:2610.31466},\n  year={2026}\n}\n```\n","AnyGameRenderer 是一个面向游戏开发的生成式视频重渲染模型，能将低质量的游戏录屏（如程序员艺术、线框图或语义图）按文本提示转换为风格一致的高质量视频，保持帧级对齐与实体时空一致性。其核心能力包括跨游戏类型泛化（覆盖塔防、赛车、射击等十余种玩法）、无需逐对象标注的纯视频输入支持，以及细粒度的实体级保真评估。适用于游戏原型快速可视化、AI代理行为演示美化、多风格A\u002FB测试及教育类游戏内容生成等场景。",2,"2026-11-24 04:40:47","CREATED_QUERY"]