A React App To Quickly Cleanup Or Remove Objects In Any Image
CleanUp.pictures
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:
- A frontend built with React / Typescript / TailwindCSS
- A Nodejs Firebase function to proxy the fetch requests on a secure HTTPS endpoint with AppCheck/reCAPTCHA v3
- An inpainting service running LaMa on GPU via Cloud Run for Anthos
Setup
- Function:
cd functions && npm i
- Frontend:
yarn
Then edit the .env file to match your firebase & backend settings.
Development
- Function:
cd functions && npm run serve
- Frontend:
yarn dev
Deployment
- Function:
firebase deploy --only functions
- Frontend:
yarn build && firebase deploy --only hosting
Acknowledgements
CleanUp.pictures wouldn’t be possible without LaMa: Resolution-robust Large Mask Inpainting with Fourier Convolutions by Samsung Research.