Skip to content

Add built-in Clarity, Texture, and Contrast Dehaze approximation nodes - #9891

Open
JPPhoto wants to merge 2 commits into
invoke-ai:mainfrom
JPPhoto:new-image-manipulation-nodes
Open

JPPhoto wants to merge 2 commits into
invoke-ai:mainfrom
JPPhoto:new-image-manipulation-nodes

Conversation

@JPPhoto

@JPPhoto JPPhoto commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

Add Clarity, Texture, and Contrast Dehaze approximation invocations with shared numerical primitives, schemas, tests, and docs.

Summary

Adds Clarity, Texture, and Contrast Dehaze approximation as first-party built-in InvokeAI invocations. Includes shared TypeScript numerical primitives and fixtures, generated API schemas, tests, and user and provenance documentation. DCP is excluded; Contrast Dehaze is labeled as an approximation, with no qualified patent clearance obtained.

Related Issues / Discussions

#9813

QA Instructions

  • Focused Python suite: 103 passed. Ruff 0.11.13 check/format and git diff --check passed. Pinned Ruff 0.11.2 was unavailable.
  • pnpm -C invokeai/frontend/webv2 check:release passed all stages. Node 22.23.3 was used; pinned Node 22.14.0 was unavailable.
  • pnpm -C docs test passed (1 test); pnpm -C docs check-redirects passed (88 redirects); docs build passed (353 pages, internal links valid).
  • Playwright workflow check: chained all three nodes with a 96x64 RGBA image; queue reported Done 1 / Failed 0, each output was 96x64, and no browser or HTTP errors occurred.
  • CPU-only 24 MP, one-thread measurements: image restore peak RSS changed from about 6.6 GiB to 2.37 GiB and time from 12.7-12.9 s to 3.0-3.1 s. Full effects changed from 6.8-7.1 GiB and 15.3-17.3 s to 2.37 GiB and 6.1-6.6 s.

Review

No material findings. Relevant checks passed.

Compatibility / Rollout

Adds new invocation schemas and generated OpenAPI and TypeScript artifacts. No persisted-workflow migration is needed for these additive nodes; schema discovery and connected graph execution were validated. DCP and its controls are excluded.

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Meaningful regression coverage added / updated where needed; obsolete tests/code removed
  • Persisted-state and API changes include required migrations / compatibility validation
  • Relevant performance/efficiency opportunities considered; material claims have evidence
  • Material review findings resolved and relevant checks rerun
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@github-actions github-actions Bot added CI-CD Continuous integration / Continuous delivery python PRs that change python files invocations PRs that change invocations backend PRs that change backend files frontend PRs that change frontend files python-tests PRs that change python tests docs PRs that change docs labels Oct 16, 2026
Add Clarity, Texture, and Contrast Dehaze approximation invocations with shared numerical primitives, schemas, tests, and docs.
@JPPhoto
JPPhoto force-pushed the new-image-manipulation-nodes branch from e6f9c26 to d027455 Compare October 16, 2026 19:19
Allow Clarity, Texture, and Contrast Dehaze amounts from -200 to 200.
@JPPhoto
JPPhoto marked this pull request as ready for review October 16, 2026 21:08
@JPPhoto

JPPhoto commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator Author

@joshistoast I have some [untested] webv2 code in here too, feel free to build on this PR directly and then edit the summary to indicate that the issue should be closed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend PRs that change backend files CI-CD Continuous integration / Continuous delivery docs PRs that change docs frontend PRs that change frontend files invocations PRs that change invocations python PRs that change python files python-tests PRs that change python tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants