{"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/handwritten-text-generation-from-visual","title":"Handwritten Text Generation from Visual Archetypes","arxiv_id":"2303.15269","date":"2023-03-27","proceeding":"CVPR 2023 1","authors":["Vittorio Pippi","Silvia Cascianelli","Rita Cucchiara"],"abstract":"Generating synthetic images of handwritten text in a writer-specific style is a challenging task, especially in the case of unseen styles and new words, and even more when these latter contain characters that are rarely encountered during training. While emulating a writer's style has been recently addressed by generative models, the generalization towards rare characters has been disregarded. In this work, we devise a Transformer-based model for Few-Shot styled handwritten text generation and focus on obtaining a robust and informative representation of both the text and the style. In particular, we propose a novel representation of the textual content as a sequence of dense vectors obtained from images of symbols written as standard GNU Unifont glyphs, which can be considered their visual archetypes. This strategy is more suitable for generating characters that, despite having been seen rarely during training, possibly share visual details with the frequently observed ones. As for the style, we obtain a robust representation of unseen writers' calligraphy by exploiting specific pre-training on a large synthetic dataset. Quantitative and qualitative results demonstrate the effectiveness of our proposal in generating words in unseen styles and with rare characters more faithfully than existing approaches relying on independent one-hot encodings of the characters.","url_abs":"https://arxiv.org/abs/2303.15269v1","url_pdf":"https://arxiv.org/pdf/2303.15269v1.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":"handwritten-text-generation-from-visual","repo_url":"https://github.com/aimagelab/vatr","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"handwritten-text-generation-from-visual","repo_url":"https://github.com/hnam-1765/writevit","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"text-generation","task_name":"Text Generation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2303.15269","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2303.15269"}},"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/hnam-1765/writevit","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/aimagelab/vatr","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/aimagelab/VATr","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":10,"ran_fixture":3,"ran_draft_wrong":4,"ran_honours":1,"unverified":10},"by_repo_kind":{"official":{"samples":20,"ran":14,"repositories":1},"listed":{"samples":8,"ran":4,"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":"f0b7cc93962197b3","entry":"Conv2dBlock","repo":"aimagelab/VATr","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/aimagelab/VATr/blob/HEAD/models/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":"f0b7cc93962197b3"}},{"code_sha256_prefix":"0ce0d022419871d3","entry":"FCNDecoder","repo":"aimagelab/VATr","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/aimagelab/VATr/blob/HEAD/models/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":"0ce0d022419871d3"}},{"code_sha256_prefix":"2648187d673104a6","entry":"FIDInceptionA","repo":"aimagelab/VATr","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/aimagelab/VATr/blob/HEAD/models/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2648187d673104a6"}},{"code_sha256_prefix":"643d4a526326f581","entry":"FIDInceptionC","repo":"aimagelab/VATr","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/aimagelab/VATr/blob/HEAD/models/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"643d4a526326f581"}},{"code_sha256_prefix":"db29adb344f73366","entry":"FIDInceptionE_1","repo":"aimagelab/VATr","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/aimagelab/VATr/blob/HEAD/models/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"db29adb344f73366"}},{"code_sha256_prefix":"cd5dedb4fdac4f23","entry":"FIDInceptionE_2","repo":"aimagelab/VATr","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/aimagelab/VATr/blob/HEAD/models/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cd5dedb4fdac4f23"}},{"code_sha256_prefix":"9e410fe607bac90c","entry":"PositionalEncoding1D","repo":"aimagelab/VATr","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/aimagelab/VATr/blob/HEAD/models/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9e410fe607bac90c"}},{"code_sha256_prefix":"22c73a1beb759d7d","entry":"ResBlock","repo":"aimagelab/VATr","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/aimagelab/VATr/blob/HEAD/models/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":"22c73a1beb759d7d"}},{"code_sha256_prefix":"4dbb6df05fa94399","entry":"ResBlocks","repo":"aimagelab/VATr","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/aimagelab/VATr/blob/HEAD/models/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":"4dbb6df05fa94399"}},{"code_sha256_prefix":"367b22529423f3f6","entry":"UnifontModule","repo":"aimagelab/VATr","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/aimagelab/VATr/blob/HEAD/models/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"367b22529423f3f6"}},{"code_sha256_prefix":"4cee7c1861294d59","entry":"calculate_frechet_distance","repo":"hnam-1765/writevit","repo_kind":"listed","path":"models/inception.py","file_url":"https://github.com/hnam-1765/writevit/blob/HEAD/models/inception.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4cee7c1861294d59"}},{"code_sha256_prefix":"583f9780bdd00a45","entry":"conv3x3","repo":"hnam-1765/writevit","repo_kind":"listed","path":"models/backbone.py","file_url":"https://github.com/hnam-1765/writevit/blob/HEAD/models/backbone.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"583f9780bdd00a45"}},{"code_sha256_prefix":"33805df68cb6892e","entry":"get_emb","repo":"aimagelab/VATr","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/aimagelab/VATr/blob/HEAD/models/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"33805df68cb6892e"}},{"code_sha256_prefix":"62a8cdfdb51ec275","entry":"get_scheduler","repo":"hnam-1765/writevit","repo_kind":"listed","path":"models/networks.py","file_url":"https://github.com/hnam-1765/writevit/blob/HEAD/models/networks.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"62a8cdfdb51ec275"}},{"code_sha256_prefix":"c41836f3e51fa8f1","entry":"gram_schmidt","repo":"hnam-1765/writevit","repo_kind":"listed","path":"models/BigGAN_layers.py","file_url":"https://github.com/hnam-1765/writevit/blob/HEAD/models/BigGAN_layers.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c41836f3e51fa8f1"}},{"code_sha256_prefix":"d5932c9e19a8f551","entry":"loss_hinge_dis","repo":"aimagelab/VATr","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/aimagelab/VATr/blob/HEAD/models/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d5932c9e19a8f551"}},{"code_sha256_prefix":"20ede13d7691fddd","entry":"loss_hinge_gen","repo":"aimagelab/VATr","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/aimagelab/VATr/blob/HEAD/models/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"20ede13d7691fddd"}},{"code_sha256_prefix":"39075c27b258d2c3","entry":"make_one_hot","repo":"aimagelab/VATr","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/aimagelab/VATr/blob/HEAD/models/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"39075c27b258d2c3"}},{"code_sha256_prefix":"5db4f1182b19d9c5","entry":"AdaptiveInstanceNorm2d","repo":"aimagelab/VATr","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/aimagelab/VATr/blob/HEAD/models/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":"5db4f1182b19d9c5"}},{"code_sha256_prefix":"d5e0c4c475f7d0ea","entry":"D_arch","repo":"hnam-1765/writevit","repo_kind":"listed","path":"models/BigGAN_networks.py","file_url":"https://github.com/hnam-1765/writevit/blob/HEAD/models/BigGAN_networks.py","link_basis":"harvester_set","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":"d5e0c4c475f7d0ea"}},{"code_sha256_prefix":"eeee154bc306d46b","entry":"G_arch","repo":"hnam-1765/writevit","repo_kind":"listed","path":"models/BigGAN_networks.py","file_url":"https://github.com/hnam-1765/writevit/blob/HEAD/models/BigGAN_networks.py","link_basis":"harvester_set","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":"eeee154bc306d46b"}},{"code_sha256_prefix":"1ff1bc3eaf943f05","entry":"Generator","repo":"aimagelab/VATr","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/aimagelab/VATr/blob/HEAD/models/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":"1ff1bc3eaf943f05"}},{"code_sha256_prefix":"e66d36581525af67","entry":"InceptionV3","repo":"aimagelab/VATr","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/aimagelab/VATr/blob/HEAD/models/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":"e66d36581525af67"}},{"code_sha256_prefix":"818355b6821b8174","entry":"VATr","repo":"aimagelab/VATr","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/aimagelab/VATr/blob/HEAD/models/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":"818355b6821b8174"}},{"code_sha256_prefix":"99c0f27938d0a636","entry":"fid_inception_v3","repo":"aimagelab/VATr","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/aimagelab/VATr/blob/HEAD/models/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":"99c0f27938d0a636"}},{"code_sha256_prefix":"28d3a35157f2916d","entry":"power_iteration","repo":"hnam-1765/writevit","repo_kind":"listed","path":"models/BigGAN_layers.py","file_url":"https://github.com/hnam-1765/writevit/blob/HEAD/models/BigGAN_layers.py","link_basis":"harvester_set","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":"28d3a35157f2916d"}},{"code_sha256_prefix":"4015ab1f3ab9b881","entry":"proj","repo":"hnam-1765/writevit","repo_kind":"listed","path":"models/BigGAN_layers.py","file_url":"https://github.com/hnam-1765/writevit/blob/HEAD/models/BigGAN_layers.py","link_basis":"harvester_set","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":"4015ab1f3ab9b881"}},{"code_sha256_prefix":"c31ec2e6a64fbcac","entry":"toggle_grad","repo":"aimagelab/VATr","repo_kind":"official","path":"models/model.py","file_url":"https://github.com/aimagelab/VATr/blob/HEAD/models/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":"c31ec2e6a64fbcac"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}