Yaron Koresh commited on
Commit
30b0e64
·
verified ·
1 Parent(s): a8a8725

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -44,7 +44,7 @@ def pipe_t2i():
44
  return PIPE
45
 
46
  def pipe_i2i():
47
- PIPE = pipeline("image-to-image", model="stabilityai/stable-diffusion-xl-refiner-1.0", tokenizer="stabilityai/stable-diffusion-xl-refiner-1.0", torch_dtype=torch.float16, device=-1, variant="fp16", use_safetensors=True)
48
  PIPE.unet = torch.compile(PIPE.unet, mode="reduce-overhead", fullgraph=True)
49
  return PIPE
50
 
 
44
  return PIPE
45
 
46
  def pipe_i2i():
47
+ PIPE = StableDiffusionXLImg2ImgPipeline.from_pretrained("stabilityai/stable-diffusion-xl-refiner-1.0", torch_dtype=torch.float16, variant="fp16", use_safetensors=True)
48
  PIPE.unet = torch.compile(PIPE.unet, mode="reduce-overhead", fullgraph=True)
49
  return PIPE
50