SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · ijcai2022_0131 · IJCAI · 2022

Exploring Fourier Prior for Single Image Rain Removal

Man Zhou, Zheng-Jun Zha, Zhen Huang, Xin Guo, Xueyang Fu, Jialun Peng

Code that ran

6 of 6 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; 0 no recorded run), measured 2026-11-24; 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/ijcai2022_0131.json · badge: /api/ran/ijcai2022_0131.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
willinglucky/Exploring-Fourier-Prior-for-Single-Image-Rain-Removal canonical (classifier label)
classifier basis: census
6 ran · 0 no recorded run
FunctionStatusWhere it lives
conv Ran
ran; our contract draft was wrong, not the code
willinglucky/Exploring-Fourier-Prior-for-Single-Image-Rain-Removal/model.py
code served (permissive licence) · get_code("ad4c565716dab068")
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 Conv2d. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "in_channels": 3,
    "out_channels": 16,
    "kernel_size": 3,
    "bias": False,
    "stride": 1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
conv3x3 Ran
ran; our contract draft was wrong, not the code
willinglucky/Exploring-Fourier-Prior-for-Single-Image-Rain-Removal/model.py
pointer only (licence: MIT); the stored copy get_code serves, from dasongli1/learning_degradation, is pointer only (licence: NONE) · get_code("822614ced2dcad7a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from dasongli1/learning_degradation, and GitHub detected no licence in that repository 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.

conv_down Ran
ran; our contract draft was wrong, not the code
willinglucky/Exploring-Fourier-Prior-for-Single-Image-Rain-Removal/model.py
pointer only (licence: MIT); the stored copy get_code serves, from alexhe101/FourierISP, is pointer only (licence: NONE) · get_code("9c428010a12468a3")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from alexhe101/FourierISP, and GitHub detected no licence in that repository 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.

l1_loss Ran
ran on a synthesized input
willinglucky/Exploring-Fourier-Prior-for-Single-Image-Rain-Removal/loss.py
code served (permissive licence) · get_code("b82974577470a584")
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 float, shape (2, 4) 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 torch.nn.functional as F

torch.manual_seed(0)

# Create small tensors for pred and target
# Using distinct dimensions: batch=2, features=4
pred = torch.randn(2, 4)
target = torch.randn(2, 4)

ARGS = {
    'pred': pred,
    'target': target
}
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 float, shape (2, 4) — shape (2, 4) 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
prepare_for_ssim Ran
ran; our contract draft was wrong, not the code
willinglucky/Exploring-Fourier-Prior-for-Single-Image-Rain-Removal/metric.py
pointer only (licence: MIT); the stored copy get_code serves, from AlifAshrafee/Restoring-Without-Forgetting, is pointer only (licence: NONE) · get_code("95c6eba9350a455a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from AlifAshrafee/Restoring-Without-Forgetting, and GitHub detected no licence in that repository 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.

prepare_for_ssim_rgb Ran
ran; our contract draft was wrong, not the code
willinglucky/Exploring-Fourier-Prior-for-Single-Image-Rain-Removal/metric.py
pointer only (licence: MIT); the stored copy get_code serves, from AlifAshrafee/Restoring-Without-Forgetting, is pointer only (licence: NONE) · get_code("fb93712db7064ac4")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from AlifAshrafee/Restoring-Without-Forgetting, and GitHub detected no licence in that repository 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.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 5 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 4 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
conv 22 other papers
2 dated earlier, 15 later, 5 same year, order not determinable · 7 only as an assembly brick
2102.02808 (2021-02)
Multi-Stage Progressive Image Restoration
2106.03106 (2021-06)
Uformer: A General U-Shaped Transformer for Image Restoration
136790177 (2022 (year only))
Frequency and Spatial Dual Guidance for Image Dehazing
and 19 more not named here
prepare_for_ssim 8 other papers
7 later, 1 same year, order not determinable
2204.04676 (2022-04)
Simple Baselines for Image Restoration
2401.15235 (2024-01)
CascadedGaze: Efficiency in Global Context Extraction for Image Restoration
and 5 more not named here
prepare_for_ssim_rgb 5 other papers
5 later
2405.03349 (2024-05)
Retinexmamba: Retinex-based Mamba for Low-light Image Enhancement
2409.01274 (2024-09)
DAVIDE: Depth-Aware Video Deblurring
2412.01427 (2024-12)
FoundIR: Unleashing Million-scale Training Data to Advance Foundation Models for Image Restoration
and 2 more not named here
conv_down 4 other papers
1 later, 3 same year, order not determinable · 2 only as an assembly brick
2204.04676 (2022-04)
Simple Baselines for Image Restoration
2204.13348 (2022-04)
Deep Generalized Unfolding Networks for Image Restoration
2208.05244 (2022-08)
Learning Degradation Representations for Image Deblurring
and 1 more not named here
conv3x3 2 other papers
2 same year, order not determinable
2204.04676 (2022-04)
Simple Baselines for Image Restoration
2208.05244 (2022-08)
Learning Degradation Representations for Image Deblurring

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-24.

Repositories linked to this paper

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

Abstract

Deep convolutional neural networks (CNNs) have become dominant in the task of single image rain removal. Most of current CNN methods, however, suffer from the problem of overfitting on one single synthetic dataset as they neglect the intrinsic prior of the physical properties of rain streaks. To address this issue, we propose a simple but effective prior -Fourier prior to improve the generalization ability of an image rain removal model. The Fourier prior is a kind of property of rainy images. It is based on a key observation of us -replacing the Fourier amplitude of rainy images with that of clean images greatly suppresses the synthetic and real-world rain streaks. This means the amplitude contains most of the rain streak information and the phase keeps the similar structures of the background. So it is natural for single image rain removal to process the amplitude and phase information of the rainy images separately. In this paper, we develop a two-stage model where the first stage restores the amplitude of rainy images to clean rain streaks, and the second stage restores the phase information to refine fine-grained background structures. Extensive experiments on synthetic rainy data demonstrate the power of Fourier prior. Moreover, when trained on synthetic data, a robust generalization ability to real-world images can also be obtained. The code will be publicly available at https://github.com/willinglucky/Exploring-Fourier-Prior-for-Single-Image-Rain-Removal.

For agents

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

get_harvested_code_for_paper("ijcai2022_0131")
get_code_for_paper("ijcai2022_0131")
have("ijcai2022_0131")

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

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

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

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

Connect an agent — have() is free.