CADTalk: An Algorithm and Benchmark for Semantic Commenting of CAD Programs

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Yuan, Haocheng, Xu, Jing, Pan, Hao, Bousseau, Adrien, Mitra, Niloy J., Li, Changjian
Natura: Preprint
Pubblicazione: 2023
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866913282755919872
author Yuan, Haocheng
Xu, Jing
Pan, Hao
Bousseau, Adrien
Mitra, Niloy J.
Li, Changjian
author_facet Yuan, Haocheng
Xu, Jing
Pan, Hao
Bousseau, Adrien
Mitra, Niloy J.
Li, Changjian
contents CAD programs are a popular way to compactly encode shapes as a sequence of operations that are easy to parametrically modify. However, without sufficient semantic comments and structure, such programs can be challenging to understand, let alone modify. We introduce the problem of semantic commenting CAD programs, wherein the goal is to segment the input program into code blocks corresponding to semantically meaningful shape parts and assign a semantic label to each block. We solve the problem by combining program parsing with visual-semantic analysis afforded by recent advances in foundational language and vision models. Specifically, by executing the input programs, we create shapes, which we use to generate conditional photorealistic images to make use of semantic annotators for such images. We then distill the information across the images and link back to the original programs to semantically comment on them. Additionally, we collected and annotated a benchmark dataset, CADTalk, consisting of 5,288 machine-made programs and 45 human-made programs with ground truth semantic comments. We extensively evaluated our approach, compared it to a GPT-based baseline, and an open-set shape segmentation baseline, and reported an 83.24% accuracy on the new CADTalk dataset. Code and data: https://enigma-li.github.io/CADTalk/.
format Preprint
id arxiv_https___arxiv_org_abs_2311_16703
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle CADTalk: An Algorithm and Benchmark for Semantic Commenting of CAD Programs
Yuan, Haocheng
Xu, Jing
Pan, Hao
Bousseau, Adrien
Mitra, Niloy J.
Li, Changjian
Computer Vision and Pattern Recognition
Graphics
CAD programs are a popular way to compactly encode shapes as a sequence of operations that are easy to parametrically modify. However, without sufficient semantic comments and structure, such programs can be challenging to understand, let alone modify. We introduce the problem of semantic commenting CAD programs, wherein the goal is to segment the input program into code blocks corresponding to semantically meaningful shape parts and assign a semantic label to each block. We solve the problem by combining program parsing with visual-semantic analysis afforded by recent advances in foundational language and vision models. Specifically, by executing the input programs, we create shapes, which we use to generate conditional photorealistic images to make use of semantic annotators for such images. We then distill the information across the images and link back to the original programs to semantically comment on them. Additionally, we collected and annotated a benchmark dataset, CADTalk, consisting of 5,288 machine-made programs and 45 human-made programs with ground truth semantic comments. We extensively evaluated our approach, compared it to a GPT-based baseline, and an open-set shape segmentation baseline, and reported an 83.24% accuracy on the new CADTalk dataset. Code and data: https://enigma-li.github.io/CADTalk/.
title CADTalk: An Algorithm and Benchmark for Semantic Commenting of CAD Programs
topic Computer Vision and Pattern Recognition
Graphics
url https://arxiv.org/abs/2311.16703