Update app.py
Browse files
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[
|
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
|