Update mpr_predictor.py

fixed MPR model predictor
own
kongdebug 3 years ago committed by GitHub
parent 099d5ac8c5
commit f0109ae8a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      paddlers/models/ppgan/apps/mpr_predictor.py

@ -116,7 +116,7 @@ class MPRPredictor(BasePredictor):
for image_file in tqdm(image_files):
img = self.read_image(image_file)
image_name = os.path.basename(image_file)
img.save(os.path.join(task_path, image_name))
# img.save(os.path.join(task_path, image_name))
tmps = image_name.split('.')
assert len(
tmps) == 2, f'Invalid image name: {image_name}, too much "."'

Loading…
Cancel
Save