Comfy-Org / Comfy-Org/ComfyUI

Implement 'Concept Sliders: LoRA Adaptors for Precise Control in Diffusion Models'

Open
#2,028 8 comments 5 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 6h
Merged PRs (30d)
155

Description

Implement 'Concept Sliders: LoRA Adaptors for Precise Control in Diffusion Models'

Basically allows fine grained image tweaks using 'sliders'

- Paper: https://arxiv.org/abs/2311.12092
- > We present a method to create interpretable concept sliders that enable precise control over attributes in image generations from diffusion models. Our approach identifies a low-rank parameter direction corresponding to one concept while minimizing interference with other attributes. A slider is created using a small set of prompts or sample images; thus slider directions can be created for either textual or visual concepts. Concept Sliders are plug-and-play: they can be composed efficiently and continuously modulated, enabling precise control over image generation. In quantitative experiments comparing to previous editing techniques, our sliders exhibit stronger targeted edits with lower interference. We showcase sliders for weather, age, styles, and expressions, as well as slider compositions. We show how sliders can transfer latents from StyleGAN for intuitive editing of visual concepts for which textual description is difficult. We also find that our method can help address persistent quality issues in Stable Diffusion XL including repair of object deformations and fixing distorted hands. Our code, data, and trained sliders are available at [this https URL](https://sliders.baulab.info/)
- Project Page: https://sliders.baulab.info/
- Code: https://github.com/rohitgandikota/sliders
- Weights: https://sliders.baulab.info/weights/xl_sliders/
- https://twitter.com/RohitGandikota/status/1727410973638852957
- https://www.reddit.com/r/StableDiffusion/comments/180zon7/concept_sliders_lora_adaptors_for_precise_control/

## See Also

- https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/14064

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.