Update README.md
Browse files
README.md
CHANGED
@@ -9,6 +9,10 @@ tags:
|
|
9 |
- diffusers-training
|
10 |
base_model: stabilityai/stable-diffusion-xl-base-1.0
|
11 |
inference: true
|
|
|
|
|
|
|
|
|
12 |
---
|
13 |
|
14 |
<!-- This model card has been generated automatically according to the information the training script had access to. You
|
@@ -16,18 +20,21 @@ should probably proofread and complete it, then remove this comment. -->
|
|
16 |
|
17 |
SDXL Product Images
|
18 |
|
19 |
-
|
20 |
|
21 |
#### How to use
|
22 |
|
23 |
```python
|
24 |
-
|
25 |
-
|
26 |
|
27 |
-
|
|
|
|
|
28 |
|
29 |
-
|
30 |
|
31 |
-
|
|
|
32 |
|
33 |
-
|
|
|
9 |
- diffusers-training
|
10 |
base_model: stabilityai/stable-diffusion-xl-base-1.0
|
11 |
inference: true
|
12 |
+
datasets:
|
13 |
+
- VikramSingh178/Products-10k-BLIP-captions
|
14 |
+
language:
|
15 |
+
- en
|
16 |
---
|
17 |
|
18 |
<!-- This model card has been generated automatically according to the information the training script had access to. You
|
|
|
20 |
|
21 |
SDXL Product Images
|
22 |
|
23 |
+
|
24 |
|
25 |
#### How to use
|
26 |
|
27 |
```python
|
28 |
+
from diffusers import DiffusionPipeline
|
29 |
+
import torch
|
30 |
|
31 |
+
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16)
|
32 |
+
pipe.to("cuda")
|
33 |
+
pipe.load_lora_weights("VikramSingh178/sdxl-lora-finetune-products10k-caption")
|
34 |
|
35 |
+
prompt = "Commercial photography of a black down jacket with a logo on the chest."
|
36 |
|
37 |
+
image = pipe(prompt, num_inference_steps=45, guidance_scale=7.5).images[0]
|
38 |
+
image.save("example.png")
|
39 |
|
40 |
+
```
|