Staticaliza commited on
Commit
c8f5737
·
verified ·
1 Parent(s): c1281b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ import numpy
7
  import uuid
8
  import json
9
  import os
10
- from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
11
  from PIL import Image
12
 
13
  # Pre-Initialize
@@ -26,7 +26,7 @@ DEFAULT_WIDTH = 1024
26
  REPO = "sd-community/sdxl-flash"
27
 
28
  model = StableDiffusionXLPipeline.from_pretrained(REPO, torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
29
- model.scheduler = EulerAncestralDiscreteScheduler.from_config(model.scheduler.config)
30
  model.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="base")
31
  model.set_adapters(["base"], adapter_weights=[0.7])
32
  model.to(DEVICE)
 
7
  import uuid
8
  import json
9
  import os
10
+ from diffusers import StableDiffusionXLPipeline, ControlNetModel, EulerAncestralDiscreteScheduler
11
  from PIL import Image
12
 
13
  # Pre-Initialize
 
26
  REPO = "sd-community/sdxl-flash"
27
 
28
  model = StableDiffusionXLPipeline.from_pretrained(REPO, torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
29
+ #model.scheduler = EulerAncestralDiscreteScheduler.from_config(model.scheduler.config)
30
  model.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="base")
31
  model.set_adapters(["base"], adapter_weights=[0.7])
32
  model.to(DEVICE)