xelu3banh commited on
Commit
80f9b20
1 Parent(s): 212cb70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ def inference(img_path, Style, if_face=None):
32
  try:
33
  det_face = True if if_face=="Yes" else False
34
  output = AnimeGANv3_src.Convert(img, f, det_face)
35
- result = cv2.resize(output, (img.shape[0],img.shape[1] ), interpolation = cv2.INTER_AREA)
36
  save_path = f"output/out.{img_path.rsplit('.')[-1]}"
37
  cv2.imwrite(save_path, result[:, :, ::-1])
38
  return result, save_path
 
32
  try:
33
  det_face = True if if_face=="Yes" else False
34
  output = AnimeGANv3_src.Convert(img, f, det_face)
35
+ result = cv2.resize(output, (img.shape[1],img.shape[0] ), interpolation = cv2.INTER_AREA)
36
  save_path = f"output/out.{img_path.rsplit('.')[-1]}"
37
  cv2.imwrite(save_path, result[:, :, ::-1])
38
  return result, save_path