Image2Gcode: Image-to-G-code Generation for Additive Manufacturing Using Diffusion-Transformer Model
Ziyue Wang, Yayati Jadhav, Peter Pak, and Amir Barati Farimani

TL;DR
Image2Gcode is a novel framework that directly converts 2D images into G-code for 3D printing, bypassing CAD models, thus enabling faster prototyping and easier access to additive manufacturing.
Contribution
It introduces a diffusion-based model that generates G-code directly from images, eliminating the need for CAD or STL intermediates in additive manufacturing workflows.
Findings
Successfully generates G-code from 2D images with high fidelity.
Reduces design-to-fabrication time significantly.
Supports rapid prototyping from sketches or visual references.
Abstract
Mechanical design and manufacturing workflows conventionally begin with conceptual design, followed by the creation of a computer-aided design (CAD) model and fabrication through material-extrusion (MEX) printing. This process requires converting CAD geometry into machine-readable G-code through slicing and path planning. While each step is well established, dependence on CAD modeling remains a major bottleneck: constructing object-specific 3D geometry is slow and poorly suited to rapid prototyping. Even minor design variations typically necessitate manual updates in CAD software, making iteration time-consuming and difficult to scale. To address this limitation, we introduce Image2Gcode, an end-to-end data-driven framework that bypasses the CAD stage and generates printer-ready G-code directly from images and part drawings. Instead of relying on an explicit 3D model, a hand-drawn or…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdditive Manufacturing and 3D Printing Technologies · Additive Manufacturing Materials and Processes · Manufacturing Process and Optimization
