sky4055 / cleanup.pictures

Code for https://cleanup.pictures

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

preview

This is the code repository for CleanUp.pictures, a free web application that lets you quickly cleanup or remove objects in any image.

CleanUp.pictures consists in 3 main blocks:

Setup

  1. Function: cd functions && npm i
  2. Frontend: npm i

Then edit the .env file (or add a new .env.local file) that matches your firebase & backend settings.

To point the frontend to the local functions emulator, update your .env file with:

REACT_APP_INPAINTING_ENDPOINT=http://localhost:5001/cleanup-pictures/us-central1/default/cleanup

Development

  1. Function: cd functions && npm run serve
  2. Frontend: npm run dev

Deployment

  1. Function: firebase deploy --only functions
  2. Frontend: The frontend is automatically deployed when a PR is created/merged

Acknowledgements

CleanUp.pictures wouldn't be possible without LaMa: Resolution-robust Large Mask Inpainting with Fourier Convolutions by Samsung Research.

About

Code for https://cleanup.pictures

License:Apache License 2.0


Languages

Language:TypeScript 82.1%Language:HTML 16.6%Language:CSS 0.8%Language:JavaScript 0.5%