Instructions to use showlab/OmniConsistency with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use showlab/OmniConsistency with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("showlab/OmniConsistency", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Add link to paper
#4
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
title: OmniConsistency
|
| 3 |
emoji: ๐
|
| 4 |
colorFrom: gray
|
|
@@ -8,13 +12,9 @@ sdk_version: 5.31.0
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
short_description: Generate styled image from reference image and external LoRA
|
| 11 |
-
license: mit
|
| 12 |
-
base_model:
|
| 13 |
-
- black-forest-labs/FLUX.1-dev
|
| 14 |
-
pipeline_tag: image-to-image
|
| 15 |
---
|
| 16 |
|
| 17 |
-
|
| 18 |
Consistency from Paired Stylization Data**
|
| 19 |
<br>
|
| 20 |
[Yiren Song](https://scholar.google.com.hk/citations?user=L2YS0jgAAAAJ),
|
|
@@ -26,6 +26,7 @@ Consistency from Paired Stylization Data**
|
|
| 26 |
<br>
|
| 27 |
|
| 28 |
[[official code]](https://github.com/showlab/OmniConsistency)
|
|
|
|
| 29 |
<img src='./figure/teaser.png' width='100%' />
|
| 30 |
|
| 31 |
## Installation
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model:
|
| 3 |
+
- black-forest-labs/FLUX.1-dev
|
| 4 |
+
license: mit
|
| 5 |
+
pipeline_tag: image-to-image
|
| 6 |
title: OmniConsistency
|
| 7 |
emoji: ๐
|
| 8 |
colorFrom: gray
|
|
|
|
| 12 |
app_file: app.py
|
| 13 |
pinned: false
|
| 14 |
short_description: Generate styled image from reference image and external LoRA
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
---
|
| 16 |
|
| 17 |
+
**OmniConsistency: Learning Style-Agnostic
|
| 18 |
Consistency from Paired Stylization Data**
|
| 19 |
<br>
|
| 20 |
[Yiren Song](https://scholar.google.com.hk/citations?user=L2YS0jgAAAAJ),
|
|
|
|
| 26 |
<br>
|
| 27 |
|
| 28 |
[[official code]](https://github.com/showlab/OmniConsistency)
|
| 29 |
+
[[paper]](https://huggingface.co/papers/2505.18445)
|
| 30 |
<img src='./figure/teaser.png' width='100%' />
|
| 31 |
|
| 32 |
## Installation
|