SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2010.13211 · 2020

D-VDAMP: Denoising-based Approximate Message Passing for Compressive MRI

arXiv · PDF · Open in the Atlas

Code that ran

3 of 3 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 3 have no contract verdict; 0 failures of our instrument; 0 no recorded run), measured 2026-11-24; 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/2010.13211.json · badge: /api/ran/2010.13211.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
Intelligent-Sensing/D-VDAMP canonical (classifier label)
classifier basis: census
3 ran · 0 no recorded run
FunctionStatusWhere it lives
cs_sim Ran
ran on a synthesized input
Intelligent-Sensing/D-VDAMP/algorithm/simulation.py
code served (permissive licence) · get_code("b0414b506e7c94cd")
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 tuple. 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)

# Create a minimal CStransform class that implements the required methods
class CStransform:
    def __init__(self, m, n):
        self.m = m
        self.n = n
        # Create a simple random measurement matrix
        self.A = torch.randn(m, n)
        self.At = self.A.t()
    
    def Afun(self, x):
        """Forward measurement operator"""
        # x has shape (n, 1), output should have shape (m, 1)
        return torch.matmul(self.A, x)
    
    def Atfun(self, y):
        """Adjoint/transpose operator"""
        # y has shape (m, 1), output should have shape (n, 1)
        return torch.matmul(self.At, y)
    
    def get_m(self):
        return self.m
    
    def get_n(self):
        return self.n


# Create a minimal IterativeDenoisingCSRecon algorithm class
class IterativeDenoisingCSRecon:
    def __init__(self, num_iterations=5):
        self.num_iterations = num_iterations
        self.ground_truth = None
    
    def __call__(self, y, Afun, Atfun, m, n):
        """
        Perform iterative CS reconstruction
        
        Returns:
            recon_image: reconstructed signal
            psnr: PSNR values at each iteration (or None)
            r_t: pseudo noisy image from last iteration
            std_est: estimated noise standard deviation
        """
        # Initialize reconstruction as adjoint of measurement
        x = Atfun(y)
        
        # Simple iterative reconstruction (gradient descent-like)
        psnr_vals = []
        for i in range(self.num_iterations):
            residual = y - Afun(x)
            x = x + 0.1 * Atfun(residual)
            
            if self.ground_truth is not None:
                mse = torch.mean((x - self.ground_truth) ** 2)
                psnr_vals.append(20 * torch.log10(1.0 / torch.sqrt(mse)))
        
        # Estimate noise std from residual
        final_residual = y - Afun(x)
        std_est = float(torch.std(final_residual).item())
        
        # r_t is the final pseudo noisy image
        r_t = final_residual
        
        # Return psnr as numpy array or None
        psnr = np.array([float(p.item()) for p in psnr_vals]) if psnr_vals else None
        
        return x, psnr, r_t, std_est


# Create a small image tensor (C=2, H=3, W=4)
image = torch.randn(2, 3, 4)

# Create CS transform
# Flatten image to get n = 2*3*4 = 24
n = 2 * 3 * 4
m = 12  # Number of measurements (underdetermined system)
cs_transform = CStransform(m, n)

# Standard deviation of noise
std = 0.1

# Create CS reconstruction algorithm
cs_algo = IterativeDenoisingCSRecon(num_iterations=3)

ARGS = {
    "image": image,
    "cs_transform": cs_transform,
    "std": std,
    "cs_algo": cs_algo,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
gen_pdf Ran
ran on a synthesized input
Intelligent-Sensing/D-VDAMP/algorithm/dvdamp.py
code served (permissive licence) · get_code("287e4bdd5cd62b06")
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 2, dtype family float, shape (32, 32) 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
import torch

torch.manual_seed(0)

ARGS = {
    'shape': (1, 32, 32),
    'sampling_rate': 0.3,
    'p': 8,
    'dist_type': 'l2',
    'radius': 0.0,
    'ret_tensor': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (32, 32) — shape (32, 32) 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
image_to_patches Ran
ran on a synthesized input
Intelligent-Sensing/D-VDAMP/train/preprocess.py
code served (permissive licence) · get_code("cf0cf79d559acab1")
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 4, dtype family float, shape (9, 3, 4, 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 numpy as np

# Create a small test image with shape (C, H, W)
# C=3 (color channels), H=8 (height), W=8 (width)
image = np.random.rand(3, 8, 8).astype(np.float32)

# Define window size (patch height and width)
window = 4

# Define stride
stride = 2

ARGS = {
    "image": image,
    "window": window,
    "stride": stride,
}
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 4, dtype family float, shape (9, 3, 4, 4) — shape (9, 3, 4, 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

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 3 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.

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

Plug and play (P&P) algorithms iteratively apply highly optimized image denoisers to impose priors and solve computational image reconstruction problems, to great effect. However, in general the "effective noise", that is the difference between the true signal and the intermediate solution, within the iterations of P&P algorithms is neither Gaussian nor white. This fact makes existing denoising algorithms suboptimal. In this work, we propose a CNN architecture for removing colored Gaussian noise and combine it with the recently proposed VDAMP algorithm, whose effective noise follows a predictable colored Gaussian distribution. We apply the resulting denoising-based VDAMP (D-VDAMP) algorithm to variable density sampled compressive MRI where it substantially outperforms existing techniques.

For agents

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

get_harvested_code_for_paper("2010.13211")
get_code_for_paper("2010.13211")
have("2010.13211")

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

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

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

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

Connect an agent — have() is free.