Papers › Maintaining Natural Image Statistics with the Contextual Loss

Maintaining Natural Image Statistics with the Contextual Loss

13 Mar 2018arXiv:1803.04626archive 2025-07-28

Roey Mechrez, Itamar Talmi, Firas Shama, Lihi Zelnik-Manor

Maintaining natural image statistics is a crucial factor in restoration and generation of realistic looking images. When training CNNs, photorealism is usually attempted by adversarial training (GAN), that pushes the output images to lie on the manifold of natural images. GANs are very powerful, but not perfect. They are hard to train and the results still often suffer from artifacts. In this paper we propose a complementary approach, that could be applied with or without GAN, whose goal is to train a feed-forward CNN to maintain natural internal statistics. We look explicitly at the distribution of features in an image and train the network to generate images with natural feature distributions. Our approach reduces by orders of magnitude the number of images required for training and achieves state-of-the-art results on both single-image super-resolution, and high-resolution surface normal estimation.

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="1803.04626")

Code

Syntology Ran 2 of 6 code samples harvested from 2 repositories linked to this paper; 4 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 1 ran with no contract checked.

By repository: community (archive-listed): 6 samples from 2 repositories, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

idearibosome/tf-perceptual-eusr mentioned on GitHubtfApache-2.0 report
roimehrez/contextualLoss mentioned on GitHubtf report
subeeshvasu/2018_subeesh_epsr_eccvw mentioned on GitHubpytorchMIT 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

6 samples harvested; 2 ran; 0 honoured the contract we drafted; 4 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.

1ran · our draft was wrong
1ran
4unverified

Licence: 2 of the 6 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

default_conv subeeshvasu/2018_subeesh_epsr_eccvw/EPSR_testcode/code/model/common.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 8b0e794d4d8f9b13 · report
quantize subeeshvasu/2018_subeesh_epsr_eccvw/EPSR_testcode/code/utility.py community (archive-listed) ran fingerprinted MIT (permissive) · b1c1acd3c89a39f3 · report
CX_loss roimehrez/contextualLoss/CX/CX_distance.py community (archive-listed) unverified no licence file found · pointer only · d7c555594cf97176 · report
calc_psnr subeeshvasu/2018_subeesh_epsr_eccvw/EPSR_testcode/code/utility.py community (archive-listed) unverified MIT (permissive) · a04007cfe560d01e · report
make_optimizer subeeshvasu/2018_subeesh_epsr_eccvw/EPSR_testcode/code/utility.py community (archive-listed) unverified MIT (permissive) · f3316005a99d1d08 · report
symetric_CX_loss roimehrez/contextualLoss/CX/CX_distance.py community (archive-listed) unverified no licence file found · pointer only · 9793849e67c6f7ab · report

Tasks

Image Super-ResolutionSuper-ResolutionSurface Normal Estimation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Convolution

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