Skip to content

An iOS app for blurring the background in portrait images on-device using semantic segmentation model.

Notifications You must be signed in to change notification settings

aalksii/blurster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An iOS app for blurring the background in portrait images on-device using semantic segmentation model.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published