1
0
mirror of https://github.com/TencentARC/GFPGAN.git synced 2025-05-27 20:50:09 -07:00

add inputs folder

This commit is contained in:
Xintao 2021-06-15 14:15:30 +08:00
parent 88fd720a48
commit 14e04eaa07
7 changed files with 5 additions and 2 deletions

View File

@ -67,9 +67,10 @@ if __name__ == '__main__':
parser.add_argument('--upscale_factor', type=int, default=1)
parser.add_argument('--model_path', type=str, default='experiments/pretrained_models/GFPGANv1.pth')
parser.add_argument('--test_path', type=str, default='inputs')
parser.add_argument('--test_path', type=str, default='inputs/whole_imgs')
parser.add_argument('--suffix', type=str, default=None, help='Suffix of the restored faces')
parser.add_argument('--only_center_face', action='store_true')
parser.add_argument('--aligned', action='store_true')
args = parser.parse_args()
if args.test_path.endswith('/'):
@ -107,6 +108,8 @@ if __name__ == '__main__':
face_helper,
img_path,
save_root,
has_aligned=False,
has_aligned=args.aligned,
only_center_face=args.only_center_face,
suffix=args.suffix)
print('Results are in the <results> folder.')

Binary file not shown.

After

Width:  |  Height:  |  Size: 296 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 483 KiB

BIN
inputs/whole_imgs/00.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

BIN
inputs/whole_imgs/10045.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB