gonzmart commited on
Commit
63a438b
·
1 Parent(s): 1892cd4

change to cuda

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,7 +15,7 @@ from PIL import Image, ImageOps
15
 
16
  # Constants
17
  TARGET_SIZE = (512, 512)
18
- DEVICE = torch.device("cpu")
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"])