Мясников Филипп Сергеевич commited on
Commit
d36b237
1 Parent(s): b3de1a8
Files changed (1) hide show
  1. app.py +1 -1
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(image_path)
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())