To try it out, clone, put this file in /backend/, and run:
This will concurrently run the React frontend and Flask backend.
The frontend allows you to upload an image and erase parts of it with the mouse. Then when you click "infill", the image and mask are sent to a PartialConvUNet in the backend which infills your image using AI.
This is an unofficial web demo of a paper, Image Inpainting for Irregular Holes Using Partial Convolutions [Liu+, arXiv2018].
These existing open-source implementations were referenced extensively, and we are using pretrained weights from one of them:
https://github.com/NVIDIA/partialconv
https://github.com/naoto0804/pytorch-inpainting-with-partial-conv