Manjushri commited on
Commit
bb0b285
·
verified ·
1 Parent(s): ec9b59c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -7,12 +7,10 @@ from diffusers import StableDiffusionXLAdapterPipeline, T2IAdapter
7
 
8
  device = "cuda" if torch.cuda.is_available() else "cpu"
9
  model_id = "stabilityai/stable-diffusion-xl-refiner-1.0"
10
- adapter = T2IAdapter.from_pretrained(
11
  "TencentARC/t2i-adapter-sketch-sdxl-1.0")
12
  #scheduler = EulerAncestralDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler")
13
- pipe = StableDiffusionXLAdapterPipeline.from_pretrained(
14
- model_id,
15
- adapter=adapter,)
16
  pipe = pipe.to(device)
17
 
18
  def resize(value,img):
 
7
 
8
  device = "cuda" if torch.cuda.is_available() else "cpu"
9
  model_id = "stabilityai/stable-diffusion-xl-refiner-1.0"
10
+ #adapter = T2IAdapter.from_pretrained(
11
  "TencentARC/t2i-adapter-sketch-sdxl-1.0")
12
  #scheduler = EulerAncestralDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler")
13
+ pipe = StableDiffusionXLAdapterPipeline.from_pretrained(model_id)
 
 
14
  pipe = pipe.to(device)
15
 
16
  def resize(value,img):