Files
ausboss-ComfyUI-AusBoss/js/docs/AUSBOSS_NODES_LaMaInpaint.md
T
ausboss ae2af9db47 Merge branch 'fix/clip-node-ux' into rc/2026-09-30
# Conflicts:
#	CHANGELOG.md
#	example_workflows/LTX 2.3 Video Outpaint (AusBoss).json
#	js/input_preview/index.js
2026-09-29 22:16:33 -05:00

1.9 KiB

LaMa Inpaint

Removes masked content with a TorchScript LaMa checkpoint. It processes video frames one at a time to keep VRAM bounded and composites the result through the input mask so pixels where the mask is zero remain unchanged.

Model setup

Place big-lama.pt in:

ComfyUI/models/lama/big-lama.pt

The node never downloads a model. After adding or replacing a checkpoint, refresh the browser or restart ComfyUI so the model list is updated.

Controls

  • image: BHWC images or video frames.
  • mask: BHW mask where white identifies content to replace. One mask is broadcast across the batch; otherwise supply one mask per image. A picture with no mask painted on it stops the run with "No mask painted" instead of coming back unchanged.
  • model: A .pt or .pth TorchScript checkpoint from models/lama.

Output

  • image: A finite BHWC image batch with the original batch size, dimensions, data type, extra channels, and unmasked pixels preserved.

Preview

The panel shows the inpainted result, and before a run it falls back to a thumbnail of whatever feeds the image input. A video inpaint streams each finished frame to the panel as it goes, so a long run shows its progress rather than sitting blank.

There is one preview surface: ComfyUI's own result preview for this node is stood down so the picture does not appear twice, once in the panel and again underneath the node.

The node performs no network requests. It writes one preview PNG per run into ComfyUI's temp folder, alongside what PreviewImage writes.

The small preview switch at the right of the bar above the picture turns it off: the picture's box disappears, the node is that much shorter, and no preview file is written. Turn it back on and the node returns to its height with the last result in it; if the node ran while the switch was off, it asks you to run the workflow again. The switch is the node's optional preview input.