Prgckwb commited on
Commit
e0851d1
1 Parent(s): 4f39d23

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -5
README.md CHANGED
@@ -50,13 +50,13 @@ tags:
50
  should probably proofread and complete it, then remove this comment. -->
51
 
52
 
53
- # SDXL LoRA DreamBooth - Prgckwb/trpfrog-sdxl-lora-3
54
 
55
  <Gallery />
56
 
57
  ## Model description
58
 
59
- These are Prgckwb/trpfrog-sdxl-lora-3 LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0.
60
 
61
  The weights were trained using [DreamBooth](https://dreambooth.github.io/).
62
 
@@ -77,10 +77,14 @@ import torch
77
  base_model_id = 'stabilityai/stable-diffusion-xl-base-1.0'
78
  lora_model_id = 'Prgckwb/trpfrog-sdxl-lora'
79
 
80
- pipe = DiffusionPipeline.from_pretrained(base_model_id, torch_dtype=torch.float16)
81
- pipe = pipe.to("cuda")
 
82
  pipe.load_lora_weights(lora_model_id)
83
 
84
- image = pipe("trpfrog", num_inference_steps=25).images[0]
 
 
 
85
  image.save('trpfrog.png')
86
  ```
 
50
  should probably proofread and complete it, then remove this comment. -->
51
 
52
 
53
+ # SDXL LoRA DreamBooth - Prgckwb/trpfrog-sdxl-lora
54
 
55
  <Gallery />
56
 
57
  ## Model description
58
 
59
+ These are Prgckwb/trpfrog-sdxl-lora LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0.
60
 
61
  The weights were trained using [DreamBooth](https://dreambooth.github.io/).
62
 
 
77
  base_model_id = 'stabilityai/stable-diffusion-xl-base-1.0'
78
  lora_model_id = 'Prgckwb/trpfrog-sdxl-lora'
79
 
80
+ pipe = DiffusionPipeline.from_pretrained(
81
+ base_model_id, torch_dtype=torch.float16
82
+ ).to("cuda")
83
  pipe.load_lora_weights(lora_model_id)
84
 
85
+ image = pipe(
86
+ "an icon of trpfrog",
87
+ num_inference_steps=25
88
+ ).images[0]
89
  image.save('trpfrog.png')
90
  ```