ShapeCraft: an LLM Multi-agent Pipeline for Synthesizing 3D Shape Programs
Subsequent development will be in shapecode repository.
Install dependencies in a python (recommanded 3.10.16) environment:
pip install -r requirements
for all dependencies
Running experiments:
exp_1_loop.py
: Single Run with Python + Blenderexp_full.py
: Full Pipeline with Python + Blenderexp_scad_single.py
: Single Run with OpenSCADexp_scad_full.py
: Full Pipeline with OpenSCAD
Visualization:
vis_single.py
: examining single run method results folder (can work with full pipeline too, just click into them)
Evaluation:
eval_clip.py
: aggregate and plot clip similaritieseval_vlm.py
: aggregate and plot vlm evaluationseval_for_table.py
: aggregate results and print as pretty tableseval_utils.py
: count OBJ faces and vertexevalexp_iterations.py
: check for improvements over iterations
Auxiliary:
agents.py
: llm agents codechat.py
: apicombine_and_run.py
: combine generated script with our suffix and run to render and export
code_suffix.py
: suffix appended to each generated python script to be executed within blenderrender_stl.py
: import OpenSCAD generated stl file, normalize and render export in blender