File size: 2,729 Bytes
5f3de27 0095e21 5f3de27 0095e21 5f3de27 0095e21 5f3de27 bfcf22e 5f3de27 0095e21 5f3de27 0095e21 5f3de27 b7f9041 5f3de27 d7445af 5f3de27 fbded21 b535eee 5f3de27 fbded21 5f3de27 fbded21 d7445af fbded21 5f3de27 3889c68 5f3de27 0095e21 5f3de27 0095e21 5f3de27 0095e21 5f3de27 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
---
tags:
- stable-diffusion-xl
- stable-diffusion-xl-diffusers
- text-to-image
- diffusers
- lora
- template:sd-lora
base_model: stabilityai/stable-diffusion-xl-base-1.0
instance_prompt: Warhol style
license: openrail++
---
# SDXL LoRA - tonyassi/warhol-lora
by [Tony Assi](https://www.tonyassi.com/)
Lora style based on Andy Warhol prints.

## Trigger words
Use **Warhol style** in the prompt to trigger the style.
## How to use
```bash
pip install diffusers accelerate
```
```python
import torch
from diffusers import DiffusionPipeline, AutoencoderKL
# Load the pipeline
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
pipe = DiffusionPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
vae=vae,
torch_dtype=torch.float16,
variant="fp16",
use_safetensors=True
)
pipe.load_lora_weights("tonyassi/warhol-lora")
pipe.to("cuda")
# Generate image
prompt = "Warhol style, Bella Hadid"
image = pipe(prompt=prompt,
height=1024,
width=1024,
num_inference_steps=50,
negative_prompt="ugly, deformed face, deformed body").images[0]
image
```
## Examples

**Warhol style, Bella Hadid**

**Warhol style, Lady Gaga**

**Warhol style, Nicole Kidman**

**Warhol style, A$AP Rocky**

**Warhol style, Scarlett Johansson**

**Warhol style, David Bowie**
## Model description
These are tonyassi/warhol-lora LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0.
The weights were trained using [DreamBooth](https://dreambooth.github.io/).
LoRA for the text encoder was enabled: False.
Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
## Download model
Weights for this model are available in Safetensors format.
[Download](https://huggingface.co/tonyassi/warhol-lora/tree/main) them in the Files & versions tab.
|