About this tool
Remove Object from Photo is a magic eraser that runs in your browser. Open a photo, paint over what should not be there — a passer-by behind your friends, a power line across the sky, a bin on the beach, a stray sign — and press Erase. An AI model fills the painted area with what it thinks was behind it and blends it into the rest of the picture. You can erase several things one after another, undo and redo every step, drag a divider to compare the original with the result, and save the photo at its original size as JPEG or PNG. The photo is decoded, edited and saved inside this tab; nothing is uploaded.
How it works
The model is LaMa (Large Mask Inpainting), published by Suvorov and colleagues at Samsung Research under the Apache-2.0 licence; this page uses the big-lama weights, trained on the Places365 collection of scene photos, converted to ONNX and run on your graphics card with ONNX Runtime Web. LaMa always works on a 512 × 512 picture, so instead of shrinking the whole photo the page cuts a square around what you painted, 2.5 times the size of the painted area so the model sees enough of the surroundings, and scales that square to 512. The mask is widened by a few pixels first, because the model does badly when the mask hugs the object's edge exactly. The result is scaled back and pasted only inside the widened mask, with a 3-pixel soft edge. Every pixel outside that edge stays exactly as it was in your photo.
What it does well, and what it does not
The model guesses what was hidden; it cannot know. Simple backgrounds — sky, a wall, grass, sand, water, snow — usually come out seamless. Crowds, text and regular patterns such as tiles, fences or rows of windows often come out blurred or repeated, and a large object that covers about half the frame is rarely erased cleanly. Paint generously and include the object's shadow and reflection, or they stay behind. If one pass is not clean, undo and paint a little wider, or erase what is left in a second pass.
What your computer needs
The first erase downloads the model once, about 208 MB, plus about 26 MB for the inference engine (ONNX Runtime Web, from the jsDelivr CDN); both are then kept in this browser's cache. The model is then prepared for your graphics card, which took about a minute on a GTX 1060, and the very first erase about half a minute more; the prepared model is kept while the page stays open, and each later erase takes about three seconds. It only runs through WebGPU: on the processor a single erase took more than a minute, so there is no CPU mode, and a browser without WebGPU, or with graphics acceleration turned off, gets an explanation instead. Photos up to 8192 pixels on the long side and 40 megapixels are accepted. The saved file is re-encoded from the edited picture, so EXIF data such as the location and camera details is not carried over.