File size: 2,391 Bytes
accdad9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
936b20c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
accdad9
 
 
 
 
 
 
 
 
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
95
---
base_model: stabilityai/stable-diffusion-xl-base-1.0
library_name: diffusers
license: openrail++
instance_prompt: a photo of bakso
widget:
- text: A photo of bakso in a bowl
  output:
    url: image_0.png
- text: A photo of bakso in a bowl
  output:
    url: image_1.png
- text: A photo of bakso in a bowl
  output:
    url: image_2.png
- text: A photo of bakso in a bowl
  output:
    url: image_3.png
tags:
- text-to-image
- text-to-image
- diffusers-training
- diffusers
- lora
- template:sd-lora
- stable-diffusion-xl
- stable-diffusion-xl-diffusers
---

<!-- This model card has been generated automatically according to the information the training script had access to. You
should probably proofread and complete it, then remove this comment. -->


# SDXL LoRA DreamBooth - adhisetiawan/sdxl-base-1.0-indonesian-food-dreambooth-lora

<Gallery />

## Model description

These are adhisetiawan/sdxl-base-1.0-indonesian-food-dreambooth-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: True.

Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.

## Trigger words

You should use a photo of bakso to trigger the image generation.

## Download model

Weights for this model are available in Safetensors format.

[Download](adhisetiawan/sdxl-base-1.0-indonesian-food-dreambooth-lora/tree/main) them in the Files & versions tab.



## Intended uses & limitations

#### How to use

```python
import torch
from diffusers import DiffusionPipeline

# Load Stable Diffusion XL Base1.0
pipeline = DiffusionPipeline.from_pretrained(
    "stabilityai/stable-diffusion-xl-base-1.0",
    torch_dtype=torch.float16,
    variant="fp16",
    use_safetensors=True
).to("cuda")

# Optional CPU offloading to save some GPU Memory
pipeline.enable_model_cpu_offload()

# Loading Trained DreamBooth LoRA Weights
pipeline.load_lora_weights("adhisetiawan/sdxl-base-1.0-indonesian-food-dreambooth-lora")

images = pipeline(
            "a delicous takoyaki in a plate", num_images_per_prompt=4, guidance_scale=8
        )
for i in range(len(images.images)):
  display(images.images[i])
```

#### Limitations and bias

[TODO: provide examples of latent issues and potential remediations]

## Training details

[TODO: describe the data used to train the model]