SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.19387 · CVPR · 2024

SeD: Semantic-Aware Discriminator for Image Super-Resolution

Xin Li, Zhizheng Zhang, Zhibo Chen, Ruoyu Feng, Yeying Jin, Hanxin Zhu, Bingchen Li

arXiv · PDF · Open in the Atlas

Code that ran

3 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 0 failures of our instrument; 4 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2402.19387.json · badge: /api/ran/2402.19387.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
lbc12345/sed marked official in Papers with Code
Papers with Code archive
3 ran · 4 no recorded run
FunctionStatusWhere it lives
CrossAttention Ran
ran on a synthesized input
lbc12345/sed/models/sed.py
pointer only (licence: NONE) · get_code("b46f5f90925902c0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lbc12345/sed when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

FeedForward Ran
ran on a synthesized input · constructed an object; no result was computed
lbc12345/sed/models/sed.py
pointer only (licence: NONE) · get_code("b5d6d2fae2d26baf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lbc12345/sed when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

GEGLU Ran
ran on a synthesized input · constructed an object; no result was computed
lbc12345/sed/models/sed.py
pointer only (licence: NONE) · get_code("ad07663951101fc6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lbc12345/sed when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

BasicTransformerBlock Not yet run
unverified (harvested, no recorded run)
lbc12345/sed/models/sed.py
pointer only (licence: NONE) · get_code("8648f9eedf9e67ba")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lbc12345/sed when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

ModifiedSpatialTransformer Not yet run
unverified (harvested, no recorded run)
lbc12345/sed/models/sed.py
pointer only (licence: NONE) · get_code("ab36d971448db4b9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lbc12345/sed when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

SeD_P Not yet run
unverified (harvested, no recorded run)
lbc12345/sed/models/sed.py
pointer only (licence: NONE) · get_code("d37fd7b77c36eede")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lbc12345/sed when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

init_weights Not yet run
unverified (harvested, no recorded run)
lbc12345/sed/models/sed.py
pointer only (licence: NONE) · get_code("67398af0e334d352")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lbc12345/sed when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 3 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
GEGLU
brick of this paper's assembly: helper
21 other papers
13 dated earlier, 8 later · 18 only as an assembly brick
2211.05556 (2022-11)
Generating astronomical spectra from photometry with conditional diffusion models
2301.05225 (2023-01)
Domain Expansion of Image Generators
2302.04304 (2023-02)
Q-Diffusion: Quantizing Diffusion Models
and 18 more not named here
FeedForward
brick of this paper's assembly: helper
20 other papers
12 dated earlier, 8 later · 14 only as an assembly brick
2211.05556 (2022-11)
Generating astronomical spectra from photometry with conditional diffusion models
2301.05225 (2023-01)
Domain Expansion of Image Generators
2302.04304 (2023-02)
Q-Diffusion: Quantizing Diffusion Models
and 17 more not named here
CrossAttention
brick of this paper's assembly: model
7 other papers
4 dated earlier, 3 later · 1 only as an assembly brick
2208.01626 (2022-08)
Prompt-to-Prompt Image Editing with Cross Attention Control
2211.05556 (2022-11)
Generating astronomical spectra from photometry with conditional diffusion models
2304.02012 (2023-04)
EGC: Image Generation and Classification via a Diffusion Energy-Based Model
and 4 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Generative Adversarial Networks (GANs) have been widely used to recover vivid textures in image superresolution (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 semanticaware 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. The code will be available at https://github.com/ lbc12345/SeD.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2402.19387")
get_code_for_paper("2402.19387")
have("2402.19387")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2402.19387.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2402.19387.svg)](https://syntology.ai/paper/2402.19387)

Connect an agent — have() is free.