SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2412.03745 · 2024

Deep Variational Bayesian Modeling of Haze Degradation Process

arXiv · PDF · Open in the Atlas

Code that ran

6 of 14 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 8 no recorded run), measured 2026-11-23; 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/2412.03745.json · badge: /api/ran/2412.03745.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
eunwooim/variational-dehazing-networks canonical (classifier label)
classifier basis: census
3 ran · 8 no recorded run
imeunu/variational-dehazing-networks canonical (classifier label)
classifier basis: plan_row
3 ran · 0 no recorded run
FunctionStatusWhere it lives
default_conv Ran
ran; our contract draft was wrong, not the code
eunwooim/variational-dehazing-networks/GCANet/networks/FFANet.py
code served (permissive licence) · get_code("8b0e794d4d8f9b13")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 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': 5,
    'kernel_size': 3,
    'bias': True
}
Setup block drafted by
a language model, Claude Sonnet 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
gaussian Ran
ran, honoured the contract we drafted
eunwooim/variational-dehazing-networks/FFA-Net/metrics.py
pointer only (licence: MIT); the stored copy get_code serves, from JS-CHU/RoamScene3D, is pointer only (licence: NONE) · get_code("e2424ce033ba3a0f")
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 JS-CHU/RoamScene3D, 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.

get_relative_positions Ran
ran, honoured the contract we drafted
imeunu/variational-dehazing-networks/GCANet/networks/DehazeFormer.py
pointer only (licence: MIT); the stored copy get_code serves, from AWCXV/GIFNet, is pointer only (licence: NONE) · get_code("2a53db1b6432ab8c")
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 AWCXV/GIFNet, 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.

vlb_loss Ran
ran; our contract draft was wrong, not the code
eunwooim/variational-dehazing-networks/FFA-Net/loss.py
code served (permissive licence) · get_code("9ae5a705fd7726aa")
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, ndim 1, 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 torch
from math import pi, log, sqrt

torch.manual_seed(0)

# Create small tensors with batch size 2
batch_size = 2

# inp: input image tensor, shape [batch_size, channels]
inp = torch.randn(batch_size, 3)

# d_out: dehaze network output [alpha (3 dims), m2 (1 dim)]
d_out = torch.randn(batch_size, 4)

# t_out: transmission network output [beta (1 dim), n2 (1 dim)]
t_out = torch.randn(batch_size, 2)

# d_gt: ground truth dehaze values, shape [batch_size, 3]
d_gt = torch.randn(batch_size, 3)

# t_gt: ground truth transmission values, shape [batch_size, 1]
t_gt = torch.randn(batch_size, 1)

# A: atmospheric light, shape [batch_size, 3]
A = torch.randn(batch_size, 3)

# sigma: variance parameter, scalar
sigma = torch.tensor(0.1)

# eps1: epsilon for dehaze KL divergence
eps1 = torch.tensor(0.01)

# eps2: epsilon for transmission KL divergence
eps2 = torch.tensor(0.01)

# kl_j: type of KL divergence for dehaze ('gaussian' or 'laplace')
kl_j = 'gaussian'

# kl_t: type of KL divergence for transmission ('gaussian', 'laplace', or 'lognormal')
kl_t = 'gaussian'

ARGS = {
    'inp': inp,
    'd_out': d_out,
    't_out': t_out,
    'd_gt': d_gt,
    't_gt': t_gt,
    'A': A,
    'sigma': sigma,
    'eps1': eps1,
    'eps2': eps2,
    'kl_j': kl_j,
    'kl_t': kl_t,
}
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 tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
window_partition Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
imeunu/variational-dehazing-networks/GCANet/networks/DehazeFormer.py
pointer only (licence: MIT); the stored copy get_code serves, from AWCXV/GIFNet, is pointer only (licence: NONE) · get_code("751569c78a842e44")
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 AWCXV/GIFNet, 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.

window_reverse Ran
ran; our contract draft was wrong, not the code
imeunu/variational-dehazing-networks/GCANet/networks/DehazeFormer.py
pointer only (licence: MIT); the stored copy get_code serves, from xuwayyy/SHARE, is pointer only (licence: NONE) · get_code("7b0d02f75bf6b439")
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 xuwayyy/SHARE, 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.

create_window Not yet run
unverified (harvested, no recorded run)
eunwooim/variational-dehazing-networks/FFA-Net/metrics.py
code served (permissive licence) · get_code("8e6dfffd626f0962")
How it ran

no invocation recorded.

get_A Not yet run
unverified (harvested, no recorded run)
eunwooim/variational-dehazing-networks/FFA-Net/data_utils.py
code served (permissive licence) · get_code("5cee4e91730de546")
How it ran

no invocation recorded.

loss_val Not yet run
unverified (harvested, no recorded run)
eunwooim/variational-dehazing-networks/DehazeFormer/loss.py
code served (permissive licence) · get_code("4e61a3a852fc43e1")
How it ran

no invocation recorded.

ssim Not yet run
unverified (harvested, no recorded run)
eunwooim/variational-dehazing-networks/FFA-Net/metrics.py
code served (permissive licence) · get_code("45f7c22382b7ff2f")
How it ran

no invocation recorded.

to_tensor Not yet run
unverified (harvested, no recorded run)
eunwooim/variational-dehazing-networks/GCANet/dataloader.py
code served (permissive licence) · get_code("6f36ecc8aacd22ba")
How it ran

no invocation recorded.

vlb_loss Not yet run
unverified (harvested, no recorded run)
eunwooim/variational-dehazing-networks/DehazeFormer/loss.py
code served (permissive licence) · get_code("984903591d264892")
How it ran

no invocation recorded.

vlb_loss_value Not yet run
unverified (harvested, no recorded run)
eunwooim/variational-dehazing-networks/DehazeFormer/loss.py
code served (permissive licence) · get_code("4f59ce62f0dd7112")
How it ran

no invocation recorded.

vlb_loss_value Not yet run
unverified (harvested, no recorded run)
eunwooim/variational-dehazing-networks/FFA-Net/loss.py
code served (permissive licence) · get_code("c05ed721f8f2f110")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 3 the same month, 6 later) and 7 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
window_reverse 227 other papers
196 dated earlier, 3 the same month, 19 later, 9 same year, order not determinable · 34 only as an assembly brick
1608.03983 (2016-08)
SGDR: Stochastic Gradient Descent with Warm Restarts
1711.10925 (2017-11)
Deep Image Prior
2003.13678 (2020-03)
Designing Network Design Spaces
and 224 more not named here
gaussian 160 other papers
134 dated earlier, 6 the same month, 19 later, 1 same year, order not determinable · 7 only as an assembly brick
1812.11941 (2018-12)
High Quality Monocular Depth Estimation via Transfer Learning
1904.01538 (2019-04)
Spatial Attentive Single-Image Deraining with a High Quality Real Rain Dataset
1907.11628 (2019-07)
Unsupervised Learning for Optical Flow Estimation Using Pyramid Convolution LSTM
and 157 more not named here
default_conv 57 other papers
49 dated earlier, 5 later, 3 same year, order not determinable · 2 only as an assembly brick
1707.02921 (2017-07)
Enhanced Deep Residual Networks for Single Image Super-Resolution
1803.02735 (2018-03)
Deep Back-Projection Networks For Super-Resolution
1803.04626 (2018-03)
Maintaining Natural Image Statistics with the Contextual Loss
and 54 more not named here
create_window 52 other papers
47 dated earlier, 1 the same month, 4 later · 5 only as an assembly brick
1904.01538 (2019-04)
Spatial Attentive Single-Image Deraining with a High Quality Real Rain Dataset
1907.11628 (2019-07)
Unsupervised Learning for Optical Flow Estimation Using Pyramid Convolution LSTM
2002.11616 (2020-02)
Zooming Slow-Mo: Fast and Accurate One-Stage Space-Time Video Super-Resolution
and 49 more not named here
get_relative_positions 4 other papers
3 dated earlier, 1 later
2204.03883 (2022-04)
Vision Transformers for Single Image Dehazing
2403.01105 (2024-03)
Depth Information Assisted Collaborative Mutual Promotion Network for Single Image Dehazing
2403.18548 (2024-03)
A Semi-supervised Nighttime Dehazing Baseline with Spatial-Frequency Aware and Realistic Brightness Constraint
and 1 more not named here
window_partition 4 other papers
3 dated earlier, 1 later
2204.03883 (2022-04)
Vision Transformers for Single Image Dehazing
2403.01105 (2024-03)
Depth Information Assisted Collaborative Mutual Promotion Network for Single Image Dehazing
2403.18548 (2024-03)
A Semi-supervised Nighttime Dehazing Baseline with Spatial-Frequency Aware and Realistic Brightness Constraint
and 1 more not named here
ssim 1 other paper
1 dated earlier
2403.01105 (2024-03)
Depth Information Assisted Collaborative Mutual Promotion Network for Single Image Dehazing

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

Repositories linked to this paper

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

Abstract

Relying on the representation power of neural networks, most recent works have often neglected several factors involved in haze degradation, such as transmission (the amount of light reaching an observer from a scene over distance) and atmospheric light. These factors are generally unknown, making dehazing problems ill-posed and creating inherent uncertainties. To account for such uncertainties and factors involved in haze degradation, we introduce a variational Bayesian framework for single image dehazing. We propose to take not only a clean image and but also transmission map as latent variables, the posterior distributions of which are parameterized by corresponding neural networks: dehazing and transmission networks, respectively. Based on a physical model for haze degradation, our variational Bayesian framework leads to a new objective function that encourages the cooperation between them, facilitating the joint training of and thereby boosting the performance of each other. In our framework, a dehazing network can estimate a clean image independently of a transmission map estimation during inference, introducing no overhead. Furthermore, our model-agnostic framework can be seamlessly incorporated with other existing dehazing networks, greatly enhancing the performance consistently across datasets and models.

For agents

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

get_harvested_code_for_paper("2412.03745")
get_code_for_paper("2412.03745")
have("2412.03745")

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

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

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

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

Connect an agent — have() is free.