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
File size: 924 Bytes
ff0a37b d7c20e1 ff0a37b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | Krea 2 Registered Outpaint
Krea 2 is licensed under the Krea 2 Community License Agreement.
For more information, visit https://krea.ai/krea-2-licensing.
This repository contains a modified derivative of Krea 2: Krea 2 Registered
Outpaint, a rank-32 LoRA and modified reference pipeline that add
destination-registered outpainting.
Use, modification, and distribution of the model weights are subject to the
Krea 2 Community License Agreement included as LICENSE.pdf.
The included pipeline is derived from ostris/Krea2OstrisEdit and adds registered
reference placement through destination-relative rotary coordinates. Pipeline
and helper code are distributed under the Apache License 2.0.
Krea 2: https://huggingface.co/krea/Krea-2-Turbo
Upstream edit pipeline: https://huggingface.co/ostris/Krea2OstrisEdit
This is an unofficial community release and is not endorsed by Krea or Ostris.
Training data is not included.
|