Ahsen Khaliq commited on
Commit
416c8ad
1 Parent(s): e91ac97

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ def inference(content, style, index):
24
  imgs = cv2.imread('style.png')
25
  img_crops = fa.get_crop_image(imgs)
26
  cv2.imwrite('stylecrop.png', img_crops)
27
- os.system("""python style_transfer_folder.py --size 1024 --add_weight_index """+str(int(index))+""" --ckpt ./blendgan.pt --psp_encoder_ckpt ./psp_encoder.pt --style_img_path stylecrop.png --input_img_path contentcrop.png""")
28
  return "out.jpg"
29
 
30
  title = "BlendGAN"
 
24
  imgs = cv2.imread('style.png')
25
  img_crops = fa.get_crop_image(imgs)
26
  cv2.imwrite('stylecrop.png', img_crops)
27
+ os.system("""python style_transfer_folder.py --size 1024 --add_weight_index """+str(int(index))+""" --ckpt ./blendgan.pt --psp_encoder_ckpt ./psp_encoder.pt --style_img_path style.png --input_img_path contentcrop.png""")
28
  return "out.jpg"
29
 
30
  title = "BlendGAN"