zuruoke/watermark-removal
zuruoke/watermark-removal has 5,208 GitHub stars and 598 forks. GitHot measured 0 stars in 24 hours and +4 in 7 days. Last checked 2026-11-11 17:09 UTC. Last push 2026-10-24.
이미지에서 직관적으로 워터마크를 제거해 정답 이미지와 구분할 수 없는 결과를 생성하는 머신러닝 이미지 인페인팅 작업입니다.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- +4
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalChimzuruoke Okafor
Watermark-Removal
An open source project that uses a machine learning based image inpainting methodology to remove watermark from images which is totally indistinguishable from the ground truth version of the image.
This project was inspired by the Contextual Attention (CVPR 2018) and Gated Convolution (ICCV 2019 Oral).
And also a shoutout to Chu-Tak Li for his Medium article series that really gave me a deep insight into the image inpainting papers stated above

Run
Docker
- Clone this repository to your computer.
- From the repository root, build a Docker image with the command
docker build -t watermark-removal . - Download the model dir using this link.
- Create and run a docker container with the image you built using the command:
docker run --rm -v '<path_to_model_dir>:/repo/model' -v '<path_to_input_dir>:/input' -v '<path_to_output_dir>:/output' watermark-removal --checkpoint_dir /repo/model --image '/input/<input_image_file>' --output '/output/<output_image_file>' --watermark_type istock
Google colab (broken)
use Google colab
First of all, clone this repo
!git clone https://github.com/zuruoke/watermark-removalChange Directory to the repo
!cd watermark-removalSince Google Colab uses the latest Tensorflow 2x version and this project uses 1.15.0, downgrade to Tensorflow 1.15.0 version and restart the runtime, (
although the new version of Google Colab does not need you to restart the runtime).!pip install tensorflow==1.15.0Install tensorflow toolkit neuralgym.
!pip install git+https://github.com/JiahuiYu/neuralgymDownload the model dirs using this link and put it under
model/(renamecheckpoint.txttocheckpointbecause sometimes google drive automatically adds .txt after download)
And you're all Set!!
Now remove the watermark on the image by runing the
main.pyfile!python main.py --image path-to-input-image --output path-to-output-image --checkpoint_dir model/ --watermark_type istock
Citation
If you use this in your research, please cite:
Zuruoke (2021). Watermark Removal: a machine learning image inpainting task. GitHub Repository. https://doi.org/10.5281/zenodo.20551267
Citing
@article{yu2018generative,
title={Generative Image Inpainting with Contextual Attention},
author={Yu, Jiahui and Lin, Zhe and Yang, Jimei and Shen, Xiaohui and Lu, Xin and Huang, Thomas S},
journal={arXiv preprint arXiv:1801.07892},
year={2018}
}
@article{yu2018free,
title={Free-Form Image Inpainting with Gated Convolution},
author={Yu, Jiahui and Lin, Zhe and Yang, Jimei and Shen, Xiaohui and Lu, Xin and Huang, Thomas S},
journal={arXiv preprint arXiv:1806.03589},
year={2018}
}
© Chimzuruoke Okafor
관련 프로젝트 살펴보기
tensorflow/tensorflow
모두를 위한 오픈소스 머신러닝 프레임워크
201,505 스타huggingface/transformers
🤗 Transformers: 텍스트, 비전, 오디오, 멀티모달 분야의 최첨단 머신러닝 모델을 위한 모델 정의 프레임워크로, 추론과 학습을 모두 지원합니다.
168,815 스타AUTOMATIC1111/stable-diffusion-webui
Stable Diffusion 웹 UI
165,289 스타Comfy-Org/ComfyUI
그래프와 노드로 구성된 인터페이스를 갖춘, 가장 강력하고 모듈성이 뛰어난 확산 모델 GUI, API, 백엔드입니다. 세계에서 가장 빠른 로컬 추론 엔진입니다.
146,271 스타