Skip to content

Commit

Permalink
fix mprnet app (PaddlePaddle#558)
Browse files Browse the repository at this point in the history
  • Loading branch information
LielinJiang authored Jan 13, 2022
1 parent d77ae35 commit 3e17a8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions applications/tools/image_restoration.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
if args.cpu:
paddle.set_device('cpu')

predictor = MPRPredictor(images_path=args.images_path,
predictor = MPRPredictor(
output_path=args.output_path,
weight_path=args.weight_path,
seed=args.seed,
task=args.task)
predictor.run()
predictor.run(images_path=args.images_path)
1 change: 1 addition & 0 deletions ppgan/apps/mpr_predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def __init__(self,
def get_images(self, images_path):
if os.path.isdir(images_path):
return natsorted(
glob(os.path.join(images_path, '*.jpeg')) +
glob(os.path.join(images_path, '*.jpg')) +
glob(os.path.join(images_path, '*.JPG')) +
glob(os.path.join(images_path, '*.png')) +
Expand Down

0 comments on commit 3e17a8c

Please sign in to comment.