SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.01644 · 2023

Key-Locked Rank One Editing for Text-to-Image Personalization

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 18 functions out of this paper's own repositories and ran 14 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

FunctionStatusWhere it lives
analytic_kernel Ran ChenDarYen/Key-Locked-Rank-One-Editing-for-Text-to-Image-Personalization/ldm/modules/image_degradation/bsrgan.py
code served (permissive licence) · get_code("b04722a19845dc90")
anisotropic_Gaussian Ran ChenDarYen/Key-Locked-Rank-One-Editing-for-Text-to-Image-Personalization/ldm/modules/image_degradation/bsrgan.py
code served (permissive licence) · get_code("5a0ca1bba88bb4b0")
clip_load_untrained Ran ChenDarYen/Key-Locked-Rank-One-Editing-for-Text-to-Image-Personalization/clipseg/models/clipseg.py
code served (permissive licence) · get_code("5b4a0a0fc3e2a388")
cosine_warmup_lr Ran ChenDarYen/Key-Locked-Rank-One-Editing-for-Text-to-Image-Personalization/clipseg/training.py
code served (permissive licence) · get_code("057d183d358d1e9a")
denorm Ran ChenDarYen/Key-Locked-Rank-One-Editing-for-Text-to-Image-Personalization/clipseg/evaluation_utils.py
code served (permissive licence) · get_code("17efe0b1bfd9f343")
fast_iou_curve Ran ChenDarYen/Key-Locked-Rank-One-Editing-for-Text-to-Image-Personalization/clipseg/evaluation_utils.py
code served (permissive licence) · get_code("e1d523a6f8c92026")
filter_args Ran ChenDarYen/Key-Locked-Rank-One-Editing-for-Text-to-Image-Personalization/clipseg/general_utils.py
code served (permissive licence) · get_code("febf3c4380082c74")
get_attribute Ran ChenDarYen/Key-Locked-Rank-One-Editing-for-Text-to-Image-Personalization/clipseg/general_utils.py
code served (permissive licence) · get_code("c35bef083a3a63d9")
get_image_paths Ran ChenDarYen/Key-Locked-Rank-One-Editing-for-Text-to-Image-Personalization/ldm/modules/image_degradation/utils_image.py
code served (permissive licence) · get_code("f9d4c247328f3337")
get_prompt_list Ran ChenDarYen/Key-Locked-Rank-One-Editing-for-Text-to-Image-Personalization/clipseg/models/clipseg.py
code served (permissive licence) · get_code("f4c0e5f857a103d5")
is_image_file Ran ChenDarYen/Key-Locked-Rank-One-Editing-for-Text-to-Image-Personalization/ldm/modules/image_degradation/utils_image.py
code served (permissive licence) · get_code("226f6afcd57ff476")
modcrop_np Ran ChenDarYen/Key-Locked-Rank-One-Editing-for-Text-to-Image-Personalization/ldm/modules/image_degradation/bsrgan.py
code served (permissive licence) · get_code("04df7487a791a8a1")
norm Ran ChenDarYen/Key-Locked-Rank-One-Editing-for-Text-to-Image-Personalization/clipseg/evaluation_utils.py
code served (permissive licence) · get_code("151e32d2a7b8134d")
process_prompts Ran ChenDarYen/Key-Locked-Rank-One-Editing-for-Text-to-Image-Personalization/clipseg/models/vitseg.py
code served (permissive licence) · get_code("9ef76f9c72933f80")
forward_multihead_attention Not yet run ChenDarYen/Key-Locked-Rank-One-Editing-for-Text-to-Image-Personalization/clipseg/models/clipseg.py
code served (permissive licence) · get_code("9682702dd7af11cd")
get_cached_pascal_pfe Not yet run ChenDarYen/Key-Locked-Rank-One-Editing-for-Text-to-Image-Personalization/clipseg/score.py
code served (permissive licence) · get_code("c78a6fe00b0a118f")
load_model Not yet run ChenDarYen/Key-Locked-Rank-One-Editing-for-Text-to-Image-Personalization/clipseg/general_utils.py
code served (permissive licence) · get_code("bca46b85e101b36d")
patches_from_image Not yet run ChenDarYen/Key-Locked-Rank-One-Editing-for-Text-to-Image-Personalization/ldm/modules/image_degradation/utils_image.py
code served (permissive licence) · get_code("3984b3ec31e90ef0")

Repositories linked to this paper

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

Abstract

Text-to-image models (T2I) offer a new level of flexibility by allowing users to guide the creative process through natural language. However, personalizing these models to align with user-provided visual concepts remains a challenging problem. The task of T2I personalization poses multiple hard challenges, such as maintaining high visual fidelity while allowing creative control, combining multiple personalized concepts in a single image, and keeping a small model size. We present Perfusion, a T2I personalization method that addresses these challenges using dynamic rank-1 updates to the underlying T2I model. Perfusion avoids overfitting by introducing a new mechanism that "locks" new concepts' cross-attention Keys to their superordinate category. Additionally, we develop a gated rank-1 approach that enables us to control the influence of a learned concept during inference time and to combine multiple concepts. This allows runtime-efficient balancing of visual-fidelity and textual-alignment with a single 100KB trained model, which is five orders of magnitude smaller than the current state of the art. Moreover, it can span different operating points across the Pareto front without additional training. Finally, we show that Perfusion outperforms strong baselines in both qualitative and quantitative terms. Importantly, key-locking leads to novel results compared to traditional approaches, allowing to portray personalized object interactions in unprecedented ways, even in one-shot settings.

For agents

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

get_harvested_code_for_paper("2305.01644")
get_code_for_paper("2305.01644")
have("2305.01644")

Connect an agent — have() is free.