Spaces:
Running
on
Zero
Running
on
Zero
Fabrice-TIERCELIN
commited on
Commit
•
68231ac
1
Parent(s):
7d92b01
DiffusionPipeline.from_pretrained("yushan777/SUPIR", trust_remote_code = True)
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import random
|
|
6 |
import imageio
|
7 |
import torch
|
8 |
|
9 |
-
from diffusers import
|
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 =
|
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):
|