{"id":13494828,"url":"https://github.com/zuruoke/watermark-removal","last_synced_at":"2025-05-14T23:04:18.756Z","repository":{"id":37707766,"uuid":"424507010","full_name":"zuruoke/watermark-removal","owner":"zuruoke","description":"a machine learning image inpainting task that instinctively removes watermarks from image indistinguishable from the ground truth image ","archived":false,"fork":false,"pushed_at":"2024-08-16T13:14:47.000Z","size":42,"stargazers_count":3296,"open_issues_count":36,"forks_count":400,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-04-11T10:13:21.080Z","etag":null,"topics":["deep-learning","machine-learning","python","tensorflow","watermark-image"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zuruoke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-04T07:27:37.000Z","updated_at":"2025-04-11T08:53:11.000Z","dependencies_parsed_at":"2024-06-12T09:24:55.875Z","dependency_job_id":"25c6176a-a851-4234-82fa-a8d54276dc57","html_url":"https://github.com/zuruoke/watermark-removal","commit_stats":{"total_commits":20,"total_committers":4,"mean_commits":5.0,"dds":0.5,"last_synced_commit":"725b762f2453c9a1d44215d7bd39807b3d3ea0ae"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuruoke%2Fwatermark-removal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuruoke%2Fwatermark-removal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuruoke%2Fwatermark-removal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuruoke%2Fwatermark-removal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zuruoke","download_url":"https://codeload.github.com/zuruoke/watermark-removal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254243358,"owners_count":22038046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deep-learning","machine-learning","python","tensorflow","watermark-image"],"created_at":"2024-07-31T19:01:28.606Z","updated_at":"2025-05-14T23:04:18.705Z","avatar_url":"https://github.com/zuruoke.png","language":"Python","funding_links":[],"categories":["Python","HarmonyOS","📚 Project Purpose"],"sub_categories":["Windows Manager","Machine Learning (Intermediate-Level"],"readme":"Chimzuruoke Okafor\n\n# Watermark-Removal\n\n\u003cp\u003e\n  \u003ca href=\"https://pepy.tech/project/prompttools\" target=\"_blank\"\u003e\u003cimg src=\"https://static.pepy.tech/badge/prompttools\" alt=\"Total Downloads\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/hegelai/watermark-removal\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/zuruoke/watermark-removal\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://twitter.com/zuruoke_okafor\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/Zuruoke_Okafor?style=social\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n![version](https://img.shields.io/badge/version-v1.0.0-green.svg?style=plastic)\n![pytorch](https://img.shields.io/badge/tensorflow-v1.15.0-green.svg?style=plastic)\n![license](https://img.shields.io/badge/license-CC_BY--NC-green.svg?style=plastic)\n\nAn 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.\n\nThis project was inspired by the [Contextual Attention](https://arxiv.org/abs/1801.07892) (CVPR 2018) and [Gated Convolution](https://arxiv.org/abs/1806.03589) (ICCV 2019 Oral).\n\nAnd also a shoutout to [Chu-Tak Li](https://chutakcode.wixsite.com/website) for his [Medium article series](https://towardsdatascience.com/10-papers-you-must-read-for-deep-image-inpainting-2e41c589ced0) that really gave me a deep insight into the image inpainting papers stated above\n\n\u003cimg src=\"https://user-images.githubusercontent.com/51057490/140277713-c7d6e2b9-db62-4793-823a-25ed0c4e2771.png\" width=\"45%\"/\u003e \u003cimg src=\"https://user-images.githubusercontent.com/51057490/140277781-5b5218bb-9044-4ec9-a349-eea93bc56d4a.png\" width=\"45%\"/\u003e \u003cimg src=\"https://user-images.githubusercontent.com/51057490/140277929-3f187647-0e63-4bcb-b9f1-472f7558aae5.jpeg\" width=\"45%\"/\u003e \u003cimg src=\"https://user-images.githubusercontent.com/51057490/140277957-6ddb7dec-25c8-42f1-8e39-be491d4f2248.png\" width=\"45%\"/\u003e \u003cimg src=\"https://user-images.githubusercontent.com/51057490/140277983-265a1c9e-6093-4154-8252-838baca21c41.jpeg\" width=\"45%\" /\u003e \u003cimg src=\"https://user-images.githubusercontent.com/51057490/140278002-56c4ae3d-6bfb-4ba3-aa02-7bd28474bfdf.png\" width=\"45%\" /\u003e \u003cimg src=\"https://user-images.githubusercontent.com/51057490/140278030-d2a962ce-3722-43f1-b1bd-0ffde2aa7026.jpeg\" width=\"45%\" /\u003e \u003cimg src=\"https://user-images.githubusercontent.com/51057490/140278040-10e401d7-4b7d-4d81-91fe-e9f01ef4ce7f.png\" width=\"45%\" /\u003e \u003cimg src=\"https://user-images.githubusercontent.com/51057490/140278017-34862de0-86eb-40f0-b04b-7dc02fe38a77.jpeg\" width=\"45%\" /\u003e \u003cimg src=\"https://user-images.githubusercontent.com/51057490/140278011-e0ae9ed0-e4ed-44ed-a9ac-28eb8456797a.png\" width=\"45%\" /\u003e\n\n## Run\n\n- use [Google colab](https://research.google.com/colaboratory/)\n\n- First of all, clone this repo\n\n      !git clone https://github.com/zuruoke/watermark-removal\n\n- Change Directory to the repo\n\n      !cd watermark-removal\n\n- Since 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`).\n\n      !pip install tensorflow==1.15.0\n\n- Install tensorflow toolkit [neuralgym](https://github.com/JiahuiYu/neuralgym).\n\n      !pip install git+https://github.com/JiahuiYu/neuralgym\n\n- Download the model dirs using this [link](https://drive.google.com/drive/folders/1xRV4EdjJuAfsX9pQme6XeoFznKXG0ptJ?usp=sharing) and put it under `model/` (rename `checkpoint.txt` to `checkpoint` because sometimes google drive automatically adds .txt after download)\n\nAnd you're all Set!!\n\n- Now remove the watermark on the image by runing the `main.py` file\n\n      !python main.py --image path-to-input-image --output path-to-output-image --checkpoint_dir model/ --watermark_type istock\n\n## Citing\n\n```\n@article{yu2018generative,\n  title={Generative Image Inpainting with Contextual Attention},\n  author={Yu, Jiahui and Lin, Zhe and Yang, Jimei and Shen, Xiaohui and Lu, Xin and Huang, Thomas S},\n  journal={arXiv preprint arXiv:1801.07892},\n  year={2018}\n}\n\n@article{yu2018free,\n  title={Free-Form Image Inpainting with Gated Convolution},\n  author={Yu, Jiahui and Lin, Zhe and Yang, Jimei and Shen, Xiaohui and Lu, Xin and Huang, Thomas S},\n  journal={arXiv preprint arXiv:1806.03589},\n  year={2018}\n}\n```\n## © Chimzuruoke Okafor\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuruoke%2Fwatermark-removal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzuruoke%2Fwatermark-removal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuruoke%2Fwatermark-removal/lists"}