Remove iStock-style semi-transparent watermarks from images automatically using the pre-trained inpainting model
Run watermark removal inside a Docker container to avoid manually configuring TensorFlow 1.15 dependencies
Process images through the inpainting model to reconstruct what the original unwatermarked image would have looked like
Experiment with gated convolution inpainting techniques by running and modifying the pre-trained model on custom inputs
Requires TensorFlow 1.15 (an older version) and a separate pre-trained model download from Google Drive, Docker is the easiest path.
This project is a Python-based tool that removes watermarks from images using machine learning. The goal is to produce a clean version of an image that looks as though the watermark was never there, as close as possible to what the original unwatermarked image would have looked like. The technique at work is called image inpainting, which means filling in missing or unwanted parts of an image in a visually plausible way. Rather than simply blending nearby pixels, the model draws on patterns it learned during training to reconstruct what should be underneath the watermark. The project was built on ideas from two academic papers: one from a 2018 computer vision conference focused on using contextual attention during inpainting, and another from a 2019 conference that introduced gated convolution as a way to better handle irregular regions in images. The tool is implemented using TensorFlow 1.15 and requires a pre-trained model that the user downloads separately from Google Drive. It can be run two ways: through Docker, where you build a container image and run the tool against an input image, specifying paths for the model, the input, and the output, or through a Python script directly. A Google Colab notebook path is also mentioned in the README, though it is noted as currently broken. The watermark type must be specified when running the tool. The examples shown in the repository use iStock-style watermarks, which are a well-known type of semi-transparent overlay used to protect stock photography. The license is Creative Commons Attribution-NonCommercial, meaning it can be used and shared freely but not for commercial purposes. The project is a personal open-source work by Chimzuruoke Okafor.
← zuruoke on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.