SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 01705 · ECCV · 2024

Pixel-Aware Stable Diffusion for Realistic Image Super-Resolution and Personalized Stylization

Lei Zhang, Tao Yang, Xuansong Xie, Rongyuan Wu, Peiran Ren

Code that ran

6 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 5 failures of our instrument; 2 no recorded run), measured 2026-11-22; 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/01705.json · badge: /api/ran/01705.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
yangxy/PASD canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
FunctionStatusWhere it lives
HWC3 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yangxy/PASD/pasd/annotator/util.py
code served (permissive licence) · get_code("f9ec7d70add02b6f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 3, dtype family int, shape (4, 5, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Test case 1: 3-channel RGB image (most common case)
x_rgb = np.random.randint(0, 256, size=(4, 5, 3), dtype=np.uint8)

# Test case 2: 1-channel grayscale image
x_gray = np.random.randint(0, 256, size=(4, 5, 1), dtype=np.uint8)

# Test case 3: 4-channel RGBA image
x_rgba = np.random.randint(0, 256, size=(4, 5, 4), dtype=np.uint8)

# Test case 4: 2D image (will be expanded to 3D with 1 channel)
x_2d = np.random.randint(0, 256, size=(4, 5), dtype=np.uint8)

# Use the RGB case as the primary test
ARGS = {
    "x": x_rgb
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (4, 5, 3) — shape (4, 5, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
filter_keys Ran
ran; our contract draft was wrong, not the code
yangxy/PASD/pasd/dataloader/webdatasets.py
code served (permissive licence) · get_code("d81c3ca69afe5db9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned function. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# filter_keys takes a key_set parameter
# It returns a function _f that filters a dictionary
# key_set is used in: if k in key_set
# So key_set should be a set-like object (set, list, tuple, etc.)

# Create a simple key_set with some string keys
key_set = {'name', 'age', 'email'}

ARGS = {
    'key_set': key_set
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
opt_parse Ran
ran; our contract draft was wrong, not the code
yangxy/PASD/pasd/dataloader/realesrgan.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from SHH-Han/DNF-SR, is pointer only (licence: NOASSERTION) · get_code("fce64ea4638101fc")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from SHH-Han/DNF-SR, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

resize_image Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yangxy/PASD/pasd/annotator/util.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from DeepakSridhar/fgdm, is pointer only (licence: NOASSERTION) · get_code("50fd68f6989503c6")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from DeepakSridhar/fgdm, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

tokenize_caption Ran
ran on a synthesized input
yangxy/PASD/pasd/dataloader/webdatasets.py
code served (permissive licence) · get_code("753014db505e38bc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family int, shape (1, 77) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import random

class MockTokenizer:
    def __init__(self):
        self.model_max_length = 77
    
    def __call__(self, caption, max_length, padding, truncation, return_tensors):
        # Return a mock tokenizer output with input_ids
        batch_size = 1
        seq_length = max_length
        input_ids = torch.randint(0, 1000, (batch_size, seq_length))
        
        # Create a simple namespace-like object to hold input_ids
        class TokenizerOutput:
            def __init__(self, ids):
                self.input_ids = ids
        
        return TokenizerOutput(input_ids)

torch.manual_seed(0)
random.seed(0)

tokenizer = MockTokenizer()
caption = "a beautiful sunset over the ocean"
null_text_ratio = 0.1

ARGS = {
    "caption": caption,
    "tokenizer": tokenizer,
    "null_text_ratio": null_text_ratio
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family int, shape (1, 77) — shape (1, 77) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
zero_module Ran
ran; our contract draft was wrong, not the code
yangxy/PASD/pasd/models/pasd/controlnet.py
code served (permissive licence) · get_code("da94debb8019ad46")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned SimpleModule. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from torch import nn

torch.manual_seed(0)

# Create a simple neural network module with some parameters
class SimpleModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

# Instantiate the module
module = SimpleModule()

# Define the ARGS dictionary
ARGS = {
    "module": module
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SimpleModule — a SimpleModule output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleModule output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
import_model_class_from_model_name_or_path Not yet run
unverified (harvested, no recorded run)
yangxy/PASD/train_pasd.py
code served (permissive licence) · get_code("1f631e56c6e042ac")
How it ran

no invocation recorded.

parse_args Not yet run
unverified (harvested, no recorded run)
yangxy/PASD/train_pasd.py
code served (permissive licence) · get_code("4944919882051001")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 7 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 2 later) and 1 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
zero_module 40 other papers
10 dated earlier, 6 later, 24 same year, order not determinable
2305.13077 (2023-05)
ControlVideo: Training-free Controllable Text-to-Video Generation
2305.17098 (2023-05)
ControlVideo: Conditional Control for One-shot Text-driven Video Editing and Beyond
2308.03448 (2023-08)
Make Explicit Calibration Implicit: Calibrate Denoiser Instead of the Noise Model
and 37 more not named here
HWC3 18 other papers
8 dated earlier, 10 same year, order not determinable
2305.10973 (2023-05)
Drag Your GAN: Interactive Point-based Manipulation on the Generative Image Manifold
2305.16322 (2023-05)
Uni-ControlNet: All-in-One Control to Text-to-Image Diffusion Models
2305.17098 (2023-05)
ControlVideo: Conditional Control for One-shot Text-driven Video Editing and Beyond
and 15 more not named here
resize_image 13 other papers
6 dated earlier, 7 same year, order not determinable
2305.16322 (2023-05)
Uni-ControlNet: All-in-One Control to Text-to-Image Diffusion Models
2305.17098 (2023-05)
ControlVideo: Conditional Control for One-shot Text-driven Video Editing and Beyond
2308.09592 (2023-08)
StableVideo: Text-driven Consistency-aware Diffusion Video Editing
and 10 more not named here
filter_keys 4 other papers
2 dated earlier, 2 same year, order not determinable
2310.04378 (2023-10)
Latent Consistency Models: Synthesizing High-Resolution Images with Few-Step Inference
2311.05556 (2023-11)
LCM-LoRA: A Universal Stable-Diffusion Acceleration Module
2401.05252 (2024-01)
PIXART-δ: Fast and Controllable Image Generation with Latent Consistency Models
and 1 more not named here
opt_parse 4 other papers
2 later, 2 same year, order not determinable
2403.05049 (2024-03)
XPSR: Cross-modal Priors for Diffusion-based Image Super-Resolution
2412.03017 (2024-12)
Pixel-level and Semantic-level Adjustable Super-resolution: A Dual-LoRA Approach
2507.20291 (2025-07)
Fine-structure Preserved Real-world Image Super-resolution via Transfer VAE Training
and 1 more not named here
import_model_class_from_model_name_or_path 3 other papers
3 same year, order not determinable
2402.11929 (2024-02)
DiLightNet: Fine-grained Lighting Control for Diffusion-based Image Generation
2407.04842 (2024-07)
MJ-Bench: Is Your Multimodal Reward Model Really a Good Judge for Text-to-Image Generation?
2408.06070 (2024-08)
ControlNeXt: Powerful and Efficient Control for Image and Video Generation
parse_args 1 other paper
1 dated earlier
2308.14469 (2023-08)
Pixel-Aware Stable Diffusion for Realistic Image Super-resolution and Personalized Stylization

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

Diffusion models have demonstrated impressive performance in various image generation, editing, enhancement and translation tasks. In particular, the pre-trained text-to-image stable diffusion models provide a potential solution to the challenging realistic image super-resolution (Real-ISR) and image stylization problems with their strong generative priors. However, the existing methods along this line often fail to keep faithful pixel-wise image structures. If extra skip connections between the encoder and the decoder of a VAE are used to reproduce details, additional training in image space will be required, limiting the application to tasks in latent space such as image stylization. In this work, we propose a pixel-aware stable diffusion (PASD) network to achieve robust Real-ISR and personalized image stylization. Specifically, a pixel-aware cross attention module is introduced to enable diffusion models perceiving image local structures in pixel-wise level, while a degradation removal module is used to extract degradation insensitive features to guide the diffusion process together with image high level information. An adjustable noise schedule is introduced to further improve the image restoration results. By simply replacing the base diffusion model with a stylized one, PASD can generate diverse stylized images without collecting pairwise training data, and by shifting the base model with an aesthetic one, PASD can bring old photos back to life. Extensive experiments in a variety of image enhancement and stylization tasks demonstrate the effectiveness of our proposed PASD approach. Our source codes are available at https://github.com/yangxy/PASD/.

For agents

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

get_harvested_code_for_paper("01705")
get_code_for_paper("01705")
have("01705")

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

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

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

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

Connect an agent — have() is free.