GeoCAD:使用大语言模型进行局部几何可控的CAD生成
GeoCAD: Local Geometry-Controllable CAD Generation with Large Language Models
AI总结:
本文提出GeoCAD框架,通过互补描述策略构建约221k局部部件几何指令,并以遮蔽部件预测方式训练LLM,实现遵循文本几何要求的CAD局部可控生成。
摘要:
局部几何可控的计算机辅助设计(CAD)生成旨在自动修改CAD模型的局部部件,从而提升设计效率。它还确保新生成的局部部件形状遵循用户指定的几何指令(例如等腰直角三角形或切去一角的矩形)。然而,现有方法在实现这一目标时面临挑战。具体而言,它们要么缺乏遵循文本指令的能力,要么无法聚焦于局部部件。为解决这一局限,我们提出了GeoCAD,这是一种用户友好且局部几何可控的CAD生成方法。具体来说,我们首先提出一种互补的描述生成策略,为局部部件生成几何指令。该策略包括基于顶点的描述生成和基于VLLM的描述生成,分别用于系统地标注简单部件和复杂部件。通过这种方式,我们总共为约221k个不同的局部部件生成了描述。在训练阶段,给定一个CAD模型,我们随机遮蔽一个局部部件。随后,以其几何指令和其余部件作为输入,提示大语言模型(LLMs)预测被遮蔽的部件。在推理过程中,用户可以指定任意局部部件进行修改,同时使其遵循各种预定义的几何指令。大量实验证明了GeoCAD在生成质量、有效性以及文本到CAD一致性方面的效果。代码将在https://github.com/Zhanwei-Z/GeoCAD提供。
英文摘要:
Local geometry-controllable computer-aided design (CAD) generation aims to modify local parts of CAD models automatically, enhancing design efficiency. It also ensures that the shapes of newly generated local parts follow user-specific geometric instructions (e.g., an isosceles right triangle or a rectangle with one corner cut off). However, existing methods encounter challenges in achieving this goal. Specifically, they either lack the ability to follow textual instructions or are unable to focus on the local parts. To address this limitation, we introduce GeoCAD, a user-friendly and local geometry-controllable CAD generation method. Specifically, we first propose a complementary captioning strategy to generate geometric instructions for local parts. This strategy involves vertex-based and VLLM-based captioning for systematically annotating simple and complex parts, respectively. In this way, we caption $\sim$221k different local parts in total. In the training stage, given a CAD model, we randomly mask a local part. Then, using its geometric instruction and the remaining parts as input, we prompt large language models (LLMs) to predict the masked part. During inference, users can specify any local part for modification while adhering to a variety of predefined geometric instructions. Extensive experiments demonstrate the effectiveness of GeoCAD in generation quality, validity and text-to-CAD consistency. Code will be available at https://github.com/Zhanwei-Z/GeoCAD.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。