reemas-irasna
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -21,15 +21,12 @@ should probably proofread and complete it, then remove this comment. -->
|
|
21 |
|
22 |
# SDXL LoRA DreamBooth - reemas-irasna/home-decor_LoRA
|
23 |
|
24 |
-
<Gallery
|
25 |
-
|
26 |
![image/png](https://cdn-uploads.huggingface.co/production/uploads/6638c2a3d5d215405e213a9b/6wr1qyRtCcdeMTVNqJghx.png)
|
27 |
|
28 |
![image/png](https://cdn-uploads.huggingface.co/production/uploads/6638c2a3d5d215405e213a9b/4xhhIJaZAFvmyls9Jb9wv.png)
|
29 |
|
30 |
![image/png](https://cdn-uploads.huggingface.co/production/uploads/6638c2a3d5d215405e213a9b/vY7jxRK7YbRaenJhHN4bs.png)
|
31 |
|
32 |
-
/>
|
33 |
|
34 |
## Model description
|
35 |
|
@@ -43,7 +40,7 @@ Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
|
|
43 |
|
44 |
## Trigger words
|
45 |
|
46 |
-
You should use a photo of home to trigger the image generation.
|
47 |
|
48 |
## Download model
|
49 |
|
@@ -58,13 +55,22 @@ Weights for this model are available in Safetensors format.
|
|
58 |
#### How to use
|
59 |
|
60 |
```python
|
61 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
```
|
63 |
-
|
64 |
-
#### Limitations and bias
|
65 |
-
|
66 |
-
[TODO: provide examples of latent issues and potential remediations]
|
67 |
-
|
68 |
-
## Training details
|
69 |
-
|
70 |
-
[TODO: describe the data used to train the model]
|
|
|
21 |
|
22 |
# SDXL LoRA DreamBooth - reemas-irasna/home-decor_LoRA
|
23 |
|
|
|
|
|
24 |
![image/png](https://cdn-uploads.huggingface.co/production/uploads/6638c2a3d5d215405e213a9b/6wr1qyRtCcdeMTVNqJghx.png)
|
25 |
|
26 |
![image/png](https://cdn-uploads.huggingface.co/production/uploads/6638c2a3d5d215405e213a9b/4xhhIJaZAFvmyls9Jb9wv.png)
|
27 |
|
28 |
![image/png](https://cdn-uploads.huggingface.co/production/uploads/6638c2a3d5d215405e213a9b/vY7jxRK7YbRaenJhHN4bs.png)
|
29 |
|
|
|
30 |
|
31 |
## Model description
|
32 |
|
|
|
40 |
|
41 |
## Trigger words
|
42 |
|
43 |
+
You should use "a photo of home" to trigger the image generation.
|
44 |
|
45 |
## Download model
|
46 |
|
|
|
55 |
#### How to use
|
56 |
|
57 |
```python
|
58 |
+
import torch
|
59 |
+
from diffusers import DiffusionPipeline, AutoencoderKL
|
60 |
+
|
61 |
+
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
|
62 |
+
pipe = DiffusionPipeline.from_pretrained(
|
63 |
+
"stabilityai/stable-diffusion-xl-base-1.0",
|
64 |
+
vae=vae,
|
65 |
+
torch_dtype=torch.float16,
|
66 |
+
variant="fp16",
|
67 |
+
use_safetensors=True
|
68 |
+
)
|
69 |
+
pipe.load_lora_weights("reemas-irasna/home-decor_LoRA")
|
70 |
+
_ = pipe.to("cuda")
|
71 |
+
|
72 |
+
prompt = "a photo of bedroom in red and white combination"
|
73 |
+
|
74 |
+
image = pipe(prompt=prompt, num_inference_steps=25).images[0]
|
75 |
+
image
|
76 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|