Nodes/ComfyUI_NAIDGenerator/Declutter βœ’οΈπŸ…πŸ…πŸ…˜
ComfyUI Node

Declutter βœ’οΈπŸ…πŸ…πŸ…˜

Clean the visual noise out of a render with NovelAI's hosted tool

By bedovyyΒ·Created 3 years agoΒ·Updated 5 days agoΒ· 114
Declutter βœ’οΈπŸ…πŸ…πŸ…˜
  • image
  • IMAGE
β—„limit_opus_freetrueβ–Ί
β—„ignore_errorsfalseβ–Ί

DeclutterNAID is the pack's one-click cleanup tool. You know the failure mode: the composition is right, the character is right, but the background is a junkyard of extra props, stray marks, and visual noise that diffusion decided to include. Declutter pushes the image through NovelAI's hosted tool of the same name and comes back with a simplified, tidier version - the background cleaned up, the subject left alone. It's the "I'm too lazy to mask out all that background clutter with an inpaint brush" button.

The interface is the director-tool bare minimum:

  • image - what to declutter.
  • limit_opus_free (on) - caps size at 1024Γ—1024 to stay inside the Opus-tier free generation quota.
  • ignore_errors (off) - on failure, log to console and return a blank instead of halting the queue.

One IMAGE out, autosaved to output/NAI_autosave/ with original metadata. Mechanism is identical to the other director tools: base64-encode the resized input, POST to https://image.novelai.net/ai/augment-image with req_type: "declutter", unzip the returned PNG, decode. Remote model, idle local GPU, Anlas per call.

Where it sits in a workflow: it's a finishing pass, best used on a render you already like. Run it before GenerateNAID img2img at low strength if you want the cleaned composition redrawn with detail, or use it as-is and treat the simplified background as a better base for a vibe transfer or inpainting edit. It complements (rather than replaces) the pack's inpainting: if you have one specific object you want gone, mask it and use InpaintingOptionNAID for surgical control; if the whole scene is just too busy, declutter the lot.

The recurring pack trade-offs hold: it's tuned for anime illustration, it's a paid per-image call, and it does change the image - a scene with a deliberately cluttered, lived-in background will get sanitized even if you liked the mess. If you want to keep specific elements, inpaint them back in after, or don't declutter in the first place.

Install is pack-standard: ComfyUI Manager β†’ search "ComfyUI_NAIDGenerator", or clone into custom_nodes/ and restart, with NAI_ACCESS_TOKEN in a .env in the ComfyUI root. The usual debugging rule applies: a blank result with ignore_errors on means a swallowed error - read the console line, and check the token before anything else, since a missing or expired .env is the classic 401.

CategoryNovelAI/director_tools

Inputs (3)

NameTypeDefaultDescription
imageIMAGEβ€”
limit_opus_freeBOOLEANtrueLimit image size and steps for free generation by Opus.
ignore_errorsBOOLEANfalseβ€”

Outputs (1)

NameTypeDescription
IMAGEIMAGEβ€”