Spaces:
Running
Running
change to cuda
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ from PIL import Image, ImageOps
|
|
15 |
|
16 |
# Constants
|
17 |
TARGET_SIZE = (512, 512)
|
18 |
-
DEVICE = torch.device("
|
19 |
LPIPS_MODELS = ['alex', 'vgg', 'squeeze']
|
20 |
MASK_SIZES = {"64x64": 64, "128x128": 128, "256x256": 256}
|
21 |
DEFAULT_MASK_SIZE = "256x256"
|
@@ -250,4 +250,4 @@ def create_gradio_interface():
|
|
250 |
|
251 |
if __name__ == "__main__":
|
252 |
demo = create_gradio_interface()
|
253 |
-
demo.launch(allowed_paths=["static"])
|
|
|
15 |
|
16 |
# Constants
|
17 |
TARGET_SIZE = (512, 512)
|
18 |
+
DEVICE = torch.device("cuda")
|
19 |
LPIPS_MODELS = ['alex', 'vgg', 'squeeze']
|
20 |
MASK_SIZES = {"64x64": 64, "128x128": 128, "256x256": 256}
|
21 |
DEFAULT_MASK_SIZE = "256x256"
|
|
|
250 |
|
251 |
if __name__ == "__main__":
|
252 |
demo = create_gradio_interface()
|
253 |
+
demo.launch(allowed_paths=["static"])
|