Skip to content

Commit

Permalink
updaed output path
Browse files Browse the repository at this point in the history
  • Loading branch information
braindotai committed Feb 15, 2021
1 parent a930c49 commit 79a8b0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def remove_watermark(image_path, mask_path, max_dim, reg_noise, input_depth, lr,

pil_image = Image.fromarray((output_image.transpose(1, 2, 0) * 255.0).astype('uint8'))

output_path = image_path.split('.')[-2] + '-without-watermark.jpg'
print(f'\nSaving final output image to: "{output_path}"')
output_path = image_path.split('/')[-1].split('.')[-2] + '-output.jpg'
print(f'\nSaving final output image to: "{output_path}"\n')

pil_image.save(output_path)

0 comments on commit 79a8b0d

Please sign in to comment.