Stable Diffusion Inpainting with Segment Anything Model (SAM)

From the creator

In this video, I combine the output of Segment Anything Model (SAM) by Meta AI with Stable Diffusion Inpainting using Hugging Face Diffusers library and Gradio. In the end, we create a simple app for inpainting in which mask is decided by the SAM model. Demo link will be pasted here when its available Example image comes from here: https://github.com/CompVis/latent-diffusion/blob/main/data/inpainting_examples/6458524847_2f4c361183_k.png #stablediffusion #sam Please subscribe and like the video to help me keep motivated to make awesome videos like this one. :) My book, Approaching (Almost) Any Machine Learning problem, is available for free here: https://bit.ly/approachingml Follow me on: Twitter: https://twitter.com/abhi1thakur LinkedIn: https://www.linkedin.com/in/abhi1thakur/ Kaggle: https://kaggle.com/abhishek

Stop watching · start building
Matched to Image Generation

Makers residency 4th edition

Your idea can be anything. At our last workshops, people built plant-based nutrition businesses, a way to measure planetary resilience, crochet headwear and a way to connect lonely people living in the same building. An asset manager went on to raise an additional £25M on their fund within nine months. The fourth workshop is a full day at KOKO with Nick Sarafa, learning to build with Claude Code. Bring the thing you keep meaning to start. We’ll bring the pizza.

◆ Fri 13 Nov 2026 ◆ KOKO, London
Makers residency 4th edition
Live event
Makers residency 4th edition
Fri 13 Nov 2026

More like this

Running one yourself?

List your AI event,
wherever it is.

A meetup, a workshop, a hackathon, a conference. Any city, or online. Tell us about it and it lands in front of people already learning this stuff.