{"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/blendgan-implicitly-gan-blending-for","title":"BlendGAN: Implicitly GAN Blending for Arbitrary Stylized Face Generation","arxiv_id":"2110.11728","date":"2021-10-22","proceeding":"NeurIPS 2021 12","authors":["Mingcong Liu","Qiang Li","Zekui Qin","Guoxin Zhang","Pengfei Wan","Wen Zheng"],"abstract":"Generative Adversarial Networks (GANs) have made a dramatic leap in high-fidelity image synthesis and stylized face generation. Recently, a layer-swapping mechanism has been developed to improve the stylization performance. However, this method is incapable of fitting arbitrary styles in a single model and requires hundreds of style-consistent training images for each style. To address the above issues, we propose BlendGAN for arbitrary stylized face generation by leveraging a flexible blending strategy and a generic artistic dataset. Specifically, we first train a self-supervised style encoder on the generic artistic dataset to extract the representations of arbitrary styles. In addition, a weighted blending module (WBM) is proposed to blend face and style representations implicitly and control the arbitrary stylization effect. By doing so, BlendGAN can gracefully fit arbitrary styles in a unified model while avoiding case-by-case preparation of style-consistent training images. To this end, we also present a novel large-scale artistic face dataset AAHQ. Extensive experiments demonstrate that BlendGAN outperforms state-of-the-art methods in terms of visual quality and style diversity for both latent-guided and reference-guided stylized face synthesis.","url_abs":"https://arxiv.org/abs/2110.11728v1","url_pdf":"https://arxiv.org/pdf/2110.11728v1.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":"blendgan-implicitly-gan-blending-for","repo_url":"https://github.com/onion-liu/BlendGAN","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"blendgan-implicitly-gan-blending-for","repo_url":"https://github.com/onion-liu/aahq-dataset","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}},{"paper_slug":"blendgan-implicitly-gan-blending-for","repo_url":"https://github.com/songquanpeng/BlendGAN","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"diversity","task_name":"Diversity"},{"task_slug":"face-generation","task_name":"Face Generation"},{"task_slug":"image-generation","task_name":"Image Generation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2110.11728","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2110.11728"}},"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/onion-liu/BlendGAN","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/songquanpeng/BlendGAN","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/onion-liu/aahq-dataset","reach":{"status":"ok"}}],"summary":{"ran_fixture":2,"ran_draft_wrong":4,"ran_violates":1,"ran":1,"unverified":13},"by_repo_kind":{"official":{"samples":12,"ran":3,"repositories":1},"listed":{"samples":9,"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":"e6c1de4697e7ed81","entry":"calc_fid","repo":"songquanpeng/BlendGAN","repo_kind":"listed","path":"fid.py","file_url":"https://github.com/songquanpeng/BlendGAN/blob/HEAD/fid.py","link_basis":"harvester_set","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":"e6c1de4697e7ed81"}},{"code_sha256_prefix":"7fe245a7216ae67b","entry":"convert_conv","repo":"songquanpeng/BlendGAN","repo_kind":"listed","path":"convert_weight.py","file_url":"https://github.com/songquanpeng/BlendGAN/blob/HEAD/convert_weight.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":"7fe245a7216ae67b"}},{"code_sha256_prefix":"1c7cd5abc48bcf75","entry":"convert_modconv","repo":"songquanpeng/BlendGAN","repo_kind":"listed","path":"convert_weight.py","file_url":"https://github.com/songquanpeng/BlendGAN/blob/HEAD/convert_weight.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":"1c7cd5abc48bcf75"}},{"code_sha256_prefix":"96b279b9ef818d94","entry":"convert_torgb","repo":"songquanpeng/BlendGAN","repo_kind":"listed","path":"convert_weight.py","file_url":"https://github.com/songquanpeng/BlendGAN/blob/HEAD/convert_weight.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":"96b279b9ef818d94"}},{"code_sha256_prefix":"430c582cd8bbb1df","entry":"gram_matrix","repo":"onion-liu/BlendGAN","repo_kind":"official","path":"model_encoder.py","file_url":"https://github.com/onion-liu/BlendGAN/blob/HEAD/model_encoder.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"430c582cd8bbb1df"}},{"code_sha256_prefix":"6f65e378a4313f87","entry":"make_kernel","repo":"onion-liu/BlendGAN","repo_kind":"official","path":"model.py","file_url":"https://github.com/onion-liu/BlendGAN/blob/HEAD/model.py","link_basis":"plan_row","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6f65e378a4313f87"}},{"code_sha256_prefix":"3f0a1105ef251d78","entry":"reduce_sum","repo":"songquanpeng/BlendGAN","repo_kind":"listed","path":"distributed.py","file_url":"https://github.com/songquanpeng/BlendGAN/blob/HEAD/distributed.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3f0a1105ef251d78"}},{"code_sha256_prefix":"fe99cfd294676edb","entry":"upfirdn2d_native","repo":"onion-liu/BlendGAN","repo_kind":"official","path":"op/upfirdn2d.py","file_url":"https://github.com/onion-liu/BlendGAN/blob/HEAD/op/upfirdn2d.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":"fe99cfd294676edb"}},{"code_sha256_prefix":"ed03ba54397adbe4","entry":"all_gather","repo":"songquanpeng/BlendGAN","repo_kind":"listed","path":"distributed.py","file_url":"https://github.com/songquanpeng/BlendGAN/blob/HEAD/distributed.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":"ed03ba54397adbe4"}},{"code_sha256_prefix":"ef82a9da38de6627","entry":"cv2ten","repo":"onion-liu/BlendGAN","repo_kind":"official","path":"utils.py","file_url":"https://github.com/onion-liu/BlendGAN/blob/HEAD/utils.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":"ef82a9da38de6627"}},{"code_sha256_prefix":"7284618ab4d5847d","entry":"extract_feature_from_samples","repo":"songquanpeng/BlendGAN","repo_kind":"listed","path":"fid.py","file_url":"https://github.com/songquanpeng/BlendGAN/blob/HEAD/fid.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":"7284618ab4d5847d"}},{"code_sha256_prefix":"826a4bfd8b5cb2fc","entry":"extract_features","repo":"songquanpeng/BlendGAN","repo_kind":"listed","path":"calc_inception.py","file_url":"https://github.com/songquanpeng/BlendGAN/blob/HEAD/calc_inception.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":"826a4bfd8b5cb2fc"}},{"code_sha256_prefix":"fe59e9e831c5c641","entry":"fused_leaky_relu","repo":"onion-liu/BlendGAN","repo_kind":"official","path":"op/fused_act.py","file_url":"https://github.com/onion-liu/BlendGAN/blob/HEAD/op/fused_act.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":"fe59e9e831c5c641"}},{"code_sha256_prefix":"380e205f2b8ababc","entry":"get_alphas","repo":"onion-liu/BlendGAN","repo_kind":"official","path":"gen_video.py","file_url":"https://github.com/onion-liu/BlendGAN/blob/HEAD/gen_video.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":"380e205f2b8ababc"}},{"code_sha256_prefix":"95abe150acbe2d3f","entry":"image_align","repo":"onion-liu/BlendGAN","repo_kind":"official","path":"ffhq_dataset/face_alignment.py","file_url":"https://github.com/onion-liu/BlendGAN/blob/HEAD/ffhq_dataset/face_alignment.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":"95abe150acbe2d3f"}},{"code_sha256_prefix":"5144ad456049f8ce","entry":"reduce_loss_dict","repo":"songquanpeng/BlendGAN","repo_kind":"listed","path":"distributed.py","file_url":"https://github.com/songquanpeng/BlendGAN/blob/HEAD/distributed.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":"5144ad456049f8ce"}},{"code_sha256_prefix":"d6ed19bb4dc739d3","entry":"scale_image","repo":"onion-liu/BlendGAN","repo_kind":"official","path":"BlendGANGUI.py","file_url":"https://github.com/onion-liu/BlendGAN/blob/HEAD/BlendGANGUI.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":"d6ed19bb4dc739d3"}},{"code_sha256_prefix":"8b483042fac3893a","entry":"sigmoid","repo":"onion-liu/BlendGAN","repo_kind":"official","path":"gen_video.py","file_url":"https://github.com/onion-liu/BlendGAN/blob/HEAD/gen_video.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":"8b483042fac3893a"}},{"code_sha256_prefix":"b01b40e47c0ad0a0","entry":"slide","repo":"onion-liu/BlendGAN","repo_kind":"official","path":"gen_video.py","file_url":"https://github.com/onion-liu/BlendGAN/blob/HEAD/gen_video.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":"b01b40e47c0ad0a0"}},{"code_sha256_prefix":"b8061c98786922f3","entry":"ten2cv","repo":"onion-liu/BlendGAN","repo_kind":"official","path":"utils.py","file_url":"https://github.com/onion-liu/BlendGAN/blob/HEAD/utils.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":"b8061c98786922f3"}},{"code_sha256_prefix":"0282bebb07512369","entry":"upfirdn2d","repo":"onion-liu/BlendGAN","repo_kind":"official","path":"op/upfirdn2d.py","file_url":"https://github.com/onion-liu/BlendGAN/blob/HEAD/op/upfirdn2d.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":"0282bebb07512369"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}