Spaces:
Runtime error
Runtime error
Update e4e_projection.py
Browse files- e4e_projection.py +1 -1
e4e_projection.py
CHANGED
@@ -14,7 +14,7 @@ from util import *
|
|
14 |
def projection(img, name, device='cuda'):
|
15 |
|
16 |
|
17 |
-
model_path = '
|
18 |
ckpt = torch.load(model_path, map_location='cpu')
|
19 |
opts = ckpt['opts']
|
20 |
opts['checkpoint_path'] = model_path
|
|
|
14 |
def projection(img, name, device='cuda'):
|
15 |
|
16 |
|
17 |
+
model_path = 'e4e_ffhq_encode.pt'
|
18 |
ckpt = torch.load(model_path, map_location='cpu')
|
19 |
opts = ckpt['opts']
|
20 |
opts['checkpoint_path'] = model_path
|