Kupu is an open source AI inpainter to remove object(s) from images while keeping the original image dimension intact.
Demo Video:
kupu.mp4
There are 2 methods to use Kupu : Docker and Manual.
Run the docker compose file to start the web app and server:
docker compose up -dThen, open the web app in your browser at http://localhost:3000. Expect that the app will take a few seconds to load. You might try several times to click erase button until it works. FYI, the image processing will be terminated after 30 seconds. If you want to extend this time out, you could change it at this line of code.
This app is built using Ruby on Rails for the web app and Python for the image processing. Therefore, make sure that you have Ruby and Python >=3.12 installed on your system.
Run the installation script to install required Ruby and Python packages on your terminal as follows:
./install.shIf you have permission issues, run the following command :
chmod +x install.shAfter the installation succeeds, you can start the web app and server as follows:
- Open a terminal and run the following command to start the web app:
./start-web.sh- Open a new terminal and run the following command to start the server:
./start-server.sh- Open the web app in your browser at http://localhost:3000
This repo uses a model downloaded from IOpaint which was originally developed by LaMa. Please visit the LaMa repo if you want to know how to cite their work.
