{"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/deepsvg-a-hierarchical-generative-network-for","title":"DeepSVG: A Hierarchical Generative Network for Vector Graphics Animation","arxiv_id":"2007.11301","date":"2020-07-22","proceeding":"NeurIPS 2020 12","authors":["Alexandre Carlier","Martin Danelljan","Alexandre Alahi","Radu Timofte"],"abstract":"Scalable Vector Graphics (SVG) are ubiquitous in modern 2D interfaces due to their ability to scale to different resolutions. However, despite the success of deep learning-based models applied to rasterized images, the problem of vector graphics representation learning and generation remains largely unexplored. In this work, we propose a novel hierarchical generative network, called DeepSVG, for complex SVG icons generation and interpolation. Our architecture effectively disentangles high-level shapes from the low-level commands that encode the shape itself. The network directly predicts a set of shapes in a non-autoregressive fashion. We introduce the task of complex SVG icons generation by releasing a new large-scale dataset along with an open-source library for SVG manipulation. We demonstrate that our network learns to accurately reconstruct diverse vector graphics, and can serve as a powerful animation tool by performing interpolations and other latent space operations. Our code is available at https://github.com/alexandre01/deepsvg.","url_abs":"https://arxiv.org/abs/2007.11301v3","url_pdf":"https://arxiv.org/pdf/2007.11301v3.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":"deepsvg-a-hierarchical-generative-network-for","repo_url":"https://github.com/alexandre01/deepsvg","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"deepsvg-a-hierarchical-generative-network-for","repo_url":"https://github.com/JakobLangenbahn/animate_logos_label_website","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"representation-learning","task_name":"Representation Learning"},{"task_slug":"vector-graphics","task_name":"Vector Graphics"},{"task_slug":"vector-graphics-generation","task_name":"Vector Graphics Animation"}],"methods":[{"method_slug":"absolute-position-encodings","method_name":"Absolute Position Encodings"},{"method_slug":"position-wise-feed-forward-layer","method_name":"Position-Wise Feed-Forward Layer"},{"method_slug":"transformer","method_name":"Transformer"}],"datasets_introduced":[{"slug":"svg-icons8","name":"SVG-Icons8","full_name":""}],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2007.11301","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2007.11301"}},"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/JakobLangenbahn/animate_logos_label_website","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/alexandre01/deepsvg","reach":null}],"summary":{"ran":4,"ran_violates":1,"unverified":20},"by_repo_kind":{"official":{"samples":25,"ran":5,"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":0,"samples":[{"code_sha256_prefix":"0f7f57b9f6743705","entry":"FCN","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0f7f57b9f6743705"}},{"code_sha256_prefix":"c4a9704d5f61ac91","entry":"HierarchFCN","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c4a9704d5f61ac91"}},{"code_sha256_prefix":"32df1a7d7da8dbc7","entry":"ResNet","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"32df1a7d7da8dbc7"}},{"code_sha256_prefix":"1263393b5a254282","entry":"_generate_square_subsequent_mask","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1263393b5a254282"}},{"code_sha256_prefix":"ea8d8a3182dcdbbc","entry":"_threshold_sample","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ea8d8a3182dcdbbc"}},{"code_sha256_prefix":"317c8344bea83044","entry":"Bottleneck","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"317c8344bea83044"}},{"code_sha256_prefix":"7dcced8878b64383","entry":"ConstEmbedding","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7dcced8878b64383"}},{"code_sha256_prefix":"a7a568c0aec488a9","entry":"Decoder","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a7a568c0aec488a9"}},{"code_sha256_prefix":"27acde109433ec82","entry":"Encoder","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"27acde109433ec82"}},{"code_sha256_prefix":"5f0886ba37847885","entry":"LabelEmbedding","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5f0886ba37847885"}},{"code_sha256_prefix":"79a174d33890ab0e","entry":"SVGEmbedding","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"79a174d33890ab0e"}},{"code_sha256_prefix":"7a0ffcbae95f2fd2","entry":"SVGTensor","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7a0ffcbae95f2fd2"}},{"code_sha256_prefix":"c08f5fffe0b2ad35","entry":"SVGTransformer","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c08f5fffe0b2ad35"}},{"code_sha256_prefix":"43e61efc110a1a58","entry":"VAE","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"43e61efc110a1a58"}},{"code_sha256_prefix":"d88109fe4a168610","entry":"_DefaultConfig","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d88109fe4a168610"}},{"code_sha256_prefix":"2cd604e7a8260f32","entry":"_get_group_mask","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2cd604e7a8260f32"}},{"code_sha256_prefix":"3ac1a54394606a15","entry":"_get_key_padding_mask","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3ac1a54394606a15"}},{"code_sha256_prefix":"ef8136f817499cbc","entry":"_get_key_visibility_mask","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ef8136f817499cbc"}},{"code_sha256_prefix":"16d404266079eb1f","entry":"_get_padding_mask","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"16d404266079eb1f"}},{"code_sha256_prefix":"a089d43e1ca8c113","entry":"_get_visibility_mask","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a089d43e1ca8c113"}},{"code_sha256_prefix":"c552e5432337eadf","entry":"_make_batch_first","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c552e5432337eadf"}},{"code_sha256_prefix":"6706fc8261009bed","entry":"_make_seq_first","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6706fc8261009bed"}},{"code_sha256_prefix":"c87a2ecdbe4da91b","entry":"_pack_group_batch","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c87a2ecdbe4da91b"}},{"code_sha256_prefix":"58f52852746594ee","entry":"_sample_categorical","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"58f52852746594ee"}},{"code_sha256_prefix":"7af00434bdb31122","entry":"_unpack_group_batch","repo":"alexandre01/deepsvg","repo_kind":"official","path":"deepsvg/model/model.py","file_url":"https://github.com/alexandre01/deepsvg/blob/HEAD/deepsvg/model/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7af00434bdb31122"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}