SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2005.00305 · 2020

Defocus Deblurring Using Dual-Pixel Data

arXiv · PDF · Open in the Atlas

Code that ran

1 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 0 have no contract verdict; 1 failure of our instrument; 5 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/2005.00305.json · badge: /api/ran/2005.00305.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
Abdullah-Abuolaim/defocus-deblurring-dual-pixel canonical (classifier label)
classifier basis: census
1 ran · 5 no recorded run
FunctionStatusWhere it lives
shapness_measure Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Abdullah-Abuolaim/defocus-deblurring-dual-pixel/DPDNet/image_to_patch_filter.py
code served (permissive licence) · get_code("d7970eb4bceee2a9")
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 float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 cv2
from copy import deepcopy

# Create a small grayscale image (4x3 to have distinct dimensions)
img_temp = np.random.randint(0, 256, size=(4, 3), dtype=np.uint8)

# Set kernel_size to an odd integer (required by cv2.Sobel)
kernel_size = 3

ARGS = {
    "img_temp": img_temp,
    "kernel_size": kernel_size,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
MAE Not yet run
unverified (harvested, no recorded run)
Abdullah-Abuolaim/defocus-deblurring-dual-pixel/DPDNet/metrics.py
code served (permissive licence) · get_code("580af109538f83ac")
How it ran

no invocation recorded.

MSE_PSNR_SSIM Not yet run
unverified (harvested, no recorded run)
Abdullah-Abuolaim/defocus-deblurring-dual-pixel/DPDNet/metrics.py
code served (permissive licence) · get_code("2ee2bacff552f178")
How it ran

no invocation recorded.

schedule_learning_rate Not yet run
unverified (harvested, no recorded run)
Abdullah-Abuolaim/defocus-deblurring-dual-pixel/DPDNet/data.py
code served (permissive licence) · get_code("bfba30416312eaa0")
How it ran

no invocation recorded.

test_generator Not yet run
unverified (harvested, no recorded run)
Abdullah-Abuolaim/defocus-deblurring-dual-pixel/DPDNet/data.py
code served (permissive licence) · get_code("b1528d598bd78556")
How it ran

no invocation recorded.

unet Not yet run
unverified (harvested, no recorded run)
Abdullah-Abuolaim/defocus-deblurring-dual-pixel/DPDNet/model.py
code served (permissive licence) · get_code("7b3eae468fe34143")
How it ran

no invocation 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, 2 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 2 later) and 4 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
MAE 2 other papers
2 later
Zamir_Restormer_Efficient_Transformer_for_High-Resolution_Image_Restoration_CVPR_2022_paper (2022 (year only))
Restormer: Efficient Transformer for High-Resolution Image Restoration
2303.02881 (2023-03)
KBNet: Kernel Basis Network for Image Restoration
shapness_measure 1 other paper
1 later
Zamir_Restormer_Efficient_Transformer_for_High-Resolution_Image_Restoration_CVPR_2022_paper (2022 (year only))
Restormer: Efficient Transformer for High-Resolution Image Restoration

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

Defocus blur arises in images that are captured with a shallow depth of field due to the use of a wide aperture. Correcting defocus blur is challenging because the blur is spatially varying and difficult to estimate. We propose an effective defocus deblurring method that exploits data available on dual-pixel (DP) sensors found on most modern cameras. DP sensors are used to assist a camera's auto-focus by capturing two sub-aperture views of the scene in a single image shot. The two sub-aperture images are used to calculate the appropriate lens position to focus on a particular scene region and are discarded afterwards. We introduce a deep neural network (DNN) architecture that uses these discarded sub-aperture images to reduce defocus blur. A key contribution of our effort is a carefully captured dataset of 500 scenes (2000 images) where each scene has: (i) an image with defocus blur captured at a large aperture; (ii) the two associated DP sub-aperture views; and (iii) the corresponding all-in-focus image captured with a small aperture. Our proposed DNN produces results that are significantly better than conventional single image methods in terms of both quantitative and perceptual metrics -- all from data that is already available on the camera but ignored. The dataset, code, and trained models are available at https://github.com/Abdullah-Abuolaim/defocus-deblurring-dual-pixel.

For agents

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

get_harvested_code_for_paper("2005.00305")
get_code_for_paper("2005.00305")
have("2005.00305")

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

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

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

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

Connect an agent — have() is free.