A user clicks an object, Segment Anything produces its mask, and depending on intent the hole is either filled by a fast non-diffusion inpainter (object removal) or filled by a text-guided diffusion model (object/background replacement).
Properties
family
generate-to-edit
modality
image + click -> mask -> removed or replaced region -> composited output
whyMultiModel
Segmentation and inpainting are different problem classes: SAM has no generative capability, LaMa cannot follow text prompts for novel content, and Stable Diffusion alone can't reliably target an arbitrary user-clicked region without an upstream mask.
SAM -> LaMa (remove) or Stable Diffusion Inpainting (replace)
useCases
[one-click object removal from photos][background replacement via text prompt][e-commerce photo cleanup]
pitfalls
LaMa struggles with large masks needing coherent new structure (shadows, reflections); Stable Diffusion replace path can hallucinate seams without careful mask feathering and colour matching