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 functional adapter loading requirements
Browse files- README.md +4 -0
- SHA256SUMS +1 -1
README.md
CHANGED
|
@@ -15,6 +15,10 @@ tags:
|
|
| 15 |
|
| 16 |
# Krea 2 Registered Outpaint
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
This rank-32 LoRA extends an image into a larger canvas while preserving its
|
| 19 |
known pixels and registering the source image at an explicit canvas location.
|
| 20 |
It was trained against Krea 2 Raw and is intended for distilled 8-step inference
|
|
|
|
| 15 |
|
| 16 |
# Krea 2 Registered Outpaint
|
| 17 |
|
| 18 |
+
> **Important:** The Hugging Face auto-generated Diffusers snippet and ordinary
|
| 19 |
+
> LoRA importers are not compatible with this functional adapter. Use the
|
| 20 |
+
> included `example.py`, `pipeline.py`, and `outpaint.py` instead.
|
| 21 |
+
|
| 22 |
This rank-32 LoRA extends an image into a larger canvas while preserving its
|
| 23 |
known pixels and registering the source image at an explicit canvas location.
|
| 24 |
It was trained against Krea 2 Raw and is intended for distilled 8-step inference
|
SHA256SUMS
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
b82a2805162bde714a4eb27b9063c4fc3345d08a30be055134a6160e5430ba74 LICENSE.pdf
|
| 2 |
d87968ce1b2b6fa468a866a321a2a07f9eeef8c81555104e7d662a6a55a231c5 NOTICE
|
| 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 |
+
b2c44e6009301b0aa3ae4d567c78b3b4fb073281f31bfb5c39f94b41fd4b6e91 README.md
|
| 5 |
b040b84b01857e953e551e84502591c9bd828b67f89c6c9b6e048484a02b3a82 example.py
|
| 6 |
1de7c106ae978de21433152bdb4ba6b09118b33be81b7ee4851420f0013a7e76 krea2_outpaint_rank32.safetensors
|
| 7 |
fc176da8a96ee0d62651be5263f18a0bc8b1f9cd243111a31ddce05a62851024 outpaint.py
|