Papers › Inf-DiT: Upsampling Any-Resolution Image with Memory-Efficient Diffusion Transformer

Inf-DiT: Upsampling Any-Resolution Image with Memory-Efficient Diffusion Transformer

7 May 2024arXiv:2405.04312archive 2025-07-28

Zhuoyi Yang, Heyang Jiang, Wenyi Hong, Jiayan Teng, Wendi Zheng, Yuxiao Dong, Ming Ding, Jie Tang

Diffusion models have shown remarkable performance in image generation in recent years. However, due to a quadratic increase in memory during generating ultra-high-resolution images (e.g. 4096*4096), the resolution of generated images is often limited to 1024*1024. In this work. we propose a unidirectional block attention mechanism that can adaptively adjust the memory overhead during the inference process and handle global dependencies. Building on this module, we adopt the DiT structure for upsampling and develop an infinite super-resolution model capable of upsampling images of various shapes and resolutions. Comprehensive experiments show that our model achieves SOTA performance in generating ultra-high-resolution images in both machine and human evaluation. Compared to commonly used UNet structures, our model can save more than 5x memory when generating 4096*4096 images. The project URL is https://github.com/THUDM/Inf-DiT.

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

Code

Syntology Ran 17 of 19 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 1 ran · honoured contract; 3 ran · violated contract; 2 ran · our draft was wrong; 1 ran · fixture could not drive it; 10 ran with no contract checked.

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

thudm/inf-dit 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

19 samples harvested; 17 ran; 1 honoured the contract we drafted; 2 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 · honoured contract
3ran · violated contract
2ran · our draft was wrong
1ran · fixture could not drive it
10ran
2unverified

Licence: 0 of the 19 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 thudm/inf-dit. “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.

calculate_weights_indices thudm/inf-dit/dit/image_degradation.py official repository ran Apache-2.0 (permissive) · 38208ce0e3a67cb8 · report
cubic thudm/inf-dit/dit/image_degradation.py official repository ran fingerprinted Apache-2.0 (permissive) · cf8b0785f1ca3da5 · report
dct thudm/inf-dit/dit/torch_dct.py official repository ran fingerprinted Apache-2.0 (permissive) · 6060d8e21163df8b · report
default thudm/inf-dit/dit/unet/attention.py official repository ran · violated contract Apache-2.0 (permissive) · 424012cb37b31172 · report
disabled_train thudm/inf-dit/dit/model.py official repository ran · violated contract Apache-2.0 (permissive) · 4cb732f513d69dfd · report
exists thudm/inf-dit/dit/unet/attention.py official repository ran · violated contract Apache-2.0 (permissive) · aa5486a3650902d8 · report
get_1d_sincos_pos_embed_from_grid thudm/inf-dit/dit/embeddings.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · e5947aba1d10885f · report
get_2d_sincos_pos_embed thudm/inf-dit/dit/embeddings.py official repository ran · honoured contract Apache-2.0 (permissive) · c92c27c924b517e8 · report
modulate thudm/inf-dit/dit/model.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 03310bba324ae4fb · report
np_centercrop thudm/inf-dit/dit/data.py official repository ran fingerprinted Apache-2.0 (permissive) · 245bff2d5744c476 · report
pil_resize thudm/inf-dit/dit/data.py official repository ran Apache-2.0 (permissive) · 6949028112cefc2e · report
pil_to_np thudm/inf-dit/dit/data.py official repository ran Apache-2.0 (permissive) · 1516958b94bcff00 · report
re_arrange thudm/inf-dit/dit/torch_dct.py official repository ran fingerprinted Apache-2.0 (permissive) · 97992bb749230270 · report
recover thudm/inf-dit/dit/torch_dct.py official repository ran Apache-2.0 (permissive) · 298f40d70a5d2ee4 · report
uint2single thudm/inf-dit/dit/image_degradation.py official repository ran fingerprinted Apache-2.0 (permissive) · 9aa26711dc747d66 · report
uniq thudm/inf-dit/dit/unet/attention.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 9a299fe5ae09e407 · report
unpatchify thudm/inf-dit/dit/model.py official repository ran Apache-2.0 (permissive) · f7164d319c0fe4db · report
get_2d_sincos_pos_embed_from_grid thudm/inf-dit/dit/embeddings.py official repository unverified Apache-2.0 (permissive) · 665d8a4e8f673a4c · report
imfrombytes thudm/inf-dit/dit/realesr.py official repository unverified Apache-2.0 (permissive) · 18a7bc816b7a3c8f · report

Tasks

Image GenerationSuper-Resolution

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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