Instructions to use yijunwang2/krea2-outpaint with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use yijunwang2/krea2-outpaint 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("krea/Krea-2-Turbo", torch_dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("yijunwang2/krea2-outpaint") 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
- Local Apps Settings
- Draw Things
Clarify licensing and responsible use
Browse files- NOTICE +9 -2
- README.md +10 -1
- SHA256SUMS +2 -2
NOTICE
CHANGED
|
@@ -1,7 +1,14 @@
|
|
| 1 |
Krea 2 Registered Outpaint
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
The included pipeline is derived from ostris/Krea2OstrisEdit and adds registered
|
| 7 |
reference placement through destination-relative rotary coordinates. Pipeline
|
|
|
|
| 1 |
Krea 2 Registered Outpaint
|
| 2 |
|
| 3 |
+
Krea 2 is licensed under the Krea 2 Community License Agreement.
|
| 4 |
+
For more information, visit https://krea.ai/krea-2-licensing.
|
| 5 |
+
|
| 6 |
+
This repository contains a modified derivative of Krea 2: Krea 2 Registered
|
| 7 |
+
Outpaint, a rank-32 LoRA and modified reference pipeline that add
|
| 8 |
+
destination-registered outpainting.
|
| 9 |
+
|
| 10 |
+
Use, modification, and distribution of the model weights are subject to the
|
| 11 |
+
Krea 2 Community License Agreement included as LICENSE.pdf.
|
| 12 |
|
| 13 |
The included pipeline is derived from ostris/Krea2OstrisEdit and adds registered
|
| 14 |
reference placement through destination-relative rotary coordinates. Pipeline
|
README.md
CHANGED
|
@@ -147,6 +147,13 @@ through all denoising steps. Finally, exact source pixels are composited back
|
|
| 147 |
into the known region with a short inward feather to retain detail while hiding
|
| 148 |
small decode differences at the boundary.
|
| 149 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 150 |
## Limitations
|
| 151 |
|
| 152 |
- Very large missing regions can introduce a second subject or unrelated scene.
|
|
@@ -178,4 +185,6 @@ hardware-specific and are not BF16 benchmark claims.
|
|
| 178 |
The LoRA weights are a derivative of Krea 2 and are released under the Krea 2
|
| 179 |
Community License in `LICENSE.pdf`. Pipeline and helper code are distributed
|
| 180 |
under Apache-2.0 in `PIPELINE_LICENSE`. This is an unofficial community release
|
| 181 |
-
and is not endorsed by Krea or Ostris.
|
|
|
|
|
|
|
|
|
| 147 |
into the known region with a short inward feather to retain detail while hiding
|
| 148 |
small decode differences at the boundary.
|
| 149 |
|
| 150 |
+
## Responsible use
|
| 151 |
+
|
| 152 |
+
Use and deployments must comply with the Krea 2 Community License and
|
| 153 |
+
Acceptable Use Policy. Deployments must implement content moderation
|
| 154 |
+
appropriate to their use case and disclose AI-generated content where
|
| 155 |
+
required.
|
| 156 |
+
|
| 157 |
## Limitations
|
| 158 |
|
| 159 |
- Very large missing regions can introduce a second subject or unrelated scene.
|
|
|
|
| 185 |
The LoRA weights are a derivative of Krea 2 and are released under the Krea 2
|
| 186 |
Community License in `LICENSE.pdf`. Pipeline and helper code are distributed
|
| 187 |
under Apache-2.0 in `PIPELINE_LICENSE`. This is an unofficial community release
|
| 188 |
+
and is not endorsed by Krea or Ostris. Use, modification, and distribution of
|
| 189 |
+
the model weights are subject to the included Krea 2 Community License
|
| 190 |
+
Agreement.
|
SHA256SUMS
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
b82a2805162bde714a4eb27b9063c4fc3345d08a30be055134a6160e5430ba74 LICENSE.pdf
|
| 2 |
-
|
| 3 |
cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 PIPELINE_LICENSE
|
| 4 |
-
|
| 5 |
b040b84b01857e953e551e84502591c9bd828b67f89c6c9b6e048484a02b3a82 example.py
|
| 6 |
1de7c106ae978de21433152bdb4ba6b09118b33be81b7ee4851420f0013a7e76 krea2_outpaint_rank32.safetensors
|
| 7 |
fc176da8a96ee0d62651be5263f18a0bc8b1f9cd243111a31ddce05a62851024 outpaint.py
|
|
|
|
| 1 |
b82a2805162bde714a4eb27b9063c4fc3345d08a30be055134a6160e5430ba74 LICENSE.pdf
|
| 2 |
+
d87968ce1b2b6fa468a866a321a2a07f9eeef8c81555104e7d662a6a55a231c5 NOTICE
|
| 3 |
cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 PIPELINE_LICENSE
|
| 4 |
+
918f73128b48c650c67ec5a8af7c881df116bd450bba3f2436a490df541b542c README.md
|
| 5 |
b040b84b01857e953e551e84502591c9bd828b67f89c6c9b6e048484a02b3a82 example.py
|
| 6 |
1de7c106ae978de21433152bdb4ba6b09118b33be81b7ee4851420f0013a7e76 krea2_outpaint_rank32.safetensors
|
| 7 |
fc176da8a96ee0d62651be5263f18a0bc8b1f9cd243111a31ddce05a62851024 outpaint.py
|