Fabrice-TIERCELIN commited on
Commit
68231ac
1 Parent(s): 7d92b01

DiffusionPipeline.from_pretrained("yushan777/SUPIR", trust_remote_code = True)

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,7 +6,7 @@ import random
6
  import imageio
7
  import torch
8
 
9
- from diffusers import AutoPipelineForImage2Image
10
  from PIL import Image, ImageFilter
11
 
12
  max_64_bit_int = 2**63 - 1
@@ -15,7 +15,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
15
  floatType = torch.float16 if torch.cuda.is_available() else torch.float32
16
  variant = "fp16" if torch.cuda.is_available() else None
17
 
18
- pipe = AutoPipelineForImage2Image.from_pretrained("Fabrice-TIERCELIN/sdxl-turbo", torch_dtype = floatType, variant = variant)
19
  pipe = pipe.to(device)
20
 
21
  def update_seed(is_randomize_seed, seed):
 
6
  import imageio
7
  import torch
8
 
9
+ from diffusers import DiffusionPipeline
10
  from PIL import Image, ImageFilter
11
 
12
  max_64_bit_int = 2**63 - 1
 
15
  floatType = torch.float16 if torch.cuda.is_available() else torch.float32
16
  variant = "fp16" if torch.cuda.is_available() else None
17
 
18
+ pipe = DiffusionPipeline.from_pretrained("yushan777/SUPIR", trust_remote_code = True)
19
  pipe = pipe.to(device)
20
 
21
  def update_seed(is_randomize_seed, seed):