SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2208.12242 · 2022

DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generation

Varun Jampani, Nataniel Ruiz, Yuanzhen Li, Kfir Aberman, Yael Pritch, Michael Rubinstein

arXiv · PDF · Open in the Atlas

Code that ran

10 of 12 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; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 8 failures of our instrument; 2 no recorded run), measured 2026-11-24; 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/2208.12242.json · badge: /api/ran/2208.12242.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
copy not recorded community
not in the paper's declared repositories
5 ran · 2 no recorded run
zrrskywalker/personalize-sam extension (classifier label)
classifier basis: classifier_2025
4 ran · 0 no recorded run
jiahuadong/cifc extension (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
bind_concept_prompt Ran
ran; our contract draft was wrong, not the code
jiahuadong/cifc/lib/pipelines/pipeline_edlora.py
pointer only (licence: NOASSERTION) · get_code("8dd9f992f25737d0")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, jiahuadong/cifc (NOASSERTION). 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.

calculate_dice_loss Ran
ran, violated the contract we drafted
zrrskywalker/personalize-sam/persam_f.py
code served (permissive licence) · get_code("0fb3fb5fac460a59")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create small tensors for inputs and targets
# inputs: predictions (logits before sigmoid)
# targets: binary labels
# Shape: (batch_size=2, num_elements=4)
inputs = torch.randn(2, 4, dtype=torch.float32)
targets = torch.randint(0, 2, (2, 4), dtype=torch.float32)

# num_masks: number of masks (used for normalization)
num_masks = 1

ARGS = {
    "inputs": inputs,
    "targets": targets,
    "num_masks": num_masks,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
calculate_sigmoid_focal_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zrrskywalker/personalize-sam/persam_f.py
code served (permissive licence) · get_code("e180f3059c3a2161")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create small tensors for inputs and targets
# inputs: predictions (logits), shape [batch_size, num_classes]
# targets: binary labels, shape [batch_size, num_classes]
batch_size = 2
num_classes = 4

inputs = torch.randn(batch_size, num_classes)
targets = torch.randint(0, 2, (batch_size, num_classes)).float()

num_masks = 1
alpha = 0.25
gamma = 2.0

ARGS = {
    "inputs": inputs,
    "targets": targets,
    "num_masks": num_masks,
    "alpha": alpha,
    "gamma": gamma,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
chunk Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from vicgalle/stable-diffusion-aesthetic-gradients
pointer only; the stored copy get_code serves, from vicgalle/stable-diffusion-aesthetic-gradients, is pointer only (licence: NOASSERTION) · get_code("8241c0562bc710fd")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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
this paper's copy was not recorded; identical code first harvested from vinairesearch/anti-dreambooth
pointer only; the stored copy get_code serves, from vinairesearch/anti-dreambooth, is pointer only (licence: AGPL-3.0) · get_code("229d634611bdc645")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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_prompt Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from csguoh/IntLoRA
pointer only; the stored copy get_code serves, from csguoh/IntLoRA, is pointer only (licence: NONE) · get_code("ed99491f78bd49e1")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

inject_trainable_lora Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from cloneofsimo/lora
pointer only · get_code("4b4a8984a2737ae5")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

inject_trainable_lora_extended Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from cloneofsimo/lora
pointer only · get_code("3aec51ff694c19af")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

point_selection Ran
ran; our contract draft was wrong, not the code
zrrskywalker/personalize-sam/persam.py
code served (permissive licence) · get_code("5d8e00c1a04817f3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Create a small mask_sim tensor
# The function expects a 2D tensor with shape (w, h)
# It will flatten it and call topk on it
# Let's use shape (4, 3) for w=4, h=3
mask_sim = torch.rand(4, 3)

# topk parameter
topk = 2

ARGS = {
    "mask_sim": mask_sim,
    "topk": topk,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
point_selection Ran
ran; our contract draft was wrong, not the code
zrrskywalker/personalize-sam/persam_f.py
code served (permissive licence) · get_code("154bba31688ff635")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Create a small 2D tensor for mask_sim
# The function expects shape (w, h) and calls flatten(0), topk, and indexing operations
# Using distinct dimensions: 4x3 (w=4, h=3)
mask_sim = torch.randn(4, 3)

ARGS = {
    "mask_sim": mask_sim,
    "topk": 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_lora_ups_down Not yet run
unverified (harvested, no recorded run)
this paper's copy was not recorded; identical code first harvested from cloneofsimo/lora
pointer only · get_code("2f9880b526ff277e")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

parse_args Not yet run
unverified (harvested, no recorded run)
this paper's copy was not recorded; identical code first harvested from csguoh/IntLoRA
pointer only; the stored copy get_code serves, from csguoh/IntLoRA, is pointer only (licence: NONE) · get_code("9afa3ce9b0344100")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 8 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 8 later) and 4 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
chunk 40 other papers
3 dated earlier, 37 later
2106.14490 (2021-06)
Making Images Real Again: A Comprehensive Survey on Deep Image Composition
2112.10752 (2021-12)
High-Resolution Image Synthesis with Latent Diffusion Models
2204.11824 (2022-04)
Semi-Parametric Neural Image Synthesis
and 37 more not named here
inject_trainable_lora 10 other papers
1 the same month, 9 later
2208.01618 (2022-08)
An Image is Worth One Word: Personalizing Text-to-Image Generation using Textual Inversion
2308.06571 (2023-08)
ModelScope Text-to-Video Technical Report
2310.08465 (2023-10)
MotionDirector: Motion Customization of Text-to-Video Diffusion Models
and 7 more not named here
extract_lora_ups_down 8 other papers
8 later
2312.07315 (2023-12)
NVS-Adapter: Plug-and-Play Novel View Synthesis from a Single Image
2312.17250 (2023-12)
iFusion: Inverting Diffusion for Pose-Free Reconstruction from Sparse Views
Cao_LeftRefill_Filling_Right_Canvas_based_on_Left_Reference_through_Generalized_CVPR_2024_paper (2024 (year only))
LeftRefill: Filling Right Canvas based on Left Reference through Generalized Text-to-Image Diffusion Model
and 5 more not named here
collate_fn 7 other papers
7 later
2303.15433 (2023-03)
Anti-DreamBooth: Protecting users from personalized text-to-image synthesis
2306.07280 (2023-06)
Controlling Text-to-Image Diffusion by Orthogonal Finetuning
2310.04687 (2023-10)
Targeted Attack Improves Protection against Unauthorized Diffusion Customization
and 4 more not named here
inject_trainable_lora_extended 6 other papers
6 later
2312.07315 (2023-12)
NVS-Adapter: Plug-and-Play Novel View Synthesis from a Single Image
2402.02347 (2024-02)
Riemannian Preconditioned LoRA for Fine-Tuning Foundation Models
2403.07860 (2024-03)
Bridging Different Language Models and Generative Vision Models for Text-to-Image Generation
and 3 more not named here
bind_concept_prompt 2 other papers
2 later
2305.18292 (2023-05)
Mix-of-Show: Decentralized Low-Rank Adaptation for Multi-Concept Customization of Diffusion Models
2405.13952 (2024-05)
Spectral Adapter: Fine-Tuning in Spectral Space
get_prompt 1 other paper
1 later
2410.21759 (2024-10)
IntLoRA: Integral Low-rank Adaptation of Quantized Diffusion Models
parse_args 1 other paper
1 later
2410.21759 (2024-10)
IntLoRA: Integral Low-rank Adaptation of Quantized Diffusion Models

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-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Figure 1. With just a few images (typically 3-5) of a subject (left), DreamBooth-our AI-powered photo booth-can generate a myriad of images of the subject in different contexts (right), using the guidance of a text prompt. The results exhibit natural interactions with the environment, as well as novel articulations and variation in lighting conditions, all while maintaining high fidelity to the key visual features of the subject.

For agents

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

get_harvested_code_for_paper("2208.12242")
get_code_for_paper("2208.12242")
have("2208.12242")

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

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

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

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

Connect an agent — have() is free.