С Чичерин commited on
Commit
26ee91d
1 Parent(s): 3c9f42d

fixed gpu issue

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from test import inference_img
3
  from models import *
4
 
5
- device='cuda'
6
  model = MaskForm()
7
  model = model.to(device)
8
  checkpoint = f"stylematte.pth"
 
2
  from test import inference_img
3
  from models import *
4
 
5
+ device='cpu'
6
  model = MaskForm()
7
  model = model.to(device)
8
  checkpoint = f"stylematte.pth"