Papers › SinDiffusion: Learning a Diffusion Model from a Single Natural Image

SinDiffusion: Learning a Diffusion Model from a Single Natural Image

22 Nov 2022arXiv:2211.12445archive 2025-07-28

Weilun Wang, Jianmin Bao, Wengang Zhou, Dongdong Chen, Dong Chen, Lu Yuan, Houqiang Li

We present SinDiffusion, leveraging denoising diffusion models to capture internal distribution of patches from a single natural image. SinDiffusion significantly improves the quality and diversity of generated samples compared with existing GAN-based approaches. It is based on two core designs. First, SinDiffusion is trained with a single model at a single scale instead of multiple models with progressive growing of scales which serves as the default setting in prior work. This avoids the accumulation of errors, which cause characteristic artifacts in generated results. Second, we identify that a patch-level receptive field of the diffusion network is crucial and effective for capturing the image's patch statistics, therefore we redesign the network structure of the diffusion model. Coupling these two designs enables us to generate photorealistic and diverse images from a single image. Furthermore, SinDiffusion can be applied to various applications, i.e., text-guided image generation, and image outpainting, due to the inherent capability of diffusion models. Extensive experiments on a wide range of images demonstrate the superiority of our proposed method for modeling the patch distribution.

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

Code

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

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

weilunwang/sindiffusion officialmentioned in papermentioned on GitHubpytorchApache-2.0 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

20 samples harvested; 13 ran; 3 honoured the contract we drafted; 7 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.

3ran · honoured contract
6ran · our draft was wrong
4ran
7unverified

Licence: 0 of the 20 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 weilunwang/sindiffusion. “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.

approx_standard_normal_cdf weilunwang/sindiffusion/guided_diffusion/losses.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · cfd76fd0d89574a4 · report
betas_for_alpha_bar weilunwang/sindiffusion/guided_diffusion/gaussian_diffusion.py official repository ran · honoured contract Apache-2.0 (permissive) · 2ab2316ac6fdd869 · report
create_named_schedule_sampler weilunwang/sindiffusion/guided_diffusion/resample.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 35572566acf61c78 · report
denorm weilunwang/sindiffusion/guided_diffusion/imresize.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 289ace78904e68a8 · report
discretized_gaussian_log_likelihood weilunwang/sindiffusion/guided_diffusion/losses.py official repository ran · our draft was wrong Apache-2.0 (permissive) · cd33283d615fb3d7 · report
get_named_beta_schedule weilunwang/sindiffusion/guided_diffusion/gaussian_diffusion.py official repository ran · honoured contract Apache-2.0 (permissive) · a086d6286a40b889 · report
get_param_groups_and_shapes weilunwang/sindiffusion/guided_diffusion/fp16_util.py official repository ran Apache-2.0 (permissive) · e41367ad14ff58fd · report
make_master_params weilunwang/sindiffusion/guided_diffusion/fp16_util.py official repository ran Apache-2.0 (permissive) · e20dd5102da3b050 · report
make_output_format weilunwang/sindiffusion/guided_diffusion/logger.py official repository ran Apache-2.0 (permissive) · bcd8b4acab199405 · report
norm weilunwang/sindiffusion/guided_diffusion/imresize.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 0489bfec4716b314 · report
normal_kl weilunwang/sindiffusion/guided_diffusion/losses.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · cf2798b666b231ca · report
unflatten_master_params weilunwang/sindiffusion/guided_diffusion/fp16_util.py official repository ran Apache-2.0 (permissive) · 64fff1e30802b815 · report
zero_module weilunwang/sindiffusion/guided_diffusion/nn.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 129b804760b3115f · report
avg_pool_nd weilunwang/sindiffusion/guided_diffusion/nn.py official repository unverified Apache-2.0 (permissive) · ecd0fc28815b65ae · report
center_crop_arr weilunwang/sindiffusion/guided_diffusion/image_datasets.py official repository unverified Apache-2.0 (permissive) · 0b370d8cdcf5c1b9 · report
conv_nd weilunwang/sindiffusion/guided_diffusion/nn.py official repository unverified Apache-2.0 (permissive) · fe4eb545bbb728e0 · report
move_to_gpu weilunwang/sindiffusion/guided_diffusion/imresize.py official repository unverified Apache-2.0 (permissive) · 5d8022d115a3f72e · report
mpi_weighted_mean weilunwang/sindiffusion/guided_diffusion/logger.py official repository unverified Apache-2.0 (permissive) · e515a67f7f32e76d · report
profile weilunwang/sindiffusion/guided_diffusion/logger.py official repository unverified Apache-2.0 (permissive) · 37d879dc84ff188e · report
random_crop_arr weilunwang/sindiffusion/guided_diffusion/image_datasets.py official repository unverified Apache-2.0 (permissive) · 114572c5d3736a4d · report

Tasks

DenoisingDiversityImage GenerationImage Outpainting

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Generation Places50 SinDiffusion LPIPS 0.387 #1 of 5 Archive leaderboard report
Image Generation Places50 SinDiffusion SIFID 0.06 #1 of 5 Archive leaderboard report
Image Generation Places50 ConSinGAN LPIPS 0.305 #2 of 5 Archive leaderboard report
Image Generation Places50 ConSinGAN SIFID 0.06 #2 of 5 Archive leaderboard report
Image Generation Places50 SinGan LPIPS 0.266 #3 of 5 Archive leaderboard report
Image Generation Places50 SinGan SIFID 0.09 #3 of 5 Archive leaderboard report
Image Generation Places50 GPNN LPIPS 0.256 #4 of 5 Archive leaderboard report
Image Generation Places50 GPNN SIFID 0.07 #4 of 5 Archive leaderboard report
Image Generation Places50 ExSinGAN LPIPS 0.248 #5 of 5 Archive leaderboard report
Image Generation Places50 ExSinGAN SIFID 0.1 #5 of 5 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Diffusion

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