michaelj commited on
Commit
f514c02
1 Parent(s): f063d3b

Lykon/dreamshaper-8

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,10 +8,10 @@ from PIL import Image
8
  from diffusers import AutoPipelineForImage2Image
9
  from diffusers.utils import load_image
10
  import math
11
- adapter_id = "latent-consistency/lcm-lora-sdxl"
12
 
13
  device = "cuda" if torch.cuda.is_available() else "cpu"
14
- pipe = AutoPipelineForImage2Image.from_pretrained("Lykon/dreamshaper-xl-v2-turbo", torch_dtype=torch.float16) if torch.cuda.is_available() else AutoPipelineForImage2Image.from_pretrained("stabilityai/sdxl-turbo")
15
  pipe = pipe.to(device)
16
  pipe.load_lora_weights(adapter_id)
17
  pipe.fuse_lora()
 
8
  from diffusers import AutoPipelineForImage2Image
9
  from diffusers.utils import load_image
10
  import math
11
+ adapter_id = "latent-consistency/lcm-lora-sdv1-5"
12
 
13
  device = "cuda" if torch.cuda.is_available() else "cpu"
14
+ pipe = AutoPipelineForImage2Image.from_pretrained("Lykon/dreamshaper-8", torch_dtype=torch.float16) if torch.cuda.is_available() else AutoPipelineForImage2Image.from_pretrained("stabilityai/sdxl-turbo")
15
  pipe = pipe.to(device)
16
  pipe.load_lora_weights(adapter_id)
17
  pipe.fuse_lora()