{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/davinci-a-single-stage-architecture-for","title":"DAVINCI: A Single-Stage Architecture for Constrained CAD Sketch Inference","arxiv_id":"2410.22857","date":"2024-10-30","proceeding":null,"authors":["Ahmet Serdar Karadeniz","Dimitrios Mallis","Nesryne Mejri","Kseniya Cherenkova","Anis Kacem","Djamila Aouada"],"abstract":"This work presents DAVINCI, a unified architecture for single-stage Computer-Aided Design (CAD) sketch parameterization and constraint inference directly from raster sketch images. By jointly learning both outputs, DAVINCI minimizes error accumulation and enhances the performance of constrained CAD sketch inference. Notably, DAVINCI achieves state-of-the-art results on the large-scale SketchGraphs dataset, demonstrating effectiveness on both precise and hand-drawn raster CAD sketches. To reduce DAVINCI's reliance on large-scale annotated datasets, we explore the efficacy of CAD sketch augmentations. We introduce Constraint-Preserving Transformations (CPTs), i.e. random permutations of the parametric primitives of a CAD sketch that preserve its constraints. This data augmentation strategy allows DAVINCI to achieve reasonable performance when trained with only 0.1% of the SketchGraphs dataset. Furthermore, this work contributes a new version of SketchGraphs, augmented with CPTs. The newly introduced CPTSketchGraphs dataset includes 80 million CPT-augmented sketches, thus providing a rich resource for future research in the CAD sketch domain.","url_abs":"https://arxiv.org/abs/2410.22857v1","url_pdf":"https://arxiv.org/pdf/2410.22857v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"davinci-a-single-stage-architecture-for","repo_url":"https://github.com/cvi2snt/CPTSketchGraphs","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"data-augmentation","task_name":"Data Augmentation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2410.22857","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2410.22857"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/cvi2snt/CPTSketchGraphs","reach":{"status":"ok"}}],"summary":{"unverified":8},"by_repo_kind":{"official":{"samples":8,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":8,"samples":[{"code_sha256_prefix":"8efcc2fd5b98260f","entry":"fig_to_img","repo":"cvi2snt/CPTSketchGraphs","repo_kind":"official","path":"utils.py","file_url":"https://github.com/cvi2snt/CPTSketchGraphs/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8efcc2fd5b98260f"}},{"code_sha256_prefix":"d2f4673695bbd5ec","entry":"get_distributed_config","repo":"cvi2snt/CPTSketchGraphs","repo_kind":"official","path":"SketchGraphs/sketchgraphs/sketchgraphs_models/distributed_utils.py","file_url":"https://github.com/cvi2snt/CPTSketchGraphs/blob/HEAD/SketchGraphs/sketchgraphs/sketchgraphs_models/distributed_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d2f4673695bbd5ec"}},{"code_sha256_prefix":"7b14572dce7a7368","entry":"is_leader","repo":"cvi2snt/CPTSketchGraphs","repo_kind":"official","path":"SketchGraphs/sketchgraphs/sketchgraphs_models/distributed_utils.py","file_url":"https://github.com/cvi2snt/CPTSketchGraphs/blob/HEAD/SketchGraphs/sketchgraphs/sketchgraphs_models/distributed_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7b14572dce7a7368"}},{"code_sha256_prefix":"17203f325e6ae456","entry":"load_cuda_async","repo":"cvi2snt/CPTSketchGraphs","repo_kind":"official","path":"SketchGraphs/sketchgraphs/sketchgraphs_models/training.py","file_url":"https://github.com/cvi2snt/CPTSketchGraphs/blob/HEAD/SketchGraphs/sketchgraphs/sketchgraphs_models/training.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"17203f325e6ae456"}},{"code_sha256_prefix":"1400de46f54e2607","entry":"map_structure_flat","repo":"cvi2snt/CPTSketchGraphs","repo_kind":"official","path":"SketchGraphs/sketchgraphs/sketchgraphs_models/training.py","file_url":"https://github.com/cvi2snt/CPTSketchGraphs/blob/HEAD/SketchGraphs/sketchgraphs/sketchgraphs_models/training.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1400de46f54e2607"}},{"code_sha256_prefix":"cec2e2dbe249ab99","entry":"segmented_multinomial","repo":"cvi2snt/CPTSketchGraphs","repo_kind":"official","path":"SketchGraphs/sketchgraphs/sketchgraphs_models/nn/functional.py","file_url":"https://github.com/cvi2snt/CPTSketchGraphs/blob/HEAD/SketchGraphs/sketchgraphs/sketchgraphs_models/nn/functional.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cec2e2dbe249ab99"}},{"code_sha256_prefix":"717d23adeb5e9a34","entry":"segmented_multinomial_extended","repo":"cvi2snt/CPTSketchGraphs","repo_kind":"official","path":"SketchGraphs/sketchgraphs/sketchgraphs_models/nn/functional.py","file_url":"https://github.com/cvi2snt/CPTSketchGraphs/blob/HEAD/SketchGraphs/sketchgraphs/sketchgraphs_models/nn/functional.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"717d23adeb5e9a34"}},{"code_sha256_prefix":"18d3e238a7e5ba7e","entry":"train_boostrap_distributed","repo":"cvi2snt/CPTSketchGraphs","repo_kind":"official","path":"SketchGraphs/sketchgraphs/sketchgraphs_models/distributed_utils.py","file_url":"https://github.com/cvi2snt/CPTSketchGraphs/blob/HEAD/SketchGraphs/sketchgraphs/sketchgraphs_models/distributed_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"18d3e238a7e5ba7e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}