Update app.py
Browse files
app.py
CHANGED
@@ -166,12 +166,12 @@ def inference(img, model):
|
|
166 |
aligned_face = align_face('out.jpg')
|
167 |
|
168 |
my_w = projection(aligned_face, "test.pt", device).unsqueeze(0)
|
169 |
-
if model == '
|
170 |
with torch.no_grad():
|
171 |
-
my_sample =
|
172 |
-
elif model == '
|
173 |
with torch.no_grad():
|
174 |
-
my_sample =
|
175 |
# elif model == 'Jinx':
|
176 |
# with torch.no_grad():
|
177 |
# my_sample = generatorjinx(my_w, input_is_latent=True)
|
|
|
166 |
aligned_face = align_face('out.jpg')
|
167 |
|
168 |
my_w = projection(aligned_face, "test.pt", device).unsqueeze(0)
|
169 |
+
if model == 'Joker':
|
170 |
with torch.no_grad():
|
171 |
+
my_sample = generatorjoker(my_w, input_is_latent=True)
|
172 |
+
elif model == 'Voldemort':
|
173 |
with torch.no_grad():
|
174 |
+
my_sample = generatorvoldemort(my_w, input_is_latent=True)
|
175 |
# elif model == 'Jinx':
|
176 |
# with torch.no_grad():
|
177 |
# my_sample = generatorjinx(my_w, input_is_latent=True)
|