Build a Deep Learning Selfie Segmentation Web App using Gradio @NicholasRenotte
Build a Deep Learning Selfie Segmentation Web App using Gradio  @NicholasRenotte
Uploaded July 2021 | Updated September 2026, 2 hours ago
Build your own selfie segmentation model using Mediapipe, Gradio and Python.

The selfie segmentation model allows you to quickly and easily strip out the background from photos using a prebuilt machine learning model.

We’re going to take it one step further though and integrate it to a Gradio app!

Link to Code: github.com/nicknochnack/SelfieSegmentationwithGradio

Once again thanks so much to Gradio for sponsoring this video. If you need to transform your ML models into standalone apps and make them shine, DEFINITELY check them out at https://gradio.app and get started for free! Also make sure to check out their GitHub repo for a bunch of great resources: github.com/gradio-app/gradio

Chapters
0:00 - Introduction
0:14 - Gameplan
1:10 - How it Works
1:39 - Tutorial Start
2:37 - 1. Install and Import Dependencies
4:55 - 2. Setup OpenCV Feed
8:41 - 3. Apply Selfie Segmentation
13:30 - 4. Process Results with Matplotlib
26:54 - 5. Build Gradio App
36:29 - Ending

Oh, and don't forget to connect with me!
LinkedIn: bit.ly/324Epgo
Facebook: bit.ly/3mB1sZD
GitHub: bit.ly/3mDJllD
Patreon: bit.ly/2OCn3UW
Join the Discussion on Discord: bit.ly/3dQiZsV

Happy coding!
Nick

P.s. Let me know how you go and drop a comment if you need a hand!
Build a Deep Learning Selfie Segmentation Web App using GradioBuild a Deep CNN Image Classifier with ANY ImagesMACHINE LEARNING Resources I use EVERYDAY (and you can too!)Buying a GPU for Deep Learning? Dont make this MISTAKE! #shortsRun GPT4All LLMs with Python in 8 lines of code? 🐍Reading, Transforming and Exporting Videos using OpenCV and PythonBuilding a Neural Network with PyTorch in 15 Minutes | Coding ChallengeEnd-To-End  Data Science with Kaggle | Competition speed run?I tried to build a ML Drowsiness Detector App (with sound alerts) in 15 minsGoDot reinforcement learning for the win! (after 92 fails)I trained a Sign Language Detection Transformer (heres how you can do it too!)How I Learn ANYTHING TECHNICAL...and dont FORGET it.
Nicholas Renotte |

Build a Deep Learning Selfie Segmentation Web App using Gradio

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER