{"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/sed-semantic-aware-discriminator-for-image","title":"SeD: Semantic-Aware Discriminator for Image Super-Resolution","arxiv_id":"2402.19387","date":"2024-02-29","proceeding":"CVPR 2024 1","authors":["Bingchen Li","Xin Li","Hanxin Zhu","Yeying Jin","Ruoyu Feng","Zhizheng Zhang","Zhibo Chen"],"abstract":"Generative Adversarial Networks (GANs) have been widely used to recover vivid textures in image super-resolution (SR) tasks. In particular, one discriminator is utilized to enable the SR network to learn the distribution of real-world high-quality images in an adversarial training manner. However, the distribution learning is overly coarse-grained, which is susceptible to virtual textures and causes counter-intuitive generation results. To mitigate this, we propose the simple and effective Semantic-aware Discriminator (denoted as SeD), which encourages the SR network to learn the fine-grained distributions by introducing the semantics of images as a condition. Concretely, we aim to excavate the semantics of images from a well-trained semantic extractor. Under different semantics, the discriminator is able to distinguish the real-fake images individually and adaptively, which guides the SR network to learn the more fine-grained semantic-aware textures. To obtain accurate and abundant semantics, we take full advantage of recently popular pretrained vision models (PVMs) with extensive datasets, and then incorporate its semantic features into the discriminator through a well-designed spatial cross-attention module. In this way, our proposed semantic-aware discriminator empowered the SR network to produce more photo-realistic and pleasing images. Extensive experiments on two typical tasks, i.e., SR and Real SR have demonstrated the effectiveness of our proposed methods.","url_abs":"https://arxiv.org/abs/2402.19387v1","url_pdf":"https://arxiv.org/pdf/2402.19387v1.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":"sed-semantic-aware-discriminator-for-image","repo_url":"https://github.com/lbc12345/sed","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"image-super-resolution","task_name":"Image Super-Resolution"},{"task_slug":"super-resolution","task_name":"Super-Resolution"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2402.19387","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2402.19387"}},"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/lbc12345/sed","reach":null}],"summary":{"ran":3,"unverified":4},"by_repo_kind":{"official":{"samples":7,"ran":3,"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":7,"samples":[{"code_sha256_prefix":"b46f5f90925902c0","entry":"CrossAttention","repo":"lbc12345/sed","repo_kind":"official","path":"models/sed.py","file_url":"https://github.com/lbc12345/sed/blob/HEAD/models/sed.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b46f5f90925902c0"}},{"code_sha256_prefix":"b5d6d2fae2d26baf","entry":"FeedForward","repo":"lbc12345/sed","repo_kind":"official","path":"models/sed.py","file_url":"https://github.com/lbc12345/sed/blob/HEAD/models/sed.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b5d6d2fae2d26baf"}},{"code_sha256_prefix":"ad07663951101fc6","entry":"GEGLU","repo":"lbc12345/sed","repo_kind":"official","path":"models/sed.py","file_url":"https://github.com/lbc12345/sed/blob/HEAD/models/sed.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ad07663951101fc6"}},{"code_sha256_prefix":"8648f9eedf9e67ba","entry":"BasicTransformerBlock","repo":"lbc12345/sed","repo_kind":"official","path":"models/sed.py","file_url":"https://github.com/lbc12345/sed/blob/HEAD/models/sed.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":"8648f9eedf9e67ba"}},{"code_sha256_prefix":"ab36d971448db4b9","entry":"ModifiedSpatialTransformer","repo":"lbc12345/sed","repo_kind":"official","path":"models/sed.py","file_url":"https://github.com/lbc12345/sed/blob/HEAD/models/sed.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":"ab36d971448db4b9"}},{"code_sha256_prefix":"d37fd7b77c36eede","entry":"SeD_P","repo":"lbc12345/sed","repo_kind":"official","path":"models/sed.py","file_url":"https://github.com/lbc12345/sed/blob/HEAD/models/sed.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":"d37fd7b77c36eede"}},{"code_sha256_prefix":"67398af0e334d352","entry":"init_weights","repo":"lbc12345/sed","repo_kind":"official","path":"models/sed.py","file_url":"https://github.com/lbc12345/sed/blob/HEAD/models/sed.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":"67398af0e334d352"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}