SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2412.03177 · 2024

PatchDPO: Patch-level DPO for Finetuning-free Personalized Image Generation

arXiv · PDF · Open in the Atlas

Code that ran

10 of 11 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; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 9 failures of our instrument; 1 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.03177.json · badge: /api/ran/2412.03177.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
hqhqaq/patchdpo canonical (classifier label)
classifier basis: census
10 ran · 1 no recorded run
FunctionStatusWhere it lives
FeedForward Ran
ran; our contract draft was wrong, not the code
hqhqaq/patchdpo/ip_adapter/resampler.py
pointer only (licence: NONE); the stored copy get_code serves, from rainbowluocs/openomni, is pointer only (licence: NONE) · get_code("5105747c2711b1cb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hqhqaq/patchdpo 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.

collate_fn Ran
ran; our contract draft was wrong, not the code
hqhqaq/patchdpo/inference_dreambooth.py
pointer only (licence: NONE) · get_code("ccf8fb11b2e5dd2c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hqhqaq/patchdpo 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_state_dict Ran
ran; our contract draft was wrong, not the code
hqhqaq/patchdpo/train_patchdpo.py
pointer only (licence: NONE); the stored copy get_code serves, from hqhqaq/mip-adapter, is pointer only (licence: NONE) · get_code("8e9e8da268de55e2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hqhqaq/patchdpo 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.

hook_fn Ran
ran; our contract draft was wrong, not the code
hqhqaq/patchdpo/ip_adapter/utils.py
pointer only (licence: NONE) · get_code("06d3e795b3014ef1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hqhqaq/patchdpo 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.

masked_mean Ran
ran; our contract draft was wrong, not the code
hqhqaq/patchdpo/ip_adapter/resampler.py
pointer only (licence: NONE); the stored copy get_code serves, from Minyeol/MIDAS, is pointer only (licence: NONE) · get_code("230588e8f1237737")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hqhqaq/patchdpo 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.

register_cross_attention_hook Ran
ran; our contract draft was wrong, not the code
hqhqaq/patchdpo/ip_adapter/utils.py
pointer only (licence: NONE) · get_code("cf95fb65ebfe64b4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hqhqaq/patchdpo 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.

reshape_tensor Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hqhqaq/patchdpo/ip_adapter/resampler.py
pointer only (licence: NONE); the stored copy get_code serves, from Minyeol/MIDAS, is pointer only (licence: NONE) · get_code("4cb2e2a2ca0bec9f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hqhqaq/patchdpo 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.

str2bool Ran
ran, violated the contract we drafted
hqhqaq/patchdpo/train_patchdpo.py
pointer only (licence: NONE) · get_code("7c508037b40522af")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hqhqaq/patchdpo 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.

upscale Ran
ran; our contract draft was wrong, not the code
hqhqaq/patchdpo/ip_adapter/utils.py
pointer only (licence: NONE) · get_code("25837bff8f005465")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hqhqaq/patchdpo 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.

weighted_mse_loss Ran
ran; our contract draft was wrong, not the code
hqhqaq/patchdpo/train_patchdpo.py
pointer only (licence: NONE) · get_code("3cd17d530dca63a5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hqhqaq/patchdpo 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.

extract_all_images Not yet run
unverified (harvested, no recorded run)
hqhqaq/patchdpo/evaluation/evaluate_dreambooth_func.py
pointer only (licence: NONE) · get_code("1cefb3fb70a9c30b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hqhqaq/patchdpo 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. No invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 2 the same month, 4 later) and 3 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
str2bool 175 other papers
148 dated earlier, 1 the same month, 25 later, 1 same year, order not determinable · 2 only as an assembly brick
1406.6247 (2014-06)
Recurrent Models of Visual Attention
1603.09382 (2016-03)
Deep Networks with Stochastic Depth
1710.10196 (2017-10)
Progressive Growing of GANs for Improved Quality, Stability, and Variation
and 172 more not named here
FeedForward 47 other papers
31 dated earlier, 2 the same month, 13 later, 1 same year, order not determinable · 4 only as an assembly brick
2204.14198 (2022-04)
Flamingo: a Visual Language Model for Few-Shot Learning
2308.02463 (2023-08)
Towards Generalist Foundation Model for Radiology by Leveraging Web-scale 2D&3D Medical Data
2308.06721 (2023-08)
IP-Adapter: Text Compatible Image Prompt Adapter for Text-to-Image Diffusion Models
and 44 more not named here
reshape_tensor 30 other papers
21 dated earlier, 9 later
2308.06721 (2023-08)
IP-Adapter: Text Compatible Image Prompt Adapter for Text-to-Image Diffusion Models
2312.04461 (2023-12)
PhotoMaker: Customizing Realistic Human Photos via Stacked ID Embedding
2312.16693 (2023-12)
I2V-Adapter: A General Image-to-Video Adapter for Diffusion Models
and 27 more not named here
masked_mean 18 other papers
14 dated earlier, 4 later
2308.06721 (2023-08)
IP-Adapter: Text Compatible Image Prompt Adapter for Text-to-Image Diffusion Models
2312.04461 (2023-12)
PhotoMaker: Customizing Realistic Human Photos via Stacked ID Embedding
2312.16693 (2023-12)
I2V-Adapter: A General Image-to-Video Adapter for Diffusion Models
and 15 more not named here
hook_fn 5 other papers
5 dated earlier
2308.06721 (2023-08)
IP-Adapter: Text Compatible Image Prompt Adapter for Text-to-Image Diffusion Models
2404.02733 (2024-04)
InstantStyle: Free Lunch towards Style-Preserving in Text-to-Image Generation
2407.01494 (2024-07)
FoleyCrafter: Bring Silent Videos to Life with Lifelike and Synchronized Sounds
and 2 more not named here
register_cross_attention_hook 5 other papers
5 dated earlier
2308.06721 (2023-08)
IP-Adapter: Text Compatible Image Prompt Adapter for Text-to-Image Diffusion Models
2404.02733 (2024-04)
InstantStyle: Free Lunch towards Style-Preserving in Text-to-Image Generation
2407.01494 (2024-07)
FoleyCrafter: Bring Silent Videos to Life with Lifelike and Synchronized Sounds
and 2 more not named here
upscale 5 other papers
5 dated earlier
2308.06721 (2023-08)
IP-Adapter: Text Compatible Image Prompt Adapter for Text-to-Image Diffusion Models
2404.02733 (2024-04)
InstantStyle: Free Lunch towards Style-Preserving in Text-to-Image Generation
2407.01494 (2024-07)
FoleyCrafter: Bring Silent Videos to Life with Lifelike and Synchronized Sounds
and 2 more not named here
get_state_dict 1 other paper
1 dated earlier
2409.17920 (2024-09)
Resolving Multi-Condition Confusion for Finetuning-Free Personalized Image Generation

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

Finetuning-free personalized image generation can synthesize customized images without test-time finetuning, attracting wide research interest owing to its high efficiency. Current finetuning-free methods simply adopt a single training stage with a simple image reconstruction task, and they typically generate low-quality images inconsistent with the reference images during test-time. To mitigate this problem, inspired by the recent DPO (i.e., direct preference optimization) technique, this work proposes an additional training stage to improve the pre-trained personalized generation models. However, traditional DPO only determines the overall superiority or inferiority of two samples, which is not suitable for personalized image generation because the generated images are commonly inconsistent with the reference images only in some local image patches. To tackle this problem, this work proposes PatchDPO that estimates the quality of image patches within each generated image and accordingly trains the model. To this end, PatchDPO first leverages the pre-trained vision model with a proposed self-supervised training method to estimate the patch quality. Next, PatchDPO adopts a weighted training approach to train the model with the estimated patch quality, which rewards the image patches with high quality while penalizing the image patches with low quality. Experiment results demonstrate that PatchDPO significantly improves the performance of multiple pre-trained personalized generation models, and achieves state-of-the-art performance on both single-object and multi-object personalized image generation. Our code is available at https://github.com/hqhQAQ/PatchDPO.

For agents

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

get_harvested_code_for_paper("2412.03177")
get_code_for_paper("2412.03177")
have("2412.03177")

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

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

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

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

Connect an agent — have() is free.