Papers › PromptFix: You Prompt and We Fix the Photo

PromptFix: You Prompt and We Fix the Photo

27 May 2024arXiv:2405.16785archive 2025-07-28

Yongsheng Yu, Ziyun Zeng, Hang Hua, Jianlong Fu, Jiebo Luo

Diffusion models equipped with language models demonstrate excellent controllability in image generation tasks, allowing image processing to adhere to human instructions. However, the lack of diverse instruction-following data hampers the development of models that effectively recognize and execute user-customized instructions, particularly in low-level tasks. Moreover, the stochastic nature of the diffusion process leads to deficiencies in image generation or editing tasks that require the detailed preservation of the generated images. To address these limitations, we propose PromptFix, a comprehensive framework that enables diffusion models to follow human instructions to perform a wide variety of image-processing tasks. First, we construct a large-scale instruction-following dataset that covers comprehensive image-processing tasks, including low-level tasks, image editing, and object creation. Next, we propose a high-frequency guidance sampling method to explicitly control the denoising process and preserve high-frequency details in unprocessed areas. Finally, we design an auxiliary prompting adapter, utilizing Vision-Language Models (VLMs) to enhance text prompts and improve the model's task generalization. Experimental results show that PromptFix outperforms previous methods in various image-processing tasks. Our proposed model also achieves comparable inference efficiency with these baseline models and exhibits superior zero-shot capabilities in blind restoration and combination tasks. The dataset and code are available at https://www.yongshengyu.com/PromptFix-Page.

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.16785")

Code

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

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

yeates/promptfix 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

13 samples harvested; 10 ran; 1 honoured the contract we drafted; 3 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
2ran · violated contract
1ran · our draft was wrong
6ran
3unverified

Licence: 0 of the 13 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 yeates/promptfix. “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.

auto_resume_helper yeates/promptfix/utils/utils.py official repository ran Apache-2.0 (permissive) · 11dc9180f4f7bf80 · report
decode_image yeates/promptfix/dataset/promptfix_data.py official repository ran Apache-2.0 (permissive) · 387280193dfae9c0 · report
default yeates/promptfix/stable_diffusion/ldm/modules/attention.py official repository ran · violated contract Apache-2.0 (permissive) · 424012cb37b31172 · report
exists yeates/promptfix/stable_diffusion/ldm/modules/attention.py official repository ran · violated contract Apache-2.0 (permissive) · aa5486a3650902d8 · report
extract_high_freq_component yeates/promptfix/stable_diffusion/ldm/hfp.py official repository ran fingerprinted Apache-2.0 (permissive) · ba80edd5be064d4b · report
get_grad_norm yeates/promptfix/utils/utils.py official repository ran · honoured contract Apache-2.0 (permissive) · eec1e7cba51d5e8e · report
high_pass_filter yeates/promptfix/stable_diffusion/ldm/hfp.py official repository ran Apache-2.0 (permissive) · e8c2b1b2c48f6fe8 · report
resize_image_to_resolution yeates/promptfix/process_images_json.py official repository ran Apache-2.0 (permissive) · 96a581cf6a8085f9 · report
rgb_to_grayscale yeates/promptfix/stable_diffusion/ldm/hfp.py official repository ran fingerprinted Apache-2.0 (permissive) · e70da51cefb1bb66 · report
uniq yeates/promptfix/stable_diffusion/ldm/modules/attention.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 9a299fe5ae09e407 · report
create_logger yeates/promptfix/utils/logger.py official repository unverified Apache-2.0 (permissive) · 80450600f7f09b0a · report
download_models yeates/promptfix/stable_diffusion/notebook_helpers.py official repository unverified Apache-2.0 (permissive) · 4533e43e06a12dc5 · report
load_checkpoint yeates/promptfix/utils/utils.py official repository unverified Apache-2.0 (permissive) · 4531730599ba8582 · report

Tasks

DenoisingImage GenerationInstruction Following

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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