{"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/drb-gan-a-dynamic-resblock-generative","title":"DRB-GAN: A Dynamic ResBlock Generative Adversarial Network for Artistic Style Transfer","arxiv_id":"2108.07379","date":"2021-08-17","proceeding":"ICCV 2021 10","authors":["Wenju Xu","Chengjiang Long","Ruisheng Wang","Guanghui Wang"],"abstract":"The paper proposes a Dynamic ResBlock Generative Adversarial Network (DRB-GAN) for artistic style transfer. The style code is modeled as the shared parameters for Dynamic ResBlocks connecting both the style encoding network and the style transfer network. In the style encoding network, a style class-aware attention mechanism is used to attend the style feature representation for generating the style codes. In the style transfer network, multiple Dynamic ResBlocks are designed to integrate the style code and the extracted CNN semantic feature and then feed into the spatial window Layer-Instance Normalization (SW-LIN) decoder, which enables high-quality synthetic images with artistic style transfer. Moreover, the style collection conditional discriminator is designed to equip our DRB-GAN model with abilities for both arbitrary style transfer and collection style transfer during the training stage. No matter for arbitrary style transfer or collection style transfer, extensive experiments strongly demonstrate that our proposed DRB-GAN outperforms state-of-the-art methods and exhibits its superior performance in terms of visual quality and efficiency. Our source code is available at \\color{magenta}{\\url{https://github.com/xuwenju123/DRB-GAN}}.","url_abs":"https://arxiv.org/abs/2108.07379v3","url_pdf":"https://arxiv.org/pdf/2108.07379v3.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":"drb-gan-a-dynamic-resblock-generative","repo_url":"https://github.com/sonnguyen129/deep-feature-rotation","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"decoder","task_name":"Decoder"},{"task_slug":null,"task_name":"Generative Adversarial Network"},{"task_slug":"style-transfer","task_name":"Style Transfer"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2108.07379","atlas_url":"https://app.syntology.ai/?focus=2108.07379","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2108.07379"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/sonnguyen129/deep-feature-rotation","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/xuwenju123/DRB-GAN","reach":{"status":"ok"}}],"summary":{"ran":8,"unverified":2},"by_repo_kind":{"listed":{"samples":10,"ran":8,"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":"d0f714d6a89e9377","entry":"calc_content_loss","repo":"sonnguyen129/deep-feature-rotation","repo_kind":"listed","path":"dfr/loss.py","file_url":"https://github.com/sonnguyen129/deep-feature-rotation/blob/HEAD/dfr/loss.py","link_basis":"harvester_set","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":"d0f714d6a89e9377"}},{"code_sha256_prefix":"4ce9a5e63a0de9b1","entry":"calc_style_loss","repo":"sonnguyen129/deep-feature-rotation","repo_kind":"listed","path":"dfr/loss.py","file_url":"https://github.com/sonnguyen129/deep-feature-rotation/blob/HEAD/dfr/loss.py","link_basis":"harvester_set","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":"4ce9a5e63a0de9b1"}},{"code_sha256_prefix":"e26a2b48ca392b96","entry":"extensive_rotation_tensor","repo":"sonnguyen129/deep-feature-rotation","repo_kind":"listed","path":"dfr/rotation.py","file_url":"https://github.com/sonnguyen129/deep-feature-rotation/blob/HEAD/dfr/rotation.py","link_basis":"harvester_set","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":"e26a2b48ca392b96"}},{"code_sha256_prefix":"24caeadc560dd7b1","entry":"gram_matrix","repo":"sonnguyen129/deep-feature-rotation","repo_kind":"listed","path":"dfr/model.py","file_url":"https://github.com/sonnguyen129/deep-feature-rotation/blob/HEAD/dfr/model.py","link_basis":"harvester_set","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":"24caeadc560dd7b1"}},{"code_sha256_prefix":"5001a455e1e77841","entry":"load_img","repo":"sonnguyen129/deep-feature-rotation","repo_kind":"listed","path":"dfr/utils.py","file_url":"https://github.com/sonnguyen129/deep-feature-rotation/blob/HEAD/dfr/utils.py","link_basis":"harvester_set","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":"5001a455e1e77841"}},{"code_sha256_prefix":"ea5fcba7243221d1","entry":"rotation_tensor","repo":"sonnguyen129/deep-feature-rotation","repo_kind":"listed","path":"dfr/rotation.py","file_url":"https://github.com/sonnguyen129/deep-feature-rotation/blob/HEAD/dfr/rotation.py","link_basis":"harvester_set","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":"ea5fcba7243221d1"}},{"code_sha256_prefix":"3a49ae39c3f94eb0","entry":"style_content_loss","repo":"sonnguyen129/deep-feature-rotation","repo_kind":"listed","path":"dfr/loss.py","file_url":"https://github.com/sonnguyen129/deep-feature-rotation/blob/HEAD/dfr/loss.py","link_basis":"harvester_set","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":"3a49ae39c3f94eb0"}},{"code_sha256_prefix":"de8207efc4e58ec8","entry":"tensor_to_image","repo":"sonnguyen129/deep-feature-rotation","repo_kind":"listed","path":"dfr/utils.py","file_url":"https://github.com/sonnguyen129/deep-feature-rotation/blob/HEAD/dfr/utils.py","link_basis":"harvester_set","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":"de8207efc4e58ec8"}},{"code_sha256_prefix":"0529813bf1196cab","entry":"clip_0_1","repo":"sonnguyen129/deep-feature-rotation","repo_kind":"listed","path":"dfr/function.py","file_url":"https://github.com/sonnguyen129/deep-feature-rotation/blob/HEAD/dfr/function.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":"0529813bf1196cab"}},{"code_sha256_prefix":"c9e8ae02d557b195","entry":"vgg_layers","repo":"sonnguyen129/deep-feature-rotation","repo_kind":"listed","path":"dfr/model.py","file_url":"https://github.com/sonnguyen129/deep-feature-rotation/blob/HEAD/dfr/model.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":"c9e8ae02d557b195"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}