Skip to content

An AI-based inpainter app to remove object(s) from your photo while keeping the image original dimension intact.

License

Notifications You must be signed in to change notification settings

ardiantovn/kupu

Repository files navigation

Kupu

Kupu is an open source AI inpainter to remove object(s) from images while keeping the original image dimension intact.

Demo Video:

kupu.mp4

Kupu

Installation

There are 2 methods to use Kupu : Docker and Manual.

Docker

Run the docker compose file to start the web app and server:

docker compose up -d

Then, 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.

Manual

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.sh

If you have permission issues, run the following command :

chmod +x install.sh

After the installation succeeds, you can start the web app and server as follows:

  1. Open a terminal and run the following command to start the web app:
./start-web.sh
  1. Open a new terminal and run the following command to start the server:
./start-server.sh
  1. Open the web app in your browser at http://localhost:3000

Acknowledgement

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.

About

An AI-based inpainter app to remove object(s) from your photo while keeping the image original dimension intact.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published