Papers › Explore Internal and External Similarity for Single Image Deraining with Graph Neural Networks

Explore Internal and External Similarity for Single Image Deraining with Graph Neural Networks

2 Jun 2024arXiv:2406.00721archive 2025-07-28

Cong Wang, Wei Wang, Chengjin Yu, Jie Mu

Patch-level non-local self-similarity is an important property of natural images. However, most existing methods do not consider this property into neural networks for image deraining, thus affecting recovery performance. Motivated by this property, we find that there exists significant patch recurrence property of a rainy image, that is, similar patches tend to recur many times in one image and its multi-scale images and external images. To better model this property for image detaining, we develop a multi-scale graph network with exemplars, called MSGNN, that contains two branches: 1) internal data-based supervised branch is used to model the internal relations of similar patches from the rainy image itself and its multi-scale images and 2) external data-participated unsupervised branch is used to model the external relations of the similar patches in the rainy image and exemplar. Specifically, we construct a graph model by searching the k-nearest neighboring patches from both the rainy images in a multi-scale framework and the exemplar. After obtaining the corresponding k neighboring patches from the multi-scale images and exemplar, we build a graph and aggregate them in an attentional manner so that the graph can provide more information from similar patches for image deraining. We embed the proposed graph in a deep neural network and train it in an end-to-end manner. Extensive experiments demonstrate that the proposed algorithm performs favorably against eight state-of-the-art methods on five public synthetic datasets and one real-world dataset. The source codes will be available at https://github.com/supersupercong/MSGNN.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2406.00721")

Code

Syntology Ran 7 of 17 code samples harvested from 1 repository linked to this paper; 10 have no recorded run. Of those that ran: 2 ran · honoured contract; 2 ran · violated contract; 2 ran · our draft was wrong; 1 ran with no contract checked.

By repository: official repository: 17 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

supersupercong/msgnn officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 7 ran; 2 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
2ran · violated contract
2ran · our draft was wrong
1ran
10unverified

Licence: 17 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from supersupercong/MSGNN. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

conv supersupercong/MSGNN/msgnn/config/graph/graph_module.py official repository ran no licence file found · pointer only · 26c1bb4e9381e4ba · report
create_window supersupercong/msgnn/msgnn/config/cal_ssim.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · 6154e3744ece5728 · report
default supersupercong/msgnn/msgnn/config/model.py official repository ran · violated contract fingerprinted no licence file found · pointer only · 60fff7c3c400d7ff · report
default_conv supersupercong/msgnn/msgnn/config/graph/common.py official repository ran · our draft was wrong no licence file found · pointer only · 8b0e794d4d8f9b13 · report
exists supersupercong/msgnn/msgnn/config/model.py official repository ran · violated contract no licence file found · pointer only · aa5486a3650902d8 · report
gaussian supersupercong/msgnn/msgnn/config/cal_ssim.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · c56b7ef16f309a45 · report
hard_knn supersupercong/MSGNN/msgnn/config/graph/graph_module.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 6427f82248a8abb5 · report
Graph supersupercong/MSGNN/msgnn/config/graph/graph_module.py official repository unverified no licence file found · pointer only · 368449386e495711 · report
GraphConstruct supersupercong/MSGNN/msgnn/config/graph/graph_module.py official repository unverified no licence file found · pointer only · ffe5a3abf305339d · report
PSNR supersupercong/msgnn/msgnn/config/show.py official repository unverified no licence file found · pointer only · 0f60b3b109b79d11 · report
compute_distances supersupercong/MSGNN/msgnn/config/graph/graph_module.py official repository unverified no licence file found · pointer only · 053a40727da7d7d6 · report
compute_distances supersupercong/msgnn/msgnn/config/graph/graph_agg.py official repository unverified no licence file found · pointer only · 6235338c52d1b7e2 · report
hard_knn supersupercong/msgnn/msgnn/config/graph/graph_agg.py official repository unverified no licence file found · pointer only · cad60b1ce9a189ff · report
index_neighbours supersupercong/MSGNN/msgnn/config/graph/graph_module.py official repository unverified no licence file found · pointer only · 9cbb1788573756ac · report
index_neighbours supersupercong/msgnn/msgnn/config/graph/graph_agg.py official repository unverified no licence file found · pointer only · f0d617e4aff44069 · report
index_neighbours supersupercong/msgnn/msgnn/config/graph/lib/111.py official repository unverified no licence file found · pointer only · 9ab0226b39401b47 · report
ssim supersupercong/msgnn/msgnn/config/cal_ssim.py official repository unverified no licence file found · pointer only · 9151c793f90473f0 · report

Tasks

Rain RemovalSingle Image Deraining

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections