Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 875 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 875 Bytes

Blurster

Blurster is an iOS app for blurring the background in portrait images.

SwiftUI

This app uses DeepLabV3 – a pretrained image segmentation model from CoreML. Below you can see a demonstration of the app.

All iOS code is here.

PyTorch

Here is an example of how the PyTorch DeepLabV3 model with a ResNet-101 backbone works with an image when it's pre-resized to the same size as CoreML model (513-by-513 pixels).

All Python code is here.

Installation

pip install -r requirements.txt

Usage

# Convert data/1.jpg to data/2.jpg with a segmentation mask 513x513
python main.py data/1.jpg data/2.jpg -s 513