michaelj commited on
Commit
8ef20d8
·
verified ·
1 Parent(s): f514c02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -13,8 +13,7 @@ adapter_id = "latent-consistency/lcm-lora-sdv1-5"
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()
18
  def resize(value,img):
19
  img = Image.open(img)
20
  img = img.resize((value,value))
 
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
+
 
17
  def resize(value,img):
18
  img = Image.open(img)
19
  img = img.resize((value,value))