Skip to content

Commit

Permalink
add inputs folder
Browse files Browse the repository at this point in the history
  • Loading branch information
xinntao committed Jun 15, 2021
1 parent 88fd720 commit 14e04ea
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions inference_gfpgan_full.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ def restoration(gfpgan, face_helper, img_path, save_root, has_aligned=False, onl

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('/'):
Expand Down Expand Up @@ -107,6 +108,8 @@ def restoration(gfpgan, face_helper, img_path, save_root, has_aligned=False, onl
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 added inputs/cropped_faces/Adele_crop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added inputs/cropped_faces/Julia_Roberts_crop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added inputs/cropped_faces/Justin_Timberlake_crop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added inputs/cropped_faces/Paris_Hilton_crop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added inputs/whole_imgs/00.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added inputs/whole_imgs/10045.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

2 comments on commit 14e04ea

@HAMID4046
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RTTGBHT4G

@nhanqt1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Please sign in to comment.