Image2Gcode: 基于扩散-变换器模型的图像到G-code生成用于增材制造
Image2Gcode: Image-to-G-code Generation for Additive Manufacturing Using Diffusion-Transformer Model
AI总结:
本文提出Image2Gcode框架,通过图像直接生成可打印的G-code,省去CAD建模步骤,提升增材制造的易用性和效率。
摘要:
机械设计和制造传统上从概念设计开始,接着创建计算机辅助设计(CAD)模型并通过材料挤出(MEX)打印进行制造。此过程需要通过分层和路径规划将CAD几何体转换为机器可读的G-code。尽管每一步都已确立,但依赖CAD建模仍然是主要瓶颈:构建特定对象的3D几何体速度慢且不适合快速原型。即使微小的设计变化通常需要在CAD软件中手动更新,使迭代时间长且难以扩展。为了解决这一限制,我们引入Image2Gcode,一种端到端的数据驱动框架,绕过CAD阶段,直接从图像和零件图纸生成可打印的G-code。而不是依赖显式的3D模型,手绘或捕捉的2D图像作为唯一的输入。该框架首先从图像中提取分层结构线索,然后使用去噪扩散概率模型(DDPM)在G-code序列上进行操作。通过迭代去噪,模型将高斯噪声转化为可执行的打印移动轨迹,并相应地设置挤出参数,建立从视觉输入到原生工具路径的直接映射。通过直接从2D影像生成结构化的G-code,Image2Gcode消除了对CAD或STL中间体的需要,降低了增材制造的进入门槛,加速了设计到制造的周期。这种方法支持从简单的草图或视觉参考进行按需原型设计,并与上游2D到3D重建模块集成,实现从概念到物理制品的自动化流程。结果是一种灵活、计算高效的框架,推动了设计迭代、维修流程和分布式制造的可访问性。
英文摘要:
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 captured 2D image serves as the sole input. The framework first extracts slice-wise structural cues from the image and then employs a denoising diffusion probabilistic model (DDPM) over G-code sequences. Through iterative denoising, the model transforms Gaussian noise into executable print-move trajectories with corresponding extrusion parameters, establishing a direct mapping from visual input to native toolpaths. By producing structured G-code directly from 2D imagery, Image2Gcode eliminates the need for CAD or STL intermediates, lowering the entry barrier for additive manufacturing and accelerating the design-to-fabrication cycle. This approach supports on-demand prototyping from simple sketches or visual references and integrates with upstream 2D-to-3D reconstruction modules to enable an automated pipeline from concept to physical artifact. The result is a flexible, computationally efficient framework that advances accessibility in design iteration, repair workflows, and distributed manufacturing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。