{"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/efficient-conditional-gan-transfer-with","title":"Efficient Conditional GAN Transfer with Knowledge Propagation across Classes","arxiv_id":"2102.06696","date":"2021-02-12","proceeding":"CVPR 2021 1","authors":["Mohamad Shahbazi","Zhiwu Huang","Danda Pani Paudel","Ajad Chhatkuli","Luc van Gool"],"abstract":"Generative adversarial networks (GANs) have shown impressive results in both unconditional and conditional image generation. In recent literature, it is shown that pre-trained GANs, on a different dataset, can be transferred to improve the image generation from a small target data. The same, however, has not been well-studied in the case of conditional GANs (cGANs), which provides new opportunities for knowledge transfer compared to unconditional setup. In particular, the new classes may borrow knowledge from the related old classes, or share knowledge among themselves to improve the training. This motivates us to study the problem of efficient conditional GAN transfer with knowledge propagation across classes. To address this problem, we introduce a new GAN transfer method to explicitly propagate the knowledge from the old classes to the new classes. The key idea is to enforce the popularly used conditional batch normalization (BN) to learn the class-specific information of the new classes from that of the old classes, with implicit knowledge sharing among the new ones. This allows for an efficient knowledge propagation from the old classes to the new ones, with the BN parameters increasing linearly with the number of new classes. The extensive evaluation demonstrates the clear superiority of the proposed method over state-of-the-art competitors for efficient conditional GAN transfer tasks. The code is available at: https://github.com/mshahbazi72/cGANTransfer","url_abs":"https://arxiv.org/abs/2102.06696v2","url_pdf":"https://arxiv.org/pdf/2102.06696v2.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":"efficient-conditional-gan-transfer-with","repo_url":"https://github.com/mshahbazi72/cGANTransfer","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"conditional-image-generation","task_name":"Conditional Image Generation"},{"task_slug":"image-generation","task_name":"Image Generation"},{"task_slug":"transfer-learning","task_name":"Transfer Learning"}],"methods":[{"method_slug":"batch-normalization","method_name":"Batch Normalization"},{"method_slug":"conditional-batch-normalization","method_name":"Conditional Batch Normalization"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"feedforward-network","method_name":"Feedforward Network"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2102.06696","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2102.06696"}},"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":"deterministic:regex_extraction","url":"https://github.com/mshahbazi72/cGANTransfer","reach":null}],"summary":{"ran":6,"ran_draft_wrong":3,"ran_honours":1,"ran_fixture":1,"unverified":6},"by_repo_kind":{"official":{"samples":16,"ran":10,"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":17,"samples":[{"code_sha256_prefix":"e0e75705a765d4fb","entry":"Attention","repo":"mshahbazi72/cGANTransfer","repo_kind":"official","path":"BigGAN.py","file_url":"https://github.com/mshahbazi72/cGANTransfer/blob/HEAD/BigGAN.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e0e75705a765d4fb"}},{"code_sha256_prefix":"e8c308c9283407d7","entry":"G_arch","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"e8c308c9283407d7"}},{"code_sha256_prefix":"3cc07263218d2a9f","entry":"SNConv2d","repo":"mshahbazi72/cGANTransfer","repo_kind":"official","path":"BigGAN.py","file_url":"https://github.com/mshahbazi72/cGANTransfer/blob/HEAD/BigGAN.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3cc07263218d2a9f"}},{"code_sha256_prefix":"3a669996e69a3c46","entry":"SNLinear","repo":"mshahbazi72/cGANTransfer","repo_kind":"official","path":"BigGAN.py","file_url":"https://github.com/mshahbazi72/cGANTransfer/blob/HEAD/BigGAN.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3a669996e69a3c46"}},{"code_sha256_prefix":"1c85899609ec850d","entry":"bn","repo":"mshahbazi72/cGANTransfer","repo_kind":"official","path":"BigGAN.py","file_url":"https://github.com/mshahbazi72/cGANTransfer/blob/HEAD/BigGAN.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1c85899609ec850d"}},{"code_sha256_prefix":"8b0d246691049f91","entry":"ccbn","repo":"mshahbazi72/cGANTransfer","repo_kind":"official","path":"BigGAN.py","file_url":"https://github.com/mshahbazi72/cGANTransfer/blob/HEAD/BigGAN.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8b0d246691049f91"}},{"code_sha256_prefix":"d7c46b2392abf5fd","entry":"fused_bn","repo":"mshahbazi72/cGANTransfer","repo_kind":"official","path":"BigGAN.py","file_url":"https://github.com/mshahbazi72/cGANTransfer/blob/HEAD/BigGAN.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d7c46b2392abf5fd"}},{"code_sha256_prefix":"c41836f3e51fa8f1","entry":"gram_schmidt","repo":"mshahbazi72/cGANTransfer","repo_kind":"official","path":"BigGAN.py","file_url":"https://github.com/mshahbazi72/cGANTransfer/blob/HEAD/BigGAN.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c41836f3e51fa8f1"}},{"code_sha256_prefix":"ed7234a97840eda8","entry":"groupnorm","repo":"mshahbazi72/cGANTransfer","repo_kind":"official","path":"BigGAN.py","file_url":"https://github.com/mshahbazi72/cGANTransfer/blob/HEAD/BigGAN.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ed7234a97840eda8"}},{"code_sha256_prefix":"33db4a84b81bd4ff","entry":"identity","repo":"mshahbazi72/cGANTransfer","repo_kind":"official","path":"BigGAN.py","file_url":"https://github.com/mshahbazi72/cGANTransfer/blob/HEAD/BigGAN.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"33db4a84b81bd4ff"}},{"code_sha256_prefix":"9d88cf6296bed90f","entry":"power_iteration","repo":"mshahbazi72/cGANTransfer","repo_kind":"official","path":"BigGAN.py","file_url":"https://github.com/mshahbazi72/cGANTransfer/blob/HEAD/BigGAN.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9d88cf6296bed90f"}},{"code_sha256_prefix":"9e12416d71f52bb1","entry":"GBlock","repo":"mshahbazi72/cGANTransfer","repo_kind":"official","path":"BigGAN.py","file_url":"https://github.com/mshahbazi72/cGANTransfer/blob/HEAD/BigGAN.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":"9e12416d71f52bb1"}},{"code_sha256_prefix":"0b11cf36ac387075","entry":"Generator","repo":"mshahbazi72/cGANTransfer","repo_kind":"official","path":"BigGAN.py","file_url":"https://github.com/mshahbazi72/cGANTransfer/blob/HEAD/BigGAN.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":"0b11cf36ac387075"}},{"code_sha256_prefix":"b6095d8ef493ff98","entry":"SN","repo":"mshahbazi72/cGANTransfer","repo_kind":"official","path":"BigGAN.py","file_url":"https://github.com/mshahbazi72/cGANTransfer/blob/HEAD/BigGAN.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":"b6095d8ef493ff98"}},{"code_sha256_prefix":"08f41f3d614b0bb9","entry":"manual_bn","repo":"mshahbazi72/cGANTransfer","repo_kind":"official","path":"BigGAN.py","file_url":"https://github.com/mshahbazi72/cGANTransfer/blob/HEAD/BigGAN.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":"08f41f3d614b0bb9"}},{"code_sha256_prefix":"ea9320becfdf5158","entry":"myBN","repo":"mshahbazi72/cGANTransfer","repo_kind":"official","path":"BigGAN.py","file_url":"https://github.com/mshahbazi72/cGANTransfer/blob/HEAD/BigGAN.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":"ea9320becfdf5158"}},{"code_sha256_prefix":"4015ab1f3ab9b881","entry":"proj","repo":"mshahbazi72/cGANTransfer","repo_kind":"official","path":"BigGAN.py","file_url":"https://github.com/mshahbazi72/cGANTransfer/blob/HEAD/BigGAN.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":"4015ab1f3ab9b881"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}