Spaces:
Running
on
Zero
Running
on
Zero
gokaygokay
commited on
Commit
•
49c7764
1
Parent(s):
4981ff1
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ from RealESRGAN import RealESRGAN
|
|
20 |
import gradio as gr
|
21 |
from gradio_imageslider import ImageSlider
|
22 |
|
23 |
-
USE_TORCH_COMPILE =
|
24 |
ENABLE_CPU_OFFLOAD = os.getenv("ENABLE_CPU_OFFLOAD", "0") == "1"
|
25 |
|
26 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
@@ -165,7 +165,6 @@ def create_hdr_effect(original_image, hdr):
|
|
165 |
|
166 |
lazy_pipe = LazyLoadPipeline()
|
167 |
lazy_pipe.load()
|
168 |
-
lazy_pipe = lazy_pipe.to('cuda')
|
169 |
|
170 |
def prepare_image(input_image, resolution, hdr):
|
171 |
condition_image = resize_and_upscale(input_image, resolution)
|
|
|
20 |
import gradio as gr
|
21 |
from gradio_imageslider import ImageSlider
|
22 |
|
23 |
+
USE_TORCH_COMPILE = True
|
24 |
ENABLE_CPU_OFFLOAD = os.getenv("ENABLE_CPU_OFFLOAD", "0") == "1"
|
25 |
|
26 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
165 |
|
166 |
lazy_pipe = LazyLoadPipeline()
|
167 |
lazy_pipe.load()
|
|
|
168 |
|
169 |
def prepare_image(input_image, resolution, hdr):
|
170 |
condition_image = resize_and_upscale(input_image, resolution)
|