LaMa-Eraser-iOS
LaMa-Eraser-iOS copied to clipboard
An iOS image processing app written in SwiftUI which uses a LaMa ML model to perform image inpainting
LaMa-Eraser-iOS
An image inpainting app made with SwiftUI.
Before | After | Full Example |
---|---|---|
Video example here
Prerequisites
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
Environment
- iOS 17
- Xcode 15
Port 5000 is used for the flask server.
Steps
- 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