An image inpainting app made with SwiftUI.
Before | After | Full Example |
---|---|---|
Video example here
LaMa-cleaner backend server needs to be running locally for this to work To set this up:
- Clone https://github.com/whiteio/lama-zits
cd
intolama-zits
and install required dependencies:
pip install -r requirements.txt
- Run the flask server
python predict.py
- iOS 17
- Xcode 15
Port 5000 is used for the flask server.
- Select an image from the photo library
- Draw masks on the image to perform inpainting
- Once the image processing has finished, the new image is displayed
- Rinse and repeat steps 2 and 3 to improve the result if needed