
Takes a source Image and a Mask (or second Image channel) and reconstructs the masked region with learned content; supports LaMa (fast, CPU/GPU) and SD2 (text-guided, GPU) backbones. Prefer inpaint_image_opencv for small scratches.
Object removal from a file — source plus mask inpainted and pushed to an HTTP sink.
Dewatermark pipeline — a thresholded, morphology-cleaned mask drives the fill.
Threshold mask carrier — the Mask input arm fed directly by a thresholded hole map.
HTTP-sourced image inpainting with HTTP output.
Image likewise passes through. Every input emits exactly one image.Mask carrier (any set pixel is a hole) or a second Image channel reduced to grayscale (any non-zero pixel is a hole). Dilate the mask a few pixels past the object so its outline is fully covered.model `lama` ignores prompt, steps, guidance, and seed; it is deterministic. model `sd2` reads all four to steer the latent-diffusion fill.model `sd2`, fix seed to a non-negative value for a reproducible fill; the diffusion backbone produces a different result per call otherwise.device `cuda` falls back to CPU with a printed warning when no GPU is visible. LaMa stays usable on CPU; model `sd2` becomes impractically slow.model `sd2` commercially.Automated release