SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2304.03994 · CVPR · 2023

RIDCP: Revitalizing Real Image Dehazing via High-Quality Codebook Priors

Chongyi Li, Zhi Chai, Zheng-Peng Duan, Chun-Le Guo, Rui-Qi Wu

arXiv · PDF · Open in the Atlas

Code that ran

5 of 20 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 5 have no contract verdict; 0 failures of our instrument; 15 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/2304.03994.json · badge: /api/ran/2304.03994.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
RQ-Wu/RIDCP_dehazing marked official in Papers with Code
Papers with Code archive
5 ran · 15 no recorded run
FunctionStatusWhere it lives
CombineQuantBlock Ran
ran on a synthesized input
RQ-Wu/RIDCP_dehazing/basicsr/archs/dehaze_vq_weight_arch.py
pointer only (licence: NOASSERTION) · get_code("98b8086551afc505")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, RQ-Wu/RIDCP_dehazing (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.

PatchEmbed Ran
ran on a synthesized input
RQ-Wu/RIDCP_dehazing/basicsr/archs/dehaze_vq_weight_arch.py
pointer only (licence: NOASSERTION) · get_code("316a2941ffe6e503")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, RQ-Wu/RIDCP_dehazing (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.

PatchUnEmbed Ran
ran on a synthesized input
RQ-Wu/RIDCP_dehazing/basicsr/archs/dehaze_vq_weight_arch.py
pointer only (licence: NOASSERTION) · get_code("57e191838eccb314")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, RQ-Wu/RIDCP_dehazing (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.

RSTB Ran
ran on a synthesized input
RQ-Wu/RIDCP_dehazing/basicsr/archs/dehaze_vq_weight_arch.py
pointer only (licence: NOASSERTION) · get_code("357ba1220656b8cf")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, RQ-Wu/RIDCP_dehazing (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.

WindowAttention Ran
ran on a synthesized input
RQ-Wu/RIDCP_dehazing/basicsr/archs/dehaze_vq_weight_arch.py
pointer only (licence: NOASSERTION) · get_code("48e41377ffa75208")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, RQ-Wu/RIDCP_dehazing (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.

BasicLayer Not yet run
unverified (harvested, no recorded run)
RQ-Wu/RIDCP_dehazing/basicsr/archs/dehaze_vq_weight_arch.py
pointer only (licence: NOASSERTION) · get_code("5bab9cf0da278cdd")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, RQ-Wu/RIDCP_dehazing (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. No invocation recorded.

DCNv2Pack Not yet run
unverified (harvested, no recorded run)
RQ-Wu/RIDCP_dehazing/basicsr/archs/dehaze_vq_weight_arch.py
pointer only (licence: NOASSERTION) · get_code("8a529df91e6d85ec")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, RQ-Wu/RIDCP_dehazing (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. No invocation recorded.

DecoderBlock Not yet run
unverified (harvested, no recorded run)
RQ-Wu/RIDCP_dehazing/basicsr/archs/dehaze_vq_weight_arch.py
pointer only (licence: NOASSERTION) · get_code("4691d3a2780aa4c8")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, RQ-Wu/RIDCP_dehazing (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. No invocation recorded.

ModulatedDeformConv Not yet run
unverified (harvested, no recorded run)
RQ-Wu/RIDCP_dehazing/basicsr/archs/dehaze_vq_weight_arch.py
pointer only (licence: NOASSERTION) · get_code("8fe94a4d56b986ff")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, RQ-Wu/RIDCP_dehazing (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. No invocation recorded.

ModulatedDeformConvPack Not yet run
unverified (harvested, no recorded run)
RQ-Wu/RIDCP_dehazing/basicsr/archs/dehaze_vq_weight_arch.py
pointer only (licence: NOASSERTION) · get_code("bc370612a5163031")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, RQ-Wu/RIDCP_dehazing (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. No invocation recorded.

MultiScaleDecoder Not yet run
unverified (harvested, no recorded run)
RQ-Wu/RIDCP_dehazing/basicsr/archs/dehaze_vq_weight_arch.py
pointer only (licence: NOASSERTION) · get_code("02baa6cd7348cf6b")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, RQ-Wu/RIDCP_dehazing (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. No invocation recorded.

MultiScaleEncoder Not yet run
unverified (harvested, no recorded run)
RQ-Wu/RIDCP_dehazing/basicsr/archs/dehaze_vq_weight_arch.py
pointer only (licence: NOASSERTION) · get_code("e51e884e57372d9d")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, RQ-Wu/RIDCP_dehazing (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. No invocation recorded.

Registry Not yet run
unverified (harvested, no recorded run)
RQ-Wu/RIDCP_dehazing/basicsr/archs/dehaze_vq_weight_arch.py
pointer only (licence: NOASSERTION) · get_code("a5db9179d98568ce")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, RQ-Wu/RIDCP_dehazing (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. No invocation recorded.

ResBlock Not yet run
unverified (harvested, no recorded run)
RQ-Wu/RIDCP_dehazing/basicsr/archs/dehaze_vq_weight_arch.py
pointer only (licence: NOASSERTION) · get_code("7775af00673aadf8")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, RQ-Wu/RIDCP_dehazing (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. No invocation recorded.

SwinLayers Not yet run
unverified (harvested, no recorded run)
RQ-Wu/RIDCP_dehazing/basicsr/archs/dehaze_vq_weight_arch.py
pointer only (licence: NOASSERTION) · get_code("09d15290f908d1d3")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, RQ-Wu/RIDCP_dehazing (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. No invocation recorded.

SwinTransformerBlock Not yet run
unverified (harvested, no recorded run)
RQ-Wu/RIDCP_dehazing/basicsr/archs/dehaze_vq_weight_arch.py
pointer only (licence: NOASSERTION) · get_code("ad1688f5befc5f30")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, RQ-Wu/RIDCP_dehazing (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. No invocation recorded.

VGGFeatureExtractor Not yet run
unverified (harvested, no recorded run)
RQ-Wu/RIDCP_dehazing/basicsr/archs/dehaze_vq_weight_arch.py
pointer only (licence: NOASSERTION) · get_code("49281385811fce95")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, RQ-Wu/RIDCP_dehazing (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. No invocation recorded.

VQWeightDehazeNet Not yet run
unverified (harvested, no recorded run)
RQ-Wu/RIDCP_dehazing/basicsr/archs/dehaze_vq_weight_arch.py
pointer only (licence: NOASSERTION) · get_code("8b0f749d672e59df")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, RQ-Wu/RIDCP_dehazing (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. No invocation recorded.

VectorQuantizer Not yet run
unverified (harvested, no recorded run)
RQ-Wu/RIDCP_dehazing/basicsr/archs/dehaze_vq_weight_arch.py
pointer only (licence: NOASSERTION) · get_code("6a91256c000435ed")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, RQ-Wu/RIDCP_dehazing (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. No invocation recorded.

WarpBlock Not yet run
unverified (harvested, no recorded run)
RQ-Wu/RIDCP_dehazing/basicsr/archs/dehaze_vq_weight_arch.py
pointer only (licence: NOASSERTION) · get_code("857343cb56612c9c")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, RQ-Wu/RIDCP_dehazing (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. No invocation recorded.

Also present in other papers' code

Of 20 samples lifted from this paper's linked repositories, 20 carry a function identity and 0 do not. Of the 20 distinct functions with an identity, 11 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 0 the same month, 9 later) and 9 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
WindowAttention
brick of this paper's assembly: helper
15 other papers
9 dated earlier, 6 later · 5 only as an assembly brick
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2108.10257 (2021-08)
SwinIR: Image Restoration Using Swin Transformer
2203.13963 (2022-03)
Transformer-empowered Multi-scale Contextual Matching and Aggregation for Multi-contrast MRI Super-resolution
and 12 more not named here
PatchEmbed
brick of this paper's assembly: helper
5 other papers
2 dated earlier, 3 later · 2 only as an assembly brick
2108.10257 (2021-08)
SwinIR: Image Restoration Using Swin Transformer
2203.13963 (2022-03)
Transformer-empowered Multi-scale Contextual Matching and Aggregation for Multi-contrast MRI Super-resolution
2310.01840 (2023-10)
Self-Supervised High Dynamic Range Imaging with Multi-Exposure Images in Dynamic Scenes
and 2 more not named here
PatchUnEmbed
brick of this paper's assembly: helper
5 other papers
2 dated earlier, 3 later · 2 only as an assembly brick
2108.10257 (2021-08)
SwinIR: Image Restoration Using Swin Transformer
2203.13963 (2022-03)
Transformer-empowered Multi-scale Contextual Matching and Aggregation for Multi-contrast MRI Super-resolution
2310.01840 (2023-10)
Self-Supervised High Dynamic Range Imaging with Multi-Exposure Images in Dynamic Scenes
and 2 more not named here
SwinTransformerBlock
brick of this paper's assembly: helper
5 other papers
3 dated earlier, 2 later · 2 only as an assembly brick
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2108.10257 (2021-08)
SwinIR: Image Restoration Using Swin Transformer
2203.13963 (2022-03)
Transformer-empowered Multi-scale Contextual Matching and Aggregation for Multi-contrast MRI Super-resolution
and 2 more not named here
BasicLayer
brick of this paper's assembly: helper
4 other papers
2 dated earlier, 2 later · 1 only as an assembly brick
2108.10257 (2021-08)
SwinIR: Image Restoration Using Swin Transformer
2203.13963 (2022-03)
Transformer-empowered Multi-scale Contextual Matching and Aggregation for Multi-contrast MRI Super-resolution
2310.01840 (2023-10)
Self-Supervised High Dynamic Range Imaging with Multi-Exposure Images in Dynamic Scenes
and 1 more not named here
RSTB
brick of this paper's assembly: helper
2 other papers
1 dated earlier, 1 later
2108.10257 (2021-08)
SwinIR: Image Restoration Using Swin Transformer
2503.13147 (2025-03)
Iterative Predictor-Critic Code Decoding for Real-World Image Dehazing
VGGFeatureExtractor
brick of this paper's assembly: helper
2 other papers
2 later
2308.03262 (2023-08)
A Benchmark for Chinese-English Scene Text Image Super-resolution
2503.13147 (2025-03)
Iterative Predictor-Critic Code Decoding for Real-World Image Dehazing
CombineQuantBlock
brick of this paper's assembly: model
1 other paper
1 later
2503.13147 (2025-03)
Iterative Predictor-Critic Code Decoding for Real-World Image Dehazing
DecoderBlock
brick of this paper's assembly: helper
1 other paper
1 later
2503.13147 (2025-03)
Iterative Predictor-Critic Code Decoding for Real-World Image Dehazing
ModulatedDeformConv
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2205.06803 (2022-05)
VQFR: Blind Face Restoration with Vector-Quantized Dictionary and Parallel Decoder
ModulatedDeformConvPack
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2205.06803 (2022-05)
VQFR: Blind Face Restoration with Vector-Quantized Dictionary and Parallel Decoder

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

Existing dehazing approaches struggle to process realworld hazy images owing to the lack of paired real data and robust priors. In this work, we present a new paradigm for real image dehazing from the perspectives of synthesizing more realistic hazy data and introducing more robust priors into the network. Specifically, (1) instead of adopting the de facto physical scattering model, we rethink the degradation of real hazy images and propose a phenomenological pipeline considering diverse degradation types. (2) We propose a Real Image Dehazing network via high-quality Codebook Priors (RIDCP). Firstly, a VQGAN is pre-trained on a large-scale high-quality dataset to obtain the discrete codebook, encapsulating high-quality priors (HQPs). After replacing the negative effects brought by haze with HQPs, the decoder equipped with a novel normalized feature alignment module can effectively utilize high-quality features and produce clean results. However, although our degradation pipeline drastically mitigates the domain gap between synthetic and real data, it is still intractable to avoid it, which challenges HQPs matching in the wild. Thus, we re-calculate the distance when matching the features to the HQPs by a controllable matching operation, which facilitates finding better counterparts. We provide a recommendation to control the matching based on an explainable solution. Users can also flexibly adjust the enhancement degree as per their preference. Extensive experiments verify the effectiveness of our data synthesis pipeline and the superior performance of RIDCP in real image dehazing. Code and data are released at https://rqwu.github.io/projects/RIDCP.

For agents

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

get_harvested_code_for_paper("2304.03994")
get_code_for_paper("2304.03994")
have("2304.03994")

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

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

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

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

Connect an agent — have() is free.