TristanJLegg commited on
Commit
ca03820
·
verified ·
1 Parent(s): e8b2de1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -7
README.md CHANGED
@@ -19,17 +19,18 @@ license: mit
19
 
20
  ## Model description
21
 
22
- from diffusers import DiffusionPipeline, LCMScheduler
23
 
24
- pipe = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
25
- pipe.load_lora_weights("TristanJLegg/MinecraftStyleStableDiffusion")
26
 
27
- pipe.set_adapters(["lora", "pixel"], adapter_weights=[1.0, 1.2]).to("cuda")
 
28
 
29
- prompt = "a cabin in the woods"
 
 
30
 
31
- img = pipe(prompt).images[0]
32
- img.save(f"minecraft_style_stable_diffusion.png")
33
 
34
  ## Download model
35
 
 
19
 
20
  ## Model description
21
 
22
+ ```python
23
 
24
+ from diffusers import DiffusionPipeline
 
25
 
26
+ pipe = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
27
+ pipe.load_lora_weights("TristanJLegg/MinecraftStyleStableDiffusion")
28
 
29
+ prompt = "a cabin in the woods"
30
+ img = pipe(prompt).images[0]
31
+ img.save(f"minecraft_style_stable_diffusion.png")
32
 
33
+ ```
 
34
 
35
  ## Download model
36