Blurster is an iOS app for blurring the background in portrait images.
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.
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.
pip install -r requirements.txt
# Convert data/1.jpg to data/2.jpg with a segmentation mask 513x513
python main.py data/1.jpg data/2.jpg -s 513