Spaces:
Runtime error
Runtime error
Мясников Филипп Сергеевич
commited on
Commit
·
d36b237
1
Parent(s):
b3de1a8
fix
Browse files
app.py
CHANGED
|
@@ -126,7 +126,7 @@ def gen_im(model_type='ffhq'):
|
|
| 126 |
def inference(img):
|
| 127 |
img.save('out.jpg')
|
| 128 |
#aligned_face = align_face('out.jpg')
|
| 129 |
-
input_image = run_alignment(
|
| 130 |
transformed_image = transform(input_image)
|
| 131 |
|
| 132 |
ffhq_codes = ffhq_encoder(transformed_image.unsqueeze(0).to(device).float())
|
|
|
|
| 126 |
def inference(img):
|
| 127 |
img.save('out.jpg')
|
| 128 |
#aligned_face = align_face('out.jpg')
|
| 129 |
+
input_image = run_alignment('out.jpg')
|
| 130 |
transformed_image = transform(input_image)
|
| 131 |
|
| 132 |
ffhq_codes = ffhq_encoder(transformed_image.unsqueeze(0).to(device).float())
|