Offline watermark remover on an M1 Mac (UNet++ + 2D lattice and LaMa) A developer released unwatermark, an open-source command-line tool that removes watermarks from batches of photos entirely offline on Apple Silicon Macs, running in about 6 to 10 seconds per image on an M1. The tool combines UNet++ segmentation models from christophernavas/watermark-remover with a 256px seed scan and 2D lattice recovery to catch repeating glyphs, then inpaints each mask cluster in a tight local crop using big-lama.pt, avoiding artifacts such as grass texture painted into sky or erased fencing, crane cables and safety signs. It requires Python 3.12+ and uv, downloads weights once to ~/.cache/huggingface/hub and ~/.cache/unwatermark/big-lama.pt, and also runs on CUDA and plain CPU. Offline batch watermark remover, built on an M1 MacBook. No subscription, no credits, no uploading photos to a browser one at a time. I had a folder of watermarked photos to clean up for a project. I wasn't paying €25 a month for a tool I'd use twice. I tried the usual options first: 1. "Free" web removers. Upload one photo, wait twenty seconds, then find out the HD download needs an account and 15 monthly credits. 2. Desktop trial apps. Download a 400MB .dmg that looks like it was compiled in 2014. Run a photo through it. Watch it stamp its own, bigger watermark over the original. 3. Free cloud GPU Spaces. Worked well for four photos. Then Hugging Face cut me off for hitting the daily ZeroGPU limit. Running it locally was the obvious answer. The catch was doing it on an M1 with 16GB of unified memory. No NVIDIA GPU, no CUDA, and a PyTorch MPS backend that quietly falls back to CPU the moment it sees an FFT. So I built a CLI that runs offline on Apple Silicon, works through whole folders, and costs nothing. CUDA and plain CPU work too. Plugging open-source segmentation models into LaMa gets you most of the way in an afternoon. The last 20% is where local removal usually falls over: - Small letters left behind. A standard 512px pass takes out big logos and banners, then leaves twenty little repeating letters scattered across the sky. - Real things getting erased. The aggressive specialist models lines , repeated , logo and 256px tiles both catch smaller marks. They also remove Heras fencing, crane cables and red "DANGER KEEP OUT" signs, because a zoomed-in tile has no idea what the rest of the photo looks like. - Grass in the sky. Give big-lama a full 1300px+ photo in one go and its global FFT convolutions pull texture from the bottom of the frame and paint a patch of grass into clear sky. The fix was to stop putting everything into one noisy mask and split the jobs up: 1. Primary scan at global and 512px. Uses the universal and gated overlay UNet++ models from christophernavas/watermark-remover . Fences, cables and safety signs survive. Photos that are already clean come out untouched 0.0% mask . 2. 256px seed scan, then repeating-glyph and 2D lattice recovery. The 256px pass never writes to the final mask. It only collects candidates. When enough of them match each other in high-pass luminance, the engine averages them into a clean template, fits the repeating grid rectangular, staggered or diagonal, nothing hardcoded to a particular agency and goes back for the marks it missed: faint ones, ones behind objects and ones cut off at the edge. 3. Local-crop LaMa inpainting big-lama.pt . Each mask cluster gets inpainted in its own tight crop, feathered outward only. If LaMa is painting sky, it only sees sky. Solid dark stock-photo footer bars are handled separately so they don't smear black into the foreground. Use --crop-footer to cut them off completely. It all runs locally on MPS PYTORCH ENABLE MPS FALLBACK=1 is set for you . Weights download once into ~/.cache/huggingface/hub and ~/.cache/unwatermark/big-lama.pt . After that it's fully offline. On an M1 it takes about 6 to 10 seconds an image. Needs Python 3.12+ and uv https://docs.astral.sh/uv/ . uv tool install git+https://github.com/otterolie/unwatermark.git Or run it without installing: uvx --from git+https://github.com/otterolie/unwatermark.git unwatermark ./photos -r --format original git clone https://github.com/otterolie/unwatermark.git cd unwatermark Optional: put the launcher on your PATH mkdir -p ~/.local/bin ln -sf "$ pwd /unwatermark" ~/.local/bin/unwatermark Optional: get the weights now instead of on first run unwatermark --download-models Run it from inside any folder of images: Clean everything recursively, keep original formats writes to