Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ model2 = torch.hub.load(
|
|
16 |
model1 = torch.hub.load("AK391/animegan2-pytorch:main", "generator", pretrained="face_paint_512_v1", device="cpu")
|
17 |
face2paint = torch.hub.load(
|
18 |
'AK391/animegan2-pytorch:main', 'face2paint',
|
19 |
-
size=
|
20 |
)
|
21 |
def inference(img, ver):
|
22 |
if ver == 'version 2 (🔺 robustness,🔻 stylization)':
|
|
|
16 |
model1 = torch.hub.load("AK391/animegan2-pytorch:main", "generator", pretrained="face_paint_512_v1", device="cpu")
|
17 |
face2paint = torch.hub.load(
|
18 |
'AK391/animegan2-pytorch:main', 'face2paint',
|
19 |
+
size=1024, device="cpu",side_by_side=False
|
20 |
)
|
21 |
def inference(img, ver):
|
22 |
if ver == 'version 2 (🔺 robustness,🔻 stylization)':
|