{"id":20685520,"url":"https://github.com/yas-sim/interactive-image-inpainting","last_synced_at":"2025-04-22T13:40:39.280Z","repository":{"id":185235185,"uuid":"261656389","full_name":"yas-sim/interactive-image-inpainting","owner":"yas-sim","description":"Deep Learning Based Interactive Image Inpainting Demo","archived":false,"fork":false,"pushed_at":"2021-06-11T09:00:51.000Z","size":895,"stargazers_count":32,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T15:34:51.898Z","etag":null,"topics":["deep-learning","demo","dl-models","draw","image-inpainting","image-ret","image-retrieval","inference","inference-engine","inpaint","intel","interactive-demo","openvino","openvino-toolkit","picture","python","undesired-objects"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yas-sim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-05-06T05:01:47.000Z","updated_at":"2024-12-17T07:48:43.000Z","dependencies_parsed_at":"2023-08-01T07:09:27.592Z","dependency_job_id":null,"html_url":"https://github.com/yas-sim/interactive-image-inpainting","commit_stats":null,"previous_names":["yas-sim/interactive-image-inpainting"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yas-sim%2Finteractive-image-inpainting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yas-sim%2Finteractive-image-inpainting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yas-sim%2Finteractive-image-inpainting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yas-sim%2Finteractive-image-inpainting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yas-sim","download_url":"https://codeload.github.com/yas-sim/interactive-image-inpainting/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250250242,"owners_count":21399597,"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","demo","dl-models","draw","image-inpainting","image-ret","image-retrieval","inference","inference-engine","inpaint","intel","interactive-demo","openvino","openvino-toolkit","picture","python","undesired-objects"],"created_at":"2024-11-16T22:27:42.378Z","updated_at":"2025-04-22T13:40:39.250Z","avatar_url":"https://github.com/yas-sim.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Interactive Image Inpainting Demo\r\nThis program demonstrates how the `inpainting-gmcnn` model works with the [Intel(r) Distribution of OpenVINO(tm) toolkit](https://software.intel.com/en-us/openvino-toolkit).  \r\nThe demo program takes an image file and displays it on the screen. The user can draw the mask image on top of the input image, then the program will treat the masked areas as they are lacking and inpaint (compensate) the image by deep learning based inferencing.  \r\nYou can remove undesired objects from your picture by masking them and the program will generate a natural looking picture without the undesired objects.  \r\n\r\nこれは[Intel(r) Distribution of OpenVINO(tm) toolkit](https://software.intel.com/en-us/openvino-toolkit)で`inpainting-gmcnn` (画像修復モデル)を使用する方法をデモするプログラムです。  \r\nデモプログラムは画像を１枚読み込み、表示します。ユーザーが入力画像の上に自由にマスクを描画したのち、プログラムがマスク部分を欠損部分として扱い、欠損部分を補うようにディープラーニングでの推論を行い修復描画(Inpaint)してくれます。  \r\n絵の中の望ましくない部分(景色に写りこんだ柵や人など)をマスクすることで、それらを取り除いた自然な絵を生成してくれます（当然ですが限度があります:-) ）。  \r\n\r\n\r\n### Image Inpainting Result\r\n![inpainting1](./resources/inpainting.gif)\r\n\r\n![inpainting2](./resources/inpainting.jpg)\r\n\r\n### Required DL Models to Run This Demo\r\n\r\nThe demo expects the following models in the Intermediate Representation (IR) format:\r\n\r\n  * `gmcnn-places2-tf`\r\n\r\nYou can download this model from OpenVINO [Open Model Zoo](https://github.com/opencv/open_model_zoo).\r\nIn the `models.lst` is the list of appropriate models for this demo that can be obtained via `Model downloader`.\r\nPlease see more information about `Model downloader` [here](../../../tools/downloader/README.md).\r\n\r\n## How to Run\r\n\r\n\r\n### 0. Prerequisites\r\n- **OpenVINO 2020.2**\r\n  - If you haven't installed it, go to the OpenVINO web page and follow the [*Get Started*](https://software.intel.com/en-us/openvino-toolkit/documentation/get-started) guide to do it.  \r\n\r\n\r\n### 1. Install dependencies  \r\nThe demo depends on:\r\n- `opencv-python`\r\n- `numpy`\r\n\r\nTo install all the required Python modules you can use:\r\n\r\n``` sh\r\n(Linux) pip3 install -r requirements.txt\r\n(Win10) pip install -r requirements.txt\r\n```\r\n\r\n### 2. Download DL models from OMZ\r\nUse `Model Downloader` to download the required models and convert the downloaded model into OpenVINO IR models with `Model Converter`.  \r\n``` sh\r\n(Linux) python3 $INTEL_OPENVINO_DIR/deployment_tools/tools/model_downloader/downloader.py --list models.lst\r\n        python3 $INTEL_OPENVINO_DIR/deployment_tools/tools/model_downloader/converter.py --list models.lst\r\n       \r\n(Win10) python \"%INTEL_OPENVINO_DIR%\\deployment_tools\\tools\\model_downloader\\downloader.py\" --list models.lst\r\n        python \"%INTEL_OPENVINO_DIR%\\deployment_tools\\tools\\model_downloader\\converter.py\" --list models.lst\r\n```\r\n\r\n### 3. Run the demo app\r\n\r\n``` sh\r\n(Linux) python3 image-inpainting.py \u003cinput_image_file\u003e\r\n(Win10) python image-inpainting.py \u003cinput_image_file\u003e\r\n```\r\n\r\n## Demo Output  \r\nThe application draws the results on the screen.\r\n\r\n## Tested Environment  \r\n- Windows 10 x64 1909 and Ubuntu 18.04 LTS  \r\n- Intel(r) Distribution of OpenVINO(tm) toolkit 2021.3 \r\n- Python 3.6.5 x64  \r\n\r\n## See Also  \r\n* [Using Open Model Zoo demos](../../README.md)  \r\n* [Model Optimizer](https://docs.openvinotoolkit.org/latest/_docs_MO_DG_Deep_Learning_Model_Optimizer_DevGuide.html)  \r\n* [Model Downloader](../../../tools/downloader/README.md)  \r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyas-sim%2Finteractive-image-inpainting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyas-sim%2Finteractive-image-inpainting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyas-sim%2Finteractive-image-inpainting/lists"}