Image Inpainting is a classical problem in computer vision and graphics.
The objective is to fill semantic and reasonable contents in the corruptions and voids and generate an image. Humans can fill the missing regions using empirical knowledge of the diverse
object structures present in real world.
Nevertheless, it is not easy for machines to learn a
wide variety of structures in natural images and predict what to fill in unknown missing-data
regions in images. Thus, it is crucial to know how to learn an image transformation from a
corrupted image with missing data to a completed image.
The current prototype is based on the following Research Paper:
This project tries to achieve object removal from images and get the base image reconstructed using surrounding pixels and pretrained model using conditional Generative Adversarial Networks (cGANs).
-
Working of this Project: The black regions on the left side represent the objects/elements that we wish to remove.
-
Step 1: Install all the required dependencies. Use the following command to install the dependencies.
pip3 install -r requirements.txt
-
Step 2: Open the MainFile.py file and execute it.
-
Step 3: Use the following Hot Keys to navigate through the UI:
-
[A] Key : Move to next Image.
-
[D] Key : Move to previous Image.
-
[Esc] Key : Close the Windowed Application.
-
-
Step 4: Use the slider present at the bottom to increase or decrease the pen size. Then select the part of image you wish to remove by dragging the mouse over them, just like a brush!
-
Step 5: Then use the following hot keys as per the requirement:
-
[F] or [Enter] Key : Starts the reconstruction process, removes the selected elements and displays the resulting image on right panel.
-
[R] Key : Resets the masked Image to Original(undo all the masking).
-
[S] Key : Save the resulting image in Result directory.
-
