Datasets:
Publish 3dcodebench in Lance format
#1
by tsmithv11 - opened
Files changed (28)
- .gitattributes+5
- README.md+65-248
- lance/evaluation.lance/_transactions/0-3582b03e-c616-4d55-aeac-b4b06ba7dd8a.txnAdded
- lance/evaluation.lance/_versions/18446744073709551614.manifestAdded
- lance/evaluation.lance/_versions/latest_version_hint.jsonAdded+1
- lance/evaluation.lance/data/0000111111101101001000118c71724dee95549756b9fd8993.lanceAdded+3
- lance/original_files.lance/_indices/4a639c0c-300c-460a-85ba-6e5a4958869e/page_data.lanceAdded+3
- lance/original_files.lance/_indices/4a639c0c-300c-460a-85ba-6e5a4958869e/page_lookup.lanceAdded
- lance/original_files.lance/_transactions/0-935a10a2-9530-4f23-aec0-053e1f2ab082.txnAdded
- lance/original_files.lance/_transactions/1-d8208236-95ba-4a1d-9f68-e67685a43804.txnAdded
- lance/original_files.lance/_versions/18446744073709551613.manifestAdded
- lance/original_files.lance/_versions/18446744073709551614.manifestAdded
- lance/original_files.lance/_versions/latest_version_hint.jsonAdded+1
- lance/original_files.lance/data/101010100010100010010110af59924536b95dfcc731399852.lanceAdded+3
- lance/train.lance/_indices/ce5b58ac-a574-4fe2-bb40-266717dfdb41/auxiliary.idxAdded+3
- lance/train.lance/_indices/ce5b58ac-a574-4fe2-bb40-266717dfdb41/index.idxAdded
- lance/train.lance/_transactions/0-656fc7b4-fc87-48f1-90ff-74d7487ea93a.txnAdded
- lance/train.lance/_transactions/1-f0b6da0f-2c5e-46ee-9e2b-f954e133f7fa.txnAdded
- lance/train.lance/_versions/18446744073709551613.manifestAdded
- lance/train.lance/_versions/18446744073709551614.manifestAdded
- lance/train.lance/_versions/latest_version_hint.jsonAdded+1
- lance/train.lance/data/010111001001011100010000ef4bdd4f31aefe4a9265f3a5a6.lanceAdded+3
- licenses/Infinigen-BSD-3-Clause.txtAdded+28
- licenses/MIT.txtAdded+22
- metadata/release.jsonAdded+62
- source/README.mdAdded+286
- source/original-gitattributes.txtAdded
- viewer/evaluation.parquetAdded+3
23942 unmodified lines23943239442394523942 unmodified lines3DCodeData/Scallop_053/Scallop_053_geo.glb filter=lfs diff=lfs merge=lfs -text3DCodeData/Scallop_057/Scallop_057_geo.glb filter=lfs diff=lfs merge=lfs -text3DCodeData/Scallop_058/Scallop_058_geo.glb filter=lfs diff=lfs merge=lfs -text23942 unmodified lines239432394423945239462394723948239492395023942 unmodified lines3DCodeData/Scallop_053/Scallop_053_geo.glb filter=lfs diff=lfs merge=lfs -text3DCodeData/Scallop_057/Scallop_057_geo.glb filter=lfs diff=lfs merge=lfs -text3DCodeData/Scallop_058/Scallop_058_geo.glb filter=lfs diff=lfs merge=lfs -textlance/evaluation.lance/data/0000111111101101001000118c71724dee95549756b9fd8993.lance filter=lfs diff=lfs merge=lfs -textlance/original_files.lance/_indices/4a639c0c-300c-460a-85ba-6e5a4958869e/page_data.lance filter=lfs diff=lfs merge=lfs -textlance/original_files.lance/data/101010100010100010010110af59924536b95dfcc731399852.lance filter=lfs diff=lfs merge=lfs -textlance/train.lance/_indices/ce5b58ac-a574-4fe2-bb40-266717dfdb41/auxiliary.idx filter=lfs diff=lfs merge=lfs -textlance/train.lance/data/010111001001011100010000ef4bdd4f31aefe4a9265f3a5a6.lance filter=lfs diff=lfs merge=lfs -text
12341 unmodified line6789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286---license: mitlanguage:- en1 unmodified line- text-to-3d- image-to-3dtags:- procedural-3d- blender- code-generation- benchmarksize_categories:- 10K<n<100Kconfigs:- config_name: 3DCodeDatadata_files:- split: trainpath: "3DCodeData/data/train.parquet"---<p align="center"><img src="assets/logo.png" alt="3DCodeBench" width="800"/></p>| Project page | Paper | Code ||---|---|---|| [3dcodebench.com](https://www.3dcodebench.com) | [arXiv:2606.01057](https://arxiv.org/abs/2606.01057) | [gaoypeng/3dcodebench](https://github.com/gaoypeng/3dcodebench) |## News- [06/01/2026] Paper released on arXiv: [3DCodeBench: Benchmarking Agentic Procedural 3D Modeling Via Code](https://arxiv.org/abs/2606.01057).> **Note.** This is an open-source reproduction of 3DCodeBench.> **⚠️ Under final check.** The `3DCodeData/` code is still undergoing final> quality review and may contain occasional issues (non-executable scripts, mismatched> captions/renders, or imperfect geometry). If you run into anything off, please> [open an issue](https://github.com/gaoypeng/3dcodebench/issues) or reach out —> reports are very welcome and help us fix things faster.Datasets backing [**3DCodeBench**](https://www.3dcodebench.com), an academicbenchmark for *procedural* 3D modelling via code: a model writes Blender 5.0Python that, when executed, builds a specific 3D object.3DCodeBench and 3DCodeData build on the[Infinigen](https://github.com/princeton-vl/infinigen) procedural generationecosystem. The benchmark categories and data corpus are distilled fromInfinigen / Infinigen Indoors procedural assets, then converted into standaloneBlender 5.0 scripts. If you use this dataset, please cite 3DCodeBench and therelevant Infinigen works listed below.Four folders:| Folder | What | Use it for ||---|---|---|| `3DCodeBench/` | The eval set: 212 categories, one canonical seed each. Each entry is a reference factory + two text prompts. | Reproducing benchmark numbers; running [tasks/](https://github.com/gaoypeng/3dcodebench/tree/main/tasks). || `3DCodeData/` | A broader collection: 212 factories × 60 seeds = **12,720 instances**. Each ships **two self-contained Blender 5.0 scripts** (a full-material version and a geometry-only `_geo.py`), **2 caption variants**, **4 WebP multi-view renders**, and exported meshes — a baked **textured GLB** plus a **white-mode geometry GLB** for shape scoring. The viewer above previews this folder. | Training / SFT / instruction-tuning data; broader analyses; Chamfer / Uni3D scoring against the white-mode geometry GLB. || `3DCodeBench_ModelLogs/` | The **main** raw inference logs of the evaluated LLMs / VLMs and coding agents on the benchmark: model-written Blender scripts, the exact prompts sent, per-call metadata (tokens, cost, latency, status), plus **full coding-agent transcripts** — across text-to-3D, image-to-3D, and the reported settings. Code + prompts + logs only (no meshes/renders). | Studying model / agent behavior; error analysis; cost/latency comparisons; reproducing the leaderboard. || `3DCodeBench_extra_ablation_logs/` | **Extra** ablation experiment logs beyond the main leaderboard dump: curation, contamination, held-out categories, structural metrics, harness variants, interactive feedback, and track split. Archives include meshes and renders. | Reproducing the extra ablations; inspecting per-run meshes and writeups. |## A sample of 3DCodeDataSixteen factories drawn at random; each row in the viewer above correspondsto one seed instance, with the canonical preview render, the Blender 5.0 Pythonthat generates it, two caption variants, and the code.## How the data was builtEach `<Name>_<NNN>.py` is a self-contained Blender 5.0 script distilled from[Infinigen](https://github.com/princeton-vl/infinigen), with per-seed randomizedparameters and no external dependencies (the scripts run standalone — no`infinigen` import). Every instance comes in two flavors: the full-material`<Name>_<NNN>.py` and a geometry-only `<Name>_<NNN>_geo.py`. The two captionvariants come from an LLM caption pass (Gemini 3.5 Flash with multi-view image +code input); renders are produced by running the factory in Blender 5.0 andcapturing four canonical camera angles. Two meshes are exported: a baked**textured** `<Name>_<NNN>.glb`, and a **white-mode** `<Name>_<NNN>_geo.glb`(geometry only, no materials) that serves as the ground-truth mesh for Chamfer /Uni3D scoring.## ViewerThe viewer (top of this page) is configured to browse `3DCodeData/` --each row is one seed instance with preview image + code + captions.---# 📁 `3DCodeBench/`*The eval set — layout below.*```3DCodeBench/└── <Category>_seed0/├── <Category>_seed0.py ← reference Blender 5.0 factory (ground truth)├── prompt_description.txt ← short, single-paragraph caption└── prompt_instruction.txt ← long, structured spec``````bashhuggingface-cli download YipengGao/3DCodeBench \--repo-type dataset --include "3DCodeBench/*" --local-dir benchmarkmv benchmark/3DCodeBench benchmark/categories```---# 📁 `3DCodeData/`*The 12,720-instance corpus — layout below.*```3DCodeData/├── data/│ └── train.parquet ← viewer + fast SFT path; preview + code + captions└── <Name>_<NNN>/ ← e.g. Beetle_000, AgaveMonocot_042, ...├── <Name>_<NNN>.py ← full-material Blender 5.0 instance script├── <Name>_<NNN>_geo.py ← geometry-only script (no materials)├── <Name>_<NNN>.glb ← baked textured mesh├── <Name>_<NNN>_geo.glb ← white-mode geometry mesh (for shape scoring)├── captions/│ ├── caption_object.txt ← visual description of this instance│ └── caption_create_3D_object.txt ← instruction to reproduce this instance└── renders/├── Image_005.webp├── Image_015.webp├── Image_025.webp└── Image_035.webp```---# 📁 `3DCodeBench_ModelLogs/`*Raw model / agent inference logs — layout below.*The raw inference logs of **12 models** plus tool-using **coding agents** on the benchmark —model-written Blender scripts, the exact prompts sent, and per-call metadata — packed into**one parquet per setting** under `data/`. Full agent stdout transcripts live under`agent_logs/`, superseded early runs under `deprecated/`, and shared task inputs (textdescriptions + 4-view reference images) under `inputs/`.**The generated code is stored in the `code` column of the parquet files** (one row = onetrial), not as loose `.py` files — recover any script with `pd.read_parquet(...)` then`row.code`. In total this release contains **82,042 trials → 81,605 generated Blenderscripts** (≈ 87,900 counting every retained multi-turn / visual-feedback attempt, kept in`attempt_codes`), plus **2,767** full coding-agent transcripts.```3DCodeBench_ModelLogs/├── data/ ← one parquet per setting (code + prompt + metadata)│ ├── text_to_3D.parquet ← columns: model, instance, prompt, code,│ ├── image_to_3D.parquet status, *_tokens, cost_usd, latency_s, …│ └── … (16 settings)├── agent_logs/ ← raw coding-agent transcripts (2767 runs)│ └── <setting>/<model>/<Object>_seed0/│ ├── agent_stdout.log ← full agent trajectory (tool calls, turns, output)│ ├── agent_meta.json ← num_turns, cost, tokens, duration, exit code│ └── agent_prompt.txt ← the task prompt handed to the agent├── deprecated/ ← superseded / broken early runs (3 parquets, do not score)└── inputs/ ← shared task inputs (212 objects)└── <Object>_seed0/├── prompt_description.txt ← text-to-3D input (natural-language description)├── prompt_instruction.txt ← long structured spec└── images/Image_0{05,15,25,35}.png ← image-to-3D input (4 ground-truth views)```**Where is everything:**| You want… | Where it is ||---|---|| **Output code** (model-generated script) | `code` column of `data/<setting>.parquet` — one row per trial || Each multi-turn / visual-feedback attempt | `attempt_codes` column (JSON string → `list[str]`) || The exact prompt sent | `prompt` column || **Text input** (description / spec) | `inputs/<Object>_seed0/prompt_description.txt` · `prompt_instruction.txt` || **Image input** (4 reference views) | `inputs/<Object>_seed0/images/Image_0{05,15,25,35}.png` || Coding-agent full transcript | `agent_logs/<setting>/<model>/<Object>_seed0/agent_stdout.log` |Every setting shares **28 columns** (the two `*_agent` settings add 4 more). Multi-turn /visual-feedback settings keep each attempt's code in the `attempt_codes` column (a**JSON-encoded string** — `json.loads(...)` → `list[str]`); `*_agent` settings add `num_turns`,`agent_exit`, `time_limit_s`, `max_budget` and keep the verbatim trajectory under `agent_logs/`.Not every metadata column is populated for every row (coverage varies by provider/setting), but`prompt` / `code` / `status` / token counts always are. See`3DCodeBench_ModelLogs/README.md` for the full column reference.| Setting | Description ||---|---|| `text_to_3D`, `image_to_3D` | Main settings. 12 models × 212 objects. || `*_agent` | Agentic (tool-using) variants. Full transcripts under `agent_logs/`. || `*_multi_turn_debug` | Multi-turn self-debug from runtime errors. || `*_with_api_doc` | Prompt augmented with a Blender 5.0 API reference. || `*_visual_feedback*` | Iterative refinement from rendered feedback. || `image_to_3D_from_nbp*` | Reference image generated by Nano-Banana-Pro instead of ground-truth renders. || `thinking_ablation` | Sweep over reasoning-effort levels. || `temperature_ablation` | Sweep over sampling temperature. || `images_amount_ablation` | Sweep over number of input views (N=1..4). |**Models:** claude-opus-4-7, claude-sonnet-4-6, claude-haiku-4-5, gpt-5.5, gpt-5.4,gpt-5.4-mini, gpt-5.4-nano, gemini-3.1-pro-preview, gemini-3-flash-preview,gemini-3.5-flash, gemini-3.1-flash-lite-preview, gemini-2.5-pro (ablations alsoinclude gemma and antigravity variants).```pythonimport pandas as pdfrom huggingface_hub import hf_hub_downloadf = hf_hub_download("YipengGao/3DCodeBench", "3DCodeBench_ModelLogs/data/text_to_3D.parquet",repo_type="dataset")df = pd.read_parquet(f) # columns include: model, instance, prompt, code,# status, total_tokens, cost_usd, latency_s, …``````bashhuggingface-cli download YipengGao/3DCodeBench \--repo-type dataset --include "3DCodeBench_ModelLogs/**" --local-dir model_logs```## Loading with `datasets````pythonfrom datasets import load_datasetds = load_dataset("YipengGao/3DCodeBench", "3DCodeData", split="train")print(ds.column_names)# ['factory', 'preview', 'caption_object', 'caption_create_3D_object', 'code', 'code_geo']# 'code' = full-material script; 'code_geo' = geometry-only script# Filter by factory family:beetles = ds.filter(lambda x: x['factory'].startswith('Beetle_'))print(f"{len(beetles)} beetle seeds")# Pull the white-mode geometry mesh for a row (used for Chamfer / Uni3D):from huggingface_hub import hf_hub_downloadfac = ds[0]['factory']mesh_path = hf_hub_download(repo_id='YipengGao/3DCodeBench', repo_type='dataset',filename=f'3DCodeData/{fac}/{fac}_geo.glb')```## CitationPlease cite 3DCodeBench, and also cite the Infinigen works that the proceduralasset library is based on:```bibtex@misc{gao2026threedcodebench,title = {3DCodeBench: Benchmarking Agentic Procedural 3D Modeling Via Code},author = {Gao, Yipeng and Shu, Lei and Ye, Genzhi and Xiong, Xi andMakadia, Ameesh and Guo, Meiqi and Itti, Laurent and Chen, Jindong},year = {2026},eprint = {2606.01057},archivePrefix = {arXiv},primaryClass = {cs.CV},url = {https://arxiv.org/abs/2606.01057}}@inproceedings{infinigen2023infinite,title={Infinite Photorealistic Worlds Using Procedural Generation},author={Raistrick, Alexander and Lipson, Lahav and Ma, Zeyu and Mei, Lingjie and Wang, Mingzhe and Zuo, Yiming and Kayan, Karhan and Wen, Hongyu and Han, Beining and Wang, Yihan and Newell, Alejandro and Law, Hei and Goyal, Ankit and Yang, Kaiyu and Deng, Jia},booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},pages={12630--12641},year={2023}}@inproceedings{infinigen2024indoors,author = {Raistrick, Alexander and Mei, Lingjie and Kayan, Karhan and Yan, David and Zuo, Yiming and Han, Beining and Wen, Hongyu and Parakh, Meenal and Alexandropoulos, Stamatis and Lipson, Lahav and Ma, Zeyu and Deng, Jia},title = {Infinigen Indoors: Photorealistic Indoor Scenes using Procedural Generation},booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},month = {June},year = {2024},pages = {21783-21794}}```## LicenseFactory scripts retain Infinigen's BSD-3-Clause license. Captions, renders,GLBs, and the benchmark split are released under MIT.## Related- Project page: <https://www.3dcodebench.com>- Paper: <https://arxiv.org/abs/2606.01057>- Code: <https://github.com/gaoypeng/3dcodebench>123451 unmodified line789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103---pretty_name: 3DCodeBench in Lancelicense: mitlanguage:- en1 unmodified line- text-to-3d- image-to-3dtags:- lance- lance-format- vector-search- procedural-3d- blender- benchmarksize_categories:- 10K<n<100Kconfigs:- config_name: 3DCodeDatadefault: truedata_files:- split: trainpath: 3DCodeData/data/train.parquet- config_name: 3DCodeBenchdata_files:- split: evaluationpath: viewer/evaluation.parquet---# 3DCodeBench in LanceSearch for procedural Blender assets by their English descriptions and read the original meshes, renders, or code through Lance. The release is derived from [YipengGao/3DCodeBench at `b9ebb35`](https://huggingface.co/datasets/YipengGao/3DCodeBench/tree/b9ebb354234efcec00573e31917a07fe11603742).## Data and splits| Lance table | Rows | Contents ||---|---:|---|| `lance/train.lance` | 12,963 | Entire original `3DCodeData/train` split with its six original fields and a caption vector. The source Parquet includes 12,720 seeded instances and 243 unseeded factory entries. || `lance/evaluation.lance` | 212 | One row for each original benchmark case with both exact prompt texts, reference factory code, source paths, and a prompt vector. || `lance/original_files.lance` | 162,624 | Native Blob v2 references to every original file, with original paths, file sizes, and Git or LFS digests. This covers meshes, renders, captions, Blender scripts, raw inference logs, and ablation archives. |All source payloads are preserved byte for byte in the same Hub repository. The card and original Git attributes are archived under `source/` because the repository needs its own card and storage rules. The original source Parquet file and a Parquet export of the evaluation cases provide Data Studio previews. [File and table metadata](metadata/release.json) · [Preserved source card](source/README.md)## Search with PythonThis release generates normalized 256-dimensional `float32` vectors from the original English `caption_object` field in train and `prompt_description` in evaluation. It uses the first 256 Matryoshka dimensions of `sentence-transformers/static-retrieval-mrl-en-v1` at revision `f60985c706f192d45d218078e49e5a8b6f15283a`. The compatible query encoder uses the same model. The training index uses cosine distance. The example prints cosine similarity, asset ID, render path, and a caption excerpt for five matches. [Pinned model](https://huggingface.co/sentence-transformers/static-retrieval-mrl-en-v1/tree/f60985c706f192d45d218078e49e5a8b6f15283a)```bashpip install 'pylance>=14.0.3' 'sentence-transformers>=6.3.0' 'huggingface_hub>=2.4.0'``````pythonimport lancefrom huggingface_hub import HfApifrom sentence_transformers import SentenceTransformerrepo = "lance-format/3dcodebench-lance"revision = HfApi(token=False).dataset_info(repo, token=False, expand=["sha"]).shabase = f"hf://datasets/{repo}"options = {"hf_revision": revision}data = lance.dataset(f"{base}/lance/train.lance", storage_options=options)encoder = SentenceTransformer("sentence-transformers/static-retrieval-mrl-en-v1",revision="f60985c706f192d45d218078e49e5a8b6f15283a",truncate_dim=256,device="cpu",)query = "A desert agave succulent with a rosette of thick pointed fleshy green leaves."vector = encoder.encode_query(query, normalize_embeddings=True)hits = data.to_table(columns=["factory", "preview", "caption_object", "_distance"],nearest={"column": "caption_embedding", "q": vector, "metric": "cosine", "k": 5},).to_pylist()for hit in hits:caption = " ".join(hit["caption_object"].split())[:120]print(f"{1 - hit['_distance']:.4f} {hit['factory']} {hit['preview']} {caption}")```The `preview` value is the original relative render path. Prefix it with `3DCodeData/` to look it up in `original_files.lance`. To verify range access, this example reads the header of the original agave GLB without downloading the rest of the mesh.```pythonfiles = lance.dataset(f"{base}/lance/original_files.lance",storage_options=options,base_store_params={base: options},)row, = files.to_table(filter="source_path = '3DCodeData/AgaveMonocotFactory/AgaveMonocotFactory.glb'",columns=["source_path", "size_bytes"],with_row_id=True,).to_pylist()with files.take_blobs("payload", ids=[row["_rowid"]])[0] as mesh:header = mesh.read(12)assert header[:4] == b"glTF"assert int.from_bytes(header[8:12], "little") == row["size_bytes"]print(row["source_path"], row["size_bytes"])```## License and attributionThe upstream dataset declares MIT for the data, with Infinigen factory scripts retaining BSD 3-Clause. The conversion adds vector, structured-data, and byte-reference tables and preserves the original file contents and creator attribution. [MIT license](licenses/MIT.txt) · [Princeton University Infinigen BSD 3-Clause license](licenses/Infinigen-BSD-3-Clause.txt)Credit Yipeng Gao, Lei Shu, Genzhi Ye, Xi Xiong, Ameesh Makadia, Meiqi Guo, Laurent Itti, and Jindong Chen for 3DCodeBench and the Princeton Vision & Learning Lab authors for Infinigen and Infinigen Indoors. The preserved source card contains the three original citations. [3DCodeBench paper](https://arxiv.org/abs/2606.01057) · [Infinigen source](https://github.com/princeton-vl/infinigen)
1{"version":1}123version https://git-lfs.github.com/spec/v1oid sha256:5d3d5311505bc675ecd8b4be3db104a7c5da33077790d0ffc4c1b55c4027cb72size 1473168123version https://git-lfs.github.com/spec/v1oid sha256:c77d6d0715bfab07ef0385c8a902e70b726e203314c0157fe6b6b1ba2944db6esize 42983111{"version":2}123version https://git-lfs.github.com/spec/v1oid sha256:36a777067c700168d85844f8dba7cd8f6b802930e5b7206e98cca86445c45dd4size 24704211123version https://git-lfs.github.com/spec/v1oid sha256:03c0559c03f2c6273d79296bd5194c3788d3254e531869424c082cd9f9f13d57size 132975431{"version":2}123version https://git-lfs.github.com/spec/v1oid sha256:dca9924ff8a0b0b076b5b3ec635e854085ce76f275e45a672d33f31b570ba694size 21934142912345678910111213141516171819202122232425262728BSD 3-Clause License
Copyright (c) 2023, Princeton University
Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AREDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLEFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIALDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ORSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVERCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USEOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.12345678910111213141516171819202122MIT License
Copyright and attribution for the original data are identified in source/README.mdand the notices distributed with the original files.
Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162{ "source": "YipengGao/3DCodeBench", "revision": "b9ebb354234efcec00573e31917a07fe11603742", "paths": 162624, "logical_bytes": 267798181624, "unique_lfs_objects": 69352, "unique_lfs_bytes": 228259722119, "files_by_root": { ".gitattributes": 1, "3DCodeBench": 636, "3DCodeBench_ModelLogs": 16110, "3DCodeBench_extra_ablation_logs": 39, "3DCodeData": 145833, "README.md": 1, "assets": 4 }, "bytes_by_root": { ".gitattributes": 2014911, "3DCodeBench": 4398687, "3DCodeBench_ModelLogs": 2270635052, "3DCodeBench_extra_ablation_logs": 13692323416, "3DCodeData": 251826099616, "README.md": 13928, "assets": 2696014 }, "tables": { "3DCodeData/train": 12963, "3DCodeBench/evaluation": 212, "source_files": 162624 }, "train_factory_counts": { "unseeded_factories": 243, "seeded_instances": 12720 }, "viewer": { "3DCodeData/data/train.parquet": { "rows": 12963, "sha256": "f5655cebf10ca5646dd2a24ef12fb9200eaa64ccdd88d6ce9626d3c773a3df28" }, "viewer/evaluation.parquet": { "rows": 212, "sha256": "e6d0763f99cd36bb9e967d53cd11c4575effbc430d0c0418767d251cde2562ad" } }, "license": { "dataset": "MIT", "factory_scripts": "BSD-3-Clause" }, "search": { "fields": [ "caption_object", "prompt_description" ], "model": "sentence-transformers/static-retrieval-mrl-en-v1", "revision": "f60985c706f192d45d218078e49e5a8b6f15283a", "dimensions": 256, "metric": "cosine", "data_type": "float32", "normalization": "L2" }, "mirror_range_sample": "3DCodeData/AgaveMonocotFactory/AgaveMonocotFactory.glb"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286---license: mitlanguage:- entask_categories:- text-to-3d- image-to-3dtags:- procedural-3d- blender- code-generation- benchmarksize_categories:- 10K<n<100Kconfigs:- config_name: 3DCodeData data_files: - split: train path: "3DCodeData/data/train.parquet"---
<p align="center"> <img src="assets/logo.png" alt="3DCodeBench" width="800"/></p>
| Project page | Paper | Code ||---|---|---|| [3dcodebench.com](https://www.3dcodebench.com) | [arXiv:2606.01057](https://arxiv.org/abs/2606.01057) | [gaoypeng/3dcodebench](https://github.com/gaoypeng/3dcodebench) |
## News
- [06/01/2026] Paper released on arXiv: [3DCodeBench: Benchmarking Agentic Procedural 3D Modeling Via Code](https://arxiv.org/abs/2606.01057).
> **Note.** This is an open-source reproduction of 3DCodeBench.
> **⚠️ Under final check.** The `3DCodeData/` code is still undergoing final> quality review and may contain occasional issues (non-executable scripts, mismatched> captions/renders, or imperfect geometry). If you run into anything off, please> [open an issue](https://github.com/gaoypeng/3dcodebench/issues) or reach out —> reports are very welcome and help us fix things faster.
Datasets backing [**3DCodeBench**](https://www.3dcodebench.com), an academicbenchmark for *procedural* 3D modelling via code: a model writes Blender 5.0Python that, when executed, builds a specific 3D object.
3DCodeBench and 3DCodeData build on the[Infinigen](https://github.com/princeton-vl/infinigen) procedural generationecosystem. The benchmark categories and data corpus are distilled fromInfinigen / Infinigen Indoors procedural assets, then converted into standaloneBlender 5.0 scripts. If you use this dataset, please cite 3DCodeBench and therelevant Infinigen works listed below.

Four folders:
| Folder | What | Use it for ||---|---|---|| `3DCodeBench/` | The eval set: 212 categories, one canonical seed each. Each entry is a reference factory + two text prompts. | Reproducing benchmark numbers; running [tasks/](https://github.com/gaoypeng/3dcodebench/tree/main/tasks). || `3DCodeData/` | A broader collection: 212 factories × 60 seeds = **12,720 instances**. Each ships **two self-contained Blender 5.0 scripts** (a full-material version and a geometry-only `_geo.py`), **2 caption variants**, **4 WebP multi-view renders**, and exported meshes — a baked **textured GLB** plus a **white-mode geometry GLB** for shape scoring. The viewer above previews this folder. | Training / SFT / instruction-tuning data; broader analyses; Chamfer / Uni3D scoring against the white-mode geometry GLB. || `3DCodeBench_ModelLogs/` | The **main** raw inference logs of the evaluated LLMs / VLMs and coding agents on the benchmark: model-written Blender scripts, the exact prompts sent, per-call metadata (tokens, cost, latency, status), plus **full coding-agent transcripts** — across text-to-3D, image-to-3D, and the reported settings. Code + prompts + logs only (no meshes/renders). | Studying model / agent behavior; error analysis; cost/latency comparisons; reproducing the leaderboard. || `3DCodeBench_extra_ablation_logs/` | **Extra** ablation experiment logs beyond the main leaderboard dump: curation, contamination, held-out categories, structural metrics, harness variants, interactive feedback, and track split. Archives include meshes and renders. | Reproducing the extra ablations; inspecting per-run meshes and writeups. |
## A sample of 3DCodeData

Sixteen factories drawn at random; each row in the viewer above correspondsto one seed instance, with the canonical preview render, the Blender 5.0 Pythonthat generates it, two caption variants, and the code.
## How the data was built

Each `<Name>_<NNN>.py` is a self-contained Blender 5.0 script distilled from[Infinigen](https://github.com/princeton-vl/infinigen), with per-seed randomizedparameters and no external dependencies (the scripts run standalone — no`infinigen` import). Every instance comes in two flavors: the full-material`<Name>_<NNN>.py` and a geometry-only `<Name>_<NNN>_geo.py`. The two captionvariants come from an LLM caption pass (Gemini 3.5 Flash with multi-view image +code input); renders are produced by running the factory in Blender 5.0 andcapturing four canonical camera angles. Two meshes are exported: a baked**textured** `<Name>_<NNN>.glb`, and a **white-mode** `<Name>_<NNN>_geo.glb`(geometry only, no materials) that serves as the ground-truth mesh for Chamfer /Uni3D scoring.
## Viewer
The viewer (top of this page) is configured to browse `3DCodeData/` --each row is one seed instance with preview image + code + captions.
---
# 📁 `3DCodeBench/`*The eval set — layout below.*
```3DCodeBench/└── <Category>_seed0/ ├── <Category>_seed0.py ← reference Blender 5.0 factory (ground truth) ├��─ prompt_description.txt ← short, single-paragraph caption └── prompt_instruction.txt ← long, structured spec```
```bashhuggingface-cli download YipengGao/3DCodeBench \ --repo-type dataset --include "3DCodeBench/*" --local-dir benchmarkmv benchmark/3DCodeBench benchmark/categories```
---
# 📁 `3DCodeData/`*The 12,720-instance corpus — layout below.*
```3DCodeData/├── data/│ └── train.parquet ← viewer + fast SFT path; preview + code + captions└── <Name>_<NNN>/ ← e.g. Beetle_000, AgaveMonocot_042, ... ├── <Name>_<NNN>.py ← full-material Blender 5.0 instance script ├── <Name>_<NNN>_geo.py ← geometry-only script (no materials) ├── <Name>_<NNN>.glb ← baked textured mesh ├── <Name>_<NNN>_geo.glb ← white-mode geometry mesh (for shape scoring) ├── captions/ │ ├── caption_object.txt ← visual description of this instance │ └── caption_create_3D_object.txt ← instruction to reproduce this instance └── renders/ ├── Image_005.webp ├── Image_015.webp ├── Image_025.webp └── Image_035.webp```
---
# 📁 `3DCodeBench_ModelLogs/`*Raw model / agent inference logs — layout below.*
The raw inference logs of **12 models** plus tool-using **coding agents** on the benchmark —model-written Blender scripts, the exact prompts sent, and per-call metadata — packed into**one parquet per setting** under `data/`. Full agent stdout transcripts live under`agent_logs/`, superseded early runs under `deprecated/`, and shared task inputs (textdescriptions + 4-view reference images) under `inputs/`.
**The generated code is stored in the `code` column of the parquet files** (one row = onetrial), not as loose `.py` files — recover any script with `pd.read_parquet(...)` then`row.code`. In total this release contains **82,042 trials → 81,605 generated Blenderscripts** (≈ 87,900 counting every retained multi-turn / visual-feedback attempt, kept in`attempt_codes`), plus **2,767** full coding-agent transcripts.
```3DCodeBench_ModelLogs/├── data/ ← one parquet per setting (code + prompt + metadata)│ ├── text_to_3D.parquet ← columns: model, instance, prompt, code,│ ├── image_to_3D.parquet status, *_tokens, cost_usd, latency_s, …│ └── … (16 settings)├── agent_logs/ ← raw coding-agent transcripts (2767 runs)│ └── <setting>/<model>/<Object>_seed0/│ ├── agent_stdout.log ← full agent trajectory (tool calls, turns, output)│ ├── agent_meta.json ← num_turns, cost, tokens, duration, exit code│ └── agent_prompt.txt ← the task prompt handed to the agent├── deprecated/ ← superseded / broken early runs (3 parquets, do not score)└── inputs/ ← shared task inputs (212 objects) └── <Object>_seed0/ ├── prompt_description.txt ← text-to-3D input (natural-language description) ├── prompt_instruction.txt ← long structured spec └── images/Image_0{05,15,25,35}.png ← image-to-3D input (4 ground-truth views)```
**Where is everything:**
| You want… | Where it is ||---|---|| **Output code** (model-generated script) | `code` column of `data/<setting>.parquet` — one row per trial || Each multi-turn / visual-feedback attempt | `attempt_codes` column (JSON string → `list[str]`) || The exact prompt sent | `prompt` column || **Text input** (description / spec) | `inputs/<Object>_seed0/prompt_description.txt` · `prompt_instruction.txt` || **Image input** (4 reference views) | `inputs/<Object>_seed0/images/Image_0{05,15,25,35}.png` || Coding-agent full transcript | `agent_logs/<setting>/<model>/<Object>_seed0/agent_stdout.log` |
Every setting shares **28 columns** (the two `*_agent` settings add 4 more). Multi-turn /visual-feedback settings keep each attempt's code in the `attempt_codes` column (a**JSON-encoded string** — `json.loads(...)` → `list[str]`); `*_agent` settings add `num_turns`,`agent_exit`, `time_limit_s`, `max_budget` and keep the verbatim trajectory under `agent_logs/`.Not every metadata column is populated for every row (coverage varies by provider/setting), but`prompt` / `code` / `status` / token counts always are. See`3DCodeBench_ModelLogs/README.md` for the full column reference.
| Setting | Description ||---|---|| `text_to_3D`, `image_to_3D` | Main settings. 12 models × 212 objects. || `*_agent` | Agentic (tool-using) variants. Full transcripts under `agent_logs/`. || `*_multi_turn_debug` | Multi-turn self-debug from runtime errors. || `*_with_api_doc` | Prompt augmented with a Blender 5.0 API reference. || `*_visual_feedback*` | Iterative refinement from rendered feedback. || `image_to_3D_from_nbp*` | Reference image generated by Nano-Banana-Pro instead of ground-truth renders. || `thinking_ablation` | Sweep over reasoning-effort levels. || `temperature_ablation` | Sweep over sampling temperature. || `images_amount_ablation` | Sweep over number of input views (N=1..4). |
**Models:** claude-opus-4-7, claude-sonnet-4-6, claude-haiku-4-5, gpt-5.5, gpt-5.4,gpt-5.4-mini, gpt-5.4-nano, gemini-3.1-pro-preview, gemini-3-flash-preview,gemini-3.5-flash, gemini-3.1-flash-lite-preview, gemini-2.5-pro (ablations alsoinclude gemma and antigravity variants).
```pythonimport pandas as pdfrom huggingface_hub import hf_hub_downloadf = hf_hub_download("YipengGao/3DCodeBench", "3DCodeBench_ModelLogs/data/text_to_3D.parquet", repo_type="dataset")df = pd.read_parquet(f) # columns include: model, instance, prompt, code, # status, total_tokens, cost_usd, latency_s, …```
```bashhuggingface-cli download YipengGao/3DCodeBench \ --repo-type dataset --include "3DCodeBench_ModelLogs/**" --local-dir model_logs```
## Loading with `datasets`
```pythonfrom datasets import load_datasetds = load_dataset("YipengGao/3DCodeBench", "3DCodeData", split="train")print(ds.column_names)# ['factory', 'preview', 'caption_object', 'caption_create_3D_object', 'code', 'code_geo']# 'code' = full-material script; 'code_geo' = geometry-only script
# Filter by factory family:beetles = ds.filter(lambda x: x['factory'].startswith('Beetle_'))print(f"{len(beetles)} beetle seeds")
# Pull the white-mode geometry mesh for a row (used for Chamfer / Uni3D):from huggingface_hub import hf_hub_downloadfac = ds[0]['factory']mesh_path = hf_hub_download(repo_id='YipengGao/3DCodeBench', repo_type='dataset', filename=f'3DCodeData/{fac}/{fac}_geo.glb')```
## Citation
Please cite 3DCodeBench, and also cite the Infinigen works that the proceduralasset library is based on:
```bibtex@misc{gao2026threedcodebench, title = {3DCodeBench: Benchmarking Agentic Procedural 3D Modeling Via Code}, author = {Gao, Yipeng and Shu, Lei and Ye, Genzhi and Xiong, Xi and Makadia, Ameesh and Guo, Meiqi and Itti, Laurent and Chen, Jindong}, year = {2026}, eprint = {2606.01057}, archivePrefix = {arXiv}, primaryClass = {cs.CV}, url = {https://arxiv.org/abs/2606.01057}}
@inproceedings{infinigen2023infinite, title={Infinite Photorealistic Worlds Using Procedural Generation}, author={Raistrick, Alexander and Lipson, Lahav and Ma, Zeyu and Mei, Lingjie and Wang, Mingzhe and Zuo, Yiming and Kayan, Karhan and Wen, Hongyu and Han, Beining and Wang, Yihan and Newell, Alejandro and Law, Hei and Goyal, Ankit and Yang, Kaiyu and Deng, Jia}, booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition}, pages={12630--12641}, year={2023}}
@inproceedings{infinigen2024indoors, author = {Raistrick, Alexander and Mei, Lingjie and Kayan, Karhan and Yan, David and Zuo, Yiming and Han, Beining and Wen, Hongyu and Parakh, Meenal and Alexandropoulos, Stamatis and Lipson, Lahav and Ma, Zeyu and Deng, Jia}, title = {Infinigen Indoors: Photorealistic Indoor Scenes using Procedural Generation}, booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)}, month = {June}, year = {2024}, pages = {21783-21794}}```
## License
Factory scripts retain Infinigen's BSD-3-Clause license. Captions, renders,GLBs, and the benchmark split are released under MIT.
## Related
- Project page: <https://www.3dcodebench.com>- Paper: <https://arxiv.org/abs/2606.01057>- Code: <https://github.com/gaoypeng/3dcodebench>123version https://git-lfs.github.com/spec/v1oid sha256:e6d0763f99cd36bb9e967d53cd11c4575effbc430d0c0418767d251cde2562adsize 988099.gitattributes+5
README.md+65-248
lance/evaluation.lance/_transactions/0-3582b03e-c616-4d55-aeac-b4b06ba7dd8a.txnAdded
lance/evaluation.lance/_versions/18446744073709551614.manifestAdded
lance/evaluation.lance/_versions/latest_version_hint.jsonAdded+1
lance/evaluation.lance/data/0000111111101101001000118c71724dee95549756b9fd8993.lanceAdded+3
lance/original_files.lance/_indices/4a639c0c-300c-460a-85ba-6e5a4958869e/page_data.lanceAdded+3
lance/original_files.lance/_indices/4a639c0c-300c-460a-85ba-6e5a4958869e/page_lookup.lanceAdded
lance/original_files.lance/_transactions/0-935a10a2-9530-4f23-aec0-053e1f2ab082.txnAdded
lance/original_files.lance/_transactions/1-d8208236-95ba-4a1d-9f68-e67685a43804.txnAdded
lance/original_files.lance/_versions/18446744073709551613.manifestAdded
lance/original_files.lance/_versions/18446744073709551614.manifestAdded
lance/original_files.lance/_versions/latest_version_hint.jsonAdded+1
lance/original_files.lance/data/101010100010100010010110af59924536b95dfcc731399852.lanceAdded+3
lance/train.lance/_indices/ce5b58ac-a574-4fe2-bb40-266717dfdb41/auxiliary.idxAdded+3
lance/train.lance/_indices/ce5b58ac-a574-4fe2-bb40-266717dfdb41/index.idxAdded
lance/train.lance/_transactions/0-656fc7b4-fc87-48f1-90ff-74d7487ea93a.txnAdded
lance/train.lance/_transactions/1-f0b6da0f-2c5e-46ee-9e2b-f954e133f7fa.txnAdded
lance/train.lance/_versions/18446744073709551613.manifestAdded
lance/train.lance/_versions/18446744073709551614.manifestAdded
lance/train.lance/_versions/latest_version_hint.jsonAdded+1
lance/train.lance/data/010111001001011100010000ef4bdd4f31aefe4a9265f3a5a6.lanceAdded+3
licenses/Infinigen-BSD-3-Clause.txtAdded+28
licenses/MIT.txtAdded+22
metadata/release.jsonAdded+62
source/README.mdAdded+286
source/original-gitattributes.txtAdded
viewer/evaluation.parquetAdded+3