VikramSingh178 commited on
Commit
79e23b8
·
verified ·
1 Parent(s): 4fa4879

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -7
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
- ## Intended uses & limitations
20
 
21
  #### How to use
22
 
23
  ```python
24
- # TODO: add an example code snippet for running this diffusion pipeline
25
- ```
26
 
27
- #### Limitations and bias
 
 
28
 
29
- [TODO: provide examples of latent issues and potential remediations]
30
 
31
- ## Training details
 
32
 
33
- [TODO: describe the data used to train the model]
 
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
+ ```