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 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!










