Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 14e04ea

Browse files
committedJun 15, 2021
add inputs folder
1 parent 88fd720 commit 14e04ea

File tree

7 files changed

+5
-2
lines changed

7 files changed

+5
-2
lines changed
 

‎inference_gfpgan_full.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ def restoration(gfpgan, face_helper, img_path, save_root, has_aligned=False, onl
6767

6868
parser.add_argument('--upscale_factor', type=int, default=1)
6969
parser.add_argument('--model_path', type=str, default='experiments/pretrained_models/GFPGANv1.pth')
70-
parser.add_argument('--test_path', type=str, default='inputs')
70+
parser.add_argument('--test_path', type=str, default='inputs/whole_imgs')
7171
parser.add_argument('--suffix', type=str, default=None, help='Suffix of the restored faces')
7272
parser.add_argument('--only_center_face', action='store_true')
73+
parser.add_argument('--aligned', action='store_true')
7374

7475
args = parser.parse_args()
7576
if args.test_path.endswith('/'):
@@ -107,6 +108,8 @@ def restoration(gfpgan, face_helper, img_path, save_root, has_aligned=False, onl
107108
face_helper,
108109
img_path,
109110
save_root,
110-
has_aligned=False,
111+
has_aligned=args.aligned,
111112
only_center_face=args.only_center_face,
112113
suffix=args.suffix)
114+
115+
print('Results are in the <results> folder.')

‎inputs/cropped_faces/Adele_crop.png

296 KB
Loading
301 KB
Loading
Loading
483 KB
Loading

‎inputs/whole_imgs/00.jpg

2.27 MB
Loading

‎inputs/whole_imgs/10045.png

1.34 MB
Loading

2 commit comments

Comments
 (2)

HAMID4046 commented on Oct 13, 2022

@HAMID4046

RTTGBHT4G

nhanqt1 commented on Sep 10, 2023

@nhanqt1

ok

Please sign in to comment.