rinong commited on
Commit
ea00796
1 Parent(s): 5479d05

Added explicit device to e4e construction

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -90,7 +90,7 @@ class ImageEditor(object):
90
  opts["checkpoint_path"] = model_path
91
  opts = Namespace(**opts)
92
 
93
- self.e4e_net = pSp(opts)
94
  self.e4e_net.eval()
95
  self.e4e_net.cuda()
96
 
 
90
  opts["checkpoint_path"] = model_path
91
  opts = Namespace(**opts)
92
 
93
+ self.e4e_net = pSp(opts, self.device)
94
  self.e4e_net.eval()
95
  self.e4e_net.cuda()
96