Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
Docs: Housekeeping + Remove docs-old (#9166)
Josh Corbettaf37c2330e00
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERSindex b188aa951e..f62b8c90f1 100644--- a/.github/CODEOWNERS+++ b/.github/CODEOWNERS@@ -1,32 +1,30 @@# continuous integration-/.github/workflows/ @lstein @blessedcoolant+/.github/workflows/ @lstein @blessedcoolant# documentation - anyone with write privileges can review/docs/-/mkdocs.yml# nodes/invokeai/app/ @blessedcoolant @lstein @dunkeroni @JPPhoto# installation and configuration-/pyproject.toml @lstein @blessedcoolant+/pyproject.toml @lstein @blessedcoolant/docker/ @lstein @blessedcoolant-/scripts/ @lstein @blessedcoolant-/installer/ @lstein @blessedcoolant-/invokeai/assets @lstein @blessedcoolant-/invokeai/configs @lstein @blessedcoolant-/invokeai/version @lstein @blessedcoolant+/scripts/ @lstein @blessedcoolant+/installer/ @lstein @blessedcoolant+/invokeai/assets @lstein @blessedcoolant+/invokeai/configs @lstein @blessedcoolant+/invokeai/version @lstein @blessedcoolant# web ui-/invokeai/frontend @blessedcoolant @lstein @dunkeroni+/invokeai/frontend @blessedcoolant @lstein @dunkeroni# generation, model management, postprocessing-/invokeai/backend @lstein @blessedcoolant @dunkeroni @JPPhoto @Pfannkuchensack+/invokeai/backend @lstein @blessedcoolant @dunkeroni @JPPhoto @Pfannkuchensack# front ends-/invokeai/frontend/CLI @lstein-/invokeai/frontend/install @lstein-/invokeai/frontend/merge @lstein @blessedcoolant-/invokeai/frontend/training @lstein @blessedcoolant-/invokeai/frontend/web @blessedcoolant @lstein @dunkeroni @Pfannkuchensack-+/invokeai/frontend/CLI @lstein+/invokeai/frontend/install @lstein+/invokeai/frontend/merge @lstein @blessedcoolant+/invokeai/frontend/training @lstein @blessedcoolant+/invokeai/frontend/web @blessedcoolant @lstein @dunkeroni @Pfannkuchensackdiff --git a/.gitignore b/.gitignoreindex 0353fc5f0b..cc037f09ab 100644--- a/.gitignore+++ b/.gitignore@@ -79,9 +79,6 @@ instance/# Scrapy stuff:.scrapy-# Sphinx documentation-docs/_build/-# PyBuilder.pybuilder/target/@@ -145,9 +142,6 @@ ENV/# Rope project settings.ropeproject-# mkdocs documentation-/site-# mypy.mypy_cache/.dmypy.json@@ -195,4 +189,4 @@ installer/InvokeAI-Installer/.claude/# Weblate configuration file-weblate.ini\ No newline at end of file+weblate.inidiff --git a/Makefile b/Makefileindex 72fe929c85..9830f7167f 100644--- a/Makefile+++ b/Makefile@@ -11,7 +11,6 @@ help:@echo "mypy Run mypy using the config in pyproject.toml to identify type mismatches and other coding errors"@echo "mypy-all Run mypy ignoring the config in pyproject.tom but still ignoring missing imports"@echo "test Run the unit tests."- @echo "update-config-docstring Update the app's config docstring so mkdocs can autogenerate it correctly."@echo "frontend-install Install the pnpm modules needed for the frontend"@echo "frontend-build Build the frontend for localhost:9090"@echo "frontend-test Run the frontend test suite once"@@ -21,7 +20,11 @@ help:@echo "frontend-lint Run frontend checks and fixable lint/format steps"@echo "wheel Build the wheel for the current version"@echo "tag-release Tag the GitHub repository with the current version (use at release time only!)"- @echo "docs Serve the mkdocs site with live reload"+ @echo "openapi Generate the OpenAPI schema for the app, outputting to stdout"+ @echo "docs-install Install the pnpm modules needed for the docs site"+ @echo "docs-dev Serve the astro starlight docs site with live reload"+ @echo "docs-build Build the docs site for production"+ @echo "docs-preview Preview the docs site locally"# Runs ruff, fixing any safely-fixable errors and formattingruff:@@ -45,10 +48,6 @@ mypy-all:test:pytest ./tests-# Update config docstring-update-config-docstring:- python scripts/update_config_docstring.py-# Install the pnpm modules needed for the front endfrontend-install:rm -rf invokeai/frontend/web/node_modules@@ -80,7 +79,7 @@ frontend-lint:pnpm lint:tsc && \pnpm lint:dpdm && \pnpm lint:eslint --fix && \- pnpm lint:prettier --write+ pnpm lint:prettier --write# Tag the releasewheel:@@ -90,8 +89,20 @@ wheel:tag-release:cd scripts && ./tag_release.sh-# Serve the mkdocs site w/ live reload-.PHONY: docs-docs:- cd docs && pnpm install && \- pnpm run dev+# Generate the OpenAPI Schema for the app+openapi:+ python scripts/generate_openapi_schema.py++# Install the pnpm modules needed for the docs site+docs-install:+ cd docs && pnpm install++# Serve the astro starlight docs site w/ live reload+docs-dev:+ cd docs && pnpm run dev++docs-build:+ cd docs && DEPLOY_TARGET='custom' pnpm run build++docs-preview:+ cd docs && pnpm run previewdiff --git a/docs-old/CODE_OF_CONDUCT.md b/docs-old/CODE_OF_CONDUCT.mddeleted file mode 100644index d68cdf98c8..0000000000--- a/docs-old/CODE_OF_CONDUCT.md+++ /dev/null@@ -1,128 +0,0 @@-# Contributor Covenant Code of Conduct--## Our Pledge--We as members, contributors, and leaders pledge to make participation in our-community a harassment-free experience for everyone, regardless of age, body-size, visible or invisible disability, ethnicity, sex characteristics, gender-identity and expression, level of experience, education, socio-economic status,-nationality, personal appearance, race, religion, or sexual identity-and orientation.--We pledge to act and interact in ways that contribute to an open, welcoming,-diverse, inclusive, and healthy community.--## Our Standards--Examples of behavior that contributes to a positive environment for our-community include:--* Demonstrating empathy and kindness toward other people-* Being respectful of differing opinions, viewpoints, and experiences-* Giving and gracefully accepting constructive feedback-* Accepting responsibility and apologizing to those affected by our mistakes,- and learning from the experience-* Focusing on what is best not just for us as individuals, but for the- overall community--Examples of unacceptable behavior include:--* The use of sexualized language or imagery, and sexual attention or- advances of any kind-* Trolling, insulting or derogatory comments, and personal or political attacks-* Public or private harassment-* Publishing others' private information, such as a physical or email- address, without their explicit permission-* Other conduct which could reasonably be considered inappropriate in a- professional setting--## Enforcement Responsibilities--Community leaders are responsible for clarifying and enforcing our standards of-acceptable behavior and will take appropriate and fair corrective action in-response to any behavior that they deem inappropriate, threatening, offensive,-or harmful.--Community leaders have the right and responsibility to remove, edit, or reject-comments, commits, code, wiki edits, issues, and other contributions that are-not aligned to this Code of Conduct, and will communicate reasons for moderation-decisions when appropriate.--## Scope--This Code of Conduct applies within all community spaces, and also applies when-an individual is officially representing the community in public spaces.-Examples of representing our community include using an official e-mail address,-posting via an official social media account, or acting as an appointed-representative at an online or offline event.--## Enforcement--Instances of abusive, harassing, or otherwise unacceptable behavior-may be reported to the community leaders responsible for enforcement-at https://github.com/invoke-ai/InvokeAI/issues. All complaints will-be reviewed and investigated promptly and fairly.--All community leaders are obligated to respect the privacy and security of the-reporter of any incident.--## Enforcement Guidelines--Community leaders will follow these Community Impact Guidelines in determining-the consequences for any action they deem in violation of this Code of Conduct:--### 1. Correction--**Community Impact**: Use of inappropriate language or other behavior deemed-unprofessional or unwelcome in the community.--**Consequence**: A private, written warning from community leaders, providing-clarity around the nature of the violation and an explanation of why the-behavior was inappropriate. A public apology may be requested.--### 2. Warning--**Community Impact**: A violation through a single incident or series-of actions.--**Consequence**: A warning with consequences for continued behavior. No-interaction with the people involved, including unsolicited interaction with-those enforcing the Code of Conduct, for a specified period of time. This-includes avoiding interactions in community spaces as well as external channels-like social media. Violating these terms may lead to a temporary or-permanent ban.--### 3. Temporary Ban--**Community Impact**: A serious violation of community standards, including-sustained inappropriate behavior.--**Consequence**: A temporary ban from any sort of interaction or public-communication with the community for a specified period of time. No public or-private interaction with the people involved, including unsolicited interaction-with those enforcing the Code of Conduct, is allowed during this period.-Violating these terms may lead to a permanent ban.--### 4. Permanent Ban--**Community Impact**: Demonstrating a pattern of violation of community-standards, including sustained inappropriate behavior, harassment of an-individual, or aggression toward or disparagement of classes of individuals.--**Consequence**: A permanent ban from any sort of public interaction within-the community.--## Attribution--This Code of Conduct is adapted from the [Contributor Covenant][homepage],-version 2.0, available at-https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.--Community Impact Guidelines were inspired by [Mozilla's code of conduct-enforcement ladder](https://github.com/mozilla/diversity).--[homepage]: https://www.contributor-covenant.org--For answers to common questions about this code of conduct, see the FAQ at-https://www.contributor-covenant.org/faq. Translations are available at-https://www.contributor-covenant.org/translations.diff --git a/docs-old/RELEASE.md b/docs-old/RELEASE.mddeleted file mode 100644index db3e8c10bf..0000000000--- a/docs-old/RELEASE.md+++ /dev/null@@ -1,154 +0,0 @@-# Release Process--The Invoke application is published as a python package on [PyPI]. This includes both a source distribution and built distribution (a wheel).--Most users install it with the [Launcher](https://github.com/invoke-ai/launcher/), others with `pip`.--The launcher uses GitHub as the source of truth for available releases.--## Broad Strokes--- Merge all changes and bump the version in the codebase.-- Tag the release commit.-- Wait for the release workflow to complete.-- Approve the PyPI publish jobs.-- Write GH release notes.--## General Prep--Make a developer call-out for PRs to merge. Merge and test things-out. Create a branch with a name like user/chore/vX.X.X-prep and bump the version by editing-`invokeai/version/invokeai_version.py` and commit locally.--## Release Workflow--The `release.yml` workflow runs a number of jobs to handle code checks, tests, build and publish on PyPI.--It is triggered on **tag push**, when the tag matches `v*`.--### Triggering the Workflow--Ensure all commits that should be in the release are merged into this branch, and that you have pulled them locally.--Run `make tag-release` to tag the current commit and kick off the workflow. You will be prompted to provide a message - use the version specifier.--If this version's tag already exists for some reason (maybe you had to make a last minute change), the script will overwrite it.--Push the commit to trigger the workflow.--> In case you cannot use the Make target, the release may also be dispatched [manually] via GH.--### Workflow Jobs and Process--The workflow consists of a number of concurrently-run checks and tests, then two final publish jobs.--The publish jobs require manual approval and are only run if the other jobs succeed.--#### `check-version` Job--This job ensures that the `invokeai` python package version specifier matches the tag for the release. The version specifier is pulled from the `__version__` variable in `invokeai/version/invokeai_version.py`.--This job uses [samuelcolvin/check-python-version].--> Any valid [version specifier] works, so long as the tag matches the version. The release workflow works exactly the same for `RC`, `post`, `dev`, etc.--#### Check and Test Jobs--Next, these jobs run and must pass. They are the same jobs that are run for every PR.--- **`python-tests`**: runs `pytest` on matrix of platforms-- **`python-checks`**: runs `ruff` (format and lint)-- **`frontend-tests`**: runs `vitest`-- **`frontend-checks`**: runs `prettier` (format), `eslint` (lint), `dpdm` (circular refs), `tsc` (static type check) and `knip` (unused imports)-- **`typegen-checks`**: ensures the frontend and backend types are synced--#### `build-wheel` Job--This sets up both python and frontend dependencies and builds the python package. Internally, this runs `./scripts/build_wheel.sh` and uploads `dist.zip`, which contains the wheel and unarchived build.--You don't need to download or test these artifacts.--#### Sanity Check & Smoke Test--At this point, the release workflow pauses as the remaining publish jobs require approval.--It's possible to test the python package before it gets published to PyPI. We've never had problems with it, so it's not necessary to do this.--But, if you want to be extra-super careful, here's how to test it:--- Download the `dist.zip` build artifact from the `build-wheel` job-- Unzip it and find the wheel file-- Create a fresh Invoke install by following the [manual install guide](https://invoke-ai.github.io/InvokeAI/installation/manual/) - but instead of installing from PyPI, install from the wheel-- Test the app--##### Something isn't right--If testing reveals any issues, no worries. Cancel the workflow, which will cancel the pending publish jobs (you didn't approve them prematurely, right?) and start over.--#### PyPI Publish Jobs--The publish jobs will not run if any of the previous jobs fail.--They use [GitHub environments], which are configured as [trusted publishers] on PyPI.--Both jobs require a @lstein or @blessedcoolant to approve them from the workflow's **Summary** tab.--- Click the **Review deployments** button-- Select the environment (either `testpypi` or `pypi` - typically you select both)-- Click **Approve and deploy**--> **If the version already exists on PyPI, the publish jobs will fail.** PyPI only allows a given version to be published once - you cannot change it. If version published on PyPI has a problem, you'll need to "fail forward" by bumping the app version and publishing a followup release.--##### Failing PyPI Publish--Check the [python infrastructure status page] for incidents.--If there are no incidents, contact @lstein or @blessedcoolant, who have owner access to GH and PyPI, to see if access has expired or something like that.--#### `publish-testpypi` Job--Publishes the distribution on the [Test PyPI] index, using the `testpypi` GitHub environment.--This job is not required for the production PyPI publish, but included just in case you want to test the PyPI release for some reason:--- Approve this publish job without approving the prod publish-- Let it finish-- Create a fresh Invoke install by following the [manual install guide](https://invoke-ai.github.io/InvokeAI/installation/manual/), making sure to use the Test PyPI index URL: `https://test.pypi.org/simple/`-- Test the app--#### `publish-pypi` Job--Publishes the distribution on the production PyPI index, using the `pypi` GitHub environment.--It's a good idea to wait to approve and run this job until you have the release notes ready!--## Prep and publish the GitHub Release--1. [Draft a new release] on GitHub, choosing the tag that triggered the release.-2. The **Generate release notes** button automatically inserts the changelog and new contributors. Make sure to select the correct tags for this release and the last stable release. GH often selects the wrong tags - do this manually.-3. Write the release notes, describing important changes. Contributions from community members should be shouted out. Use the GH-generated changelog to see all contributors. If there are Weblate translation updates, open that PR and shout out every person who contributed a translation.-4. Check **Set as a pre-release** if it's a pre-release.-5. Approve and wait for the `publish-pypi` job to finish if you haven't already.-6. Publish the GH release.-7. Post the release in Discord in the [releases](https://discord.com/channels/1020123559063990373/1149260708098359327) channel with abbreviated notes. For example:- > Invoke v5.7.0 (stable): <https://github.com/invoke-ai/InvokeAI/releases/tag/v5.7.0>- >- > It's a pretty big one - Form Builder, Metadata Nodes (thanks @SkunkWorxDark!), and much more.-8. Right click the message in releases and copy the link to it. Then, post that link in the [new-release-discussion](https://discord.com/channels/1020123559063990373/1149506274971631688) channel. For example:- > Invoke v5.7.0 (stable): <https://discord.com/channels/1020123559063990373/1149260708098359327/1344521744916021248>--## Manual Release--The `release` workflow can be dispatched manually. You must dispatch the workflow from the right tag, else it will fail the version check.--This functionality is available as a fallback in case something goes wonky. Typically, releases should be triggered via tag push as described above.--[PyPI]: https://pypi.org/-[Draft a new release]: https://github.com/invoke-ai/InvokeAI/releases/new-[Test PyPI]: https://test.pypi.org/-[version specifier]: https://packaging.python.org/en/latest/specifications/version-specifiers/-[GitHub environments]: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment-[trusted publishers]: https://docs.pypi.org/trusted-publishers/-[samuelcolvin/check-python-version]: https://github.com/samuelcolvin/check-python-version-[manually]: #manual-release-[python infrastructure status page]: https://status.python.org/diff --git a/docs-old/assets/Lincoln-and-Parrot-512-transparent.png b/docs-old/assets/Lincoln-and-Parrot-512-transparent.pngdeleted file mode 100755index 363f3cced3..0000000000Binary files a/docs-old/assets/Lincoln-and-Parrot-512-transparent.png and /dev/null differdiff --git a/docs-old/assets/Lincoln-and-Parrot-512.png b/docs-old/assets/Lincoln-and-Parrot-512.pngdeleted file mode 100644index acabe0f27c..0000000000Binary files a/docs-old/assets/Lincoln-and-Parrot-512.png and /dev/null differdiff --git a/docs-old/assets/canvas/biker_granny.png b/docs-old/assets/canvas/biker_granny.pngdeleted file mode 100644index 70385014da..0000000000Binary files a/docs-old/assets/canvas/biker_granny.png and /dev/null differdiff --git a/docs-old/assets/canvas/biker_jacket_granny.png b/docs-old/assets/canvas/biker_jacket_granny.pngdeleted file mode 100644index 3a46b8a49c..0000000000Binary files a/docs-old/assets/canvas/biker_jacket_granny.png and /dev/null differdiff --git a/docs-old/assets/canvas/mask_granny.png b/docs-old/assets/canvas/mask_granny.pngdeleted file mode 100644index 041a0317c9..0000000000Binary files a/docs-old/assets/canvas/mask_granny.png and /dev/null differdiff --git a/docs-old/assets/canvas/staging_area.png b/docs-old/assets/canvas/staging_area.pngdeleted file mode 100644index 0e9d4ba0de..0000000000Binary files a/docs-old/assets/canvas/staging_area.png and /dev/null differdiff --git a/docs-old/assets/canvas_preview.png b/docs-old/assets/canvas_preview.pngdeleted file mode 100644index dba4ee2ca2..0000000000Binary files a/docs-old/assets/canvas_preview.png and /dev/null differdiff --git a/docs-old/assets/colab_notebook.png b/docs-old/assets/colab_notebook.pngdeleted file mode 100644index 933664a86f..0000000000Binary files a/docs-old/assets/colab_notebook.png and /dev/null differdiff --git a/docs-old/assets/concepts/image1.png b/docs-old/assets/concepts/image1.pngdeleted file mode 100644index f8c93efcf9..0000000000Binary files a/docs-old/assets/concepts/image1.png and /dev/null differdiff --git a/docs-old/assets/concepts/image2.png b/docs-old/assets/concepts/image2.pngdeleted file mode 100644index a22411492e..0000000000Binary files a/docs-old/assets/concepts/image2.png and /dev/null differdiff --git a/docs-old/assets/concepts/image3.png b/docs-old/assets/concepts/image3.pngdeleted file mode 100644index e2213fc707..0000000000Binary files a/docs-old/assets/concepts/image3.png and /dev/null differdiff --git a/docs-old/assets/concepts/image4.png b/docs-old/assets/concepts/image4.pngdeleted file mode 100644index 052479019c..0000000000Binary files a/docs-old/assets/concepts/image4.png and /dev/null differdiff --git a/docs-old/assets/concepts/image5.png b/docs-old/assets/concepts/image5.pngdeleted file mode 100644index f3a4f76470..0000000000Binary files a/docs-old/assets/concepts/image5.png and /dev/null differdiff --git a/docs-old/assets/contributing/html-detail.png b/docs-old/assets/contributing/html-detail.pngdeleted file mode 100644index 055218002f..0000000000Binary files a/docs-old/assets/contributing/html-detail.png and /dev/null differdiff --git a/docs-old/assets/contributing/html-overview.png b/docs-old/assets/contributing/html-overview.pngdeleted file mode 100644index 1f288fde11..0000000000Binary files a/docs-old/assets/contributing/html-overview.png and /dev/null differdiff --git a/docs-old/assets/contributing/resize_invocation.png b/docs-old/assets/contributing/resize_invocation.pngdeleted file mode 100644index a78f8eb86a..0000000000Binary files a/docs-old/assets/contributing/resize_invocation.png and /dev/null differdiff --git a/docs-old/assets/contributing/resize_node_editor.png b/docs-old/assets/contributing/resize_node_editor.pngdeleted file mode 100644index d121ba1aa6..0000000000Binary files a/docs-old/assets/contributing/resize_node_editor.png and /dev/null differdiff --git a/docs-old/assets/control-panel-2.png b/docs-old/assets/control-panel-2.pngdeleted file mode 100644index d7767d524a..0000000000Binary files a/docs-old/assets/control-panel-2.png and /dev/null differdiff --git a/docs-old/assets/dream-py-demo.png b/docs-old/assets/dream-py-demo.pngdeleted file mode 100644index c6945bf07c..0000000000Binary files a/docs-old/assets/dream-py-demo.png and /dev/null differdiff --git a/docs-old/assets/dream_web_server.png b/docs-old/assets/dream_web_server.pngdeleted file mode 100644index c8ec9756c5..0000000000Binary files a/docs-old/assets/dream_web_server.png and /dev/null differdiff --git a/docs-old/assets/features/restoration-montage.png b/docs-old/assets/features/restoration-montage.pngdeleted file mode 100644index 825a89a8dd..0000000000Binary files a/docs-old/assets/features/restoration-montage.png and /dev/null differdiff --git a/docs-old/assets/features/upscale-dialog.png b/docs-old/assets/features/upscale-dialog.pngdeleted file mode 100644index fd91f90a65..0000000000Binary files a/docs-old/assets/features/upscale-dialog.png and /dev/null differdiff --git a/docs-old/assets/features/upscaling-montage.png b/docs-old/assets/features/upscaling-montage.pngdeleted file mode 100644index 6b3eeba347..0000000000Binary files a/docs-old/assets/features/upscaling-montage.png and /dev/null differdiff --git a/docs-old/assets/gallery/board_settings.png b/docs-old/assets/gallery/board_settings.pngdeleted file mode 100644index 44c4ef240b..0000000000Binary files a/docs-old/assets/gallery/board_settings.png and /dev/null differdiff --git a/docs-old/assets/gallery/board_tabs.png b/docs-old/assets/gallery/board_tabs.pngdeleted file mode 100644index 23e5f8a91c..0000000000Binary files a/docs-old/assets/gallery/board_tabs.png and /dev/null differdiff --git a/docs-old/assets/gallery/board_thumbnails.png b/docs-old/assets/gallery/board_thumbnails.pngdeleted file mode 100644index 1c739d4854..0000000000Binary files a/docs-old/assets/gallery/board_thumbnails.png and /dev/null differdiff --git a/docs-old/assets/gallery/gallery.png b/docs-old/assets/gallery/gallery.pngdeleted file mode 100644index 89f2dd1b46..0000000000Binary files a/docs-old/assets/gallery/gallery.png and /dev/null differdiff --git a/docs-old/assets/gallery/image_menu.png b/docs-old/assets/gallery/image_menu.pngdeleted file mode 100644index 2f10f280ac..0000000000Binary files a/docs-old/assets/gallery/image_menu.png and /dev/null differdiff --git a/docs-old/assets/gallery/info_button.png b/docs-old/assets/gallery/info_button.pngdeleted file mode 100644index 539cd6252e..0000000000Binary files a/docs-old/assets/gallery/info_button.png and /dev/null differdiff --git a/docs-old/assets/gallery/thumbnail_menu.png b/docs-old/assets/gallery/thumbnail_menu.pngdeleted file mode 100644index a56caadbd8..0000000000Binary files a/docs-old/assets/gallery/thumbnail_menu.png and /dev/null differdiff --git a/docs-old/assets/gallery/top_controls.png b/docs-old/assets/gallery/top_controls.pngdeleted file mode 100644index c5d3cdc854..0000000000Binary files a/docs-old/assets/gallery/top_controls.png and /dev/null differdiff --git a/docs-old/assets/img2img/000019.1592514025.png b/docs-old/assets/img2img/000019.1592514025.pngdeleted file mode 100644index 2bc2d63ffa..0000000000Binary files a/docs-old/assets/img2img/000019.1592514025.png and /dev/null differdiff --git a/docs-old/assets/img2img/000019.steps.png b/docs-old/assets/img2img/000019.steps.pngdeleted file mode 100644index 28899e9111..0000000000Binary files a/docs-old/assets/img2img/000019.steps.png and /dev/null differdiff --git a/docs-old/assets/img2img/000030.1592514025.png b/docs-old/assets/img2img/000030.1592514025.pngdeleted file mode 100644index 0e1641f7eb..0000000000Binary files a/docs-old/assets/img2img/000030.1592514025.png and /dev/null differdiff --git a/docs-old/assets/img2img/000030.step-0.png b/docs-old/assets/img2img/000030.step-0.pngdeleted file mode 100644index 81beb074ec..0000000000Binary files a/docs-old/assets/img2img/000030.step-0.png and /dev/null differdiff --git a/docs-old/assets/img2img/000030.steps.gravity.png b/docs-old/assets/img2img/000030.steps.gravity.pngdeleted file mode 100644index 2bda935a5f..0000000000Binary files a/docs-old/assets/img2img/000030.steps.gravity.png and /dev/null differdiff --git a/docs-old/assets/img2img/000032.1592514025.png b/docs-old/assets/img2img/000032.1592514025.pngdeleted file mode 100644index 0ed2106ec4..0000000000Binary files a/docs-old/assets/img2img/000032.1592514025.png and /dev/null differdiff --git a/docs-old/assets/img2img/000032.step-0.png b/docs-old/assets/img2img/000032.step-0.pngdeleted file mode 100644index cc2da68ee4..0000000000Binary files a/docs-old/assets/img2img/000032.step-0.png and /dev/null differdiff --git a/docs-old/assets/img2img/000032.steps.gravity.png b/docs-old/assets/img2img/000032.steps.gravity.pngdeleted file mode 100644index 79058c1227..0000000000Binary files a/docs-old/assets/img2img/000032.steps.gravity.png and /dev/null differdiff --git a/docs-old/assets/img2img/000034.1592514025.png b/docs-old/assets/img2img/000034.1592514025.pngdeleted file mode 100644index 43751da572..0000000000Binary files a/docs-old/assets/img2img/000034.1592514025.png and /dev/null differdiff --git a/docs-old/assets/img2img/000034.steps.png b/docs-old/assets/img2img/000034.steps.pngdeleted file mode 100644index 216213162f..0000000000Binary files a/docs-old/assets/img2img/000034.steps.png and /dev/null differdiff --git a/docs-old/assets/img2img/000035.1592514025.png b/docs-old/assets/img2img/000035.1592514025.pngdeleted file mode 100644index d298895080..0000000000Binary files a/docs-old/assets/img2img/000035.1592514025.png and /dev/null differdiff --git a/docs-old/assets/img2img/000035.steps.gravity.png b/docs-old/assets/img2img/000035.steps.gravity.pngdeleted file mode 100644index 122c729e87..0000000000Binary files a/docs-old/assets/img2img/000035.steps.gravity.png and /dev/null differdiff --git a/docs-old/assets/img2img/000045.1592514025.png b/docs-old/assets/img2img/000045.1592514025.pngdeleted file mode 100644index 5e70f1a5bf..0000000000Binary files a/docs-old/assets/img2img/000045.1592514025.png and /dev/null differdiff --git a/docs-old/assets/img2img/000045.steps.gravity.png b/docs-old/assets/img2img/000045.steps.gravity.pngdeleted file mode 100644index 39e2a9b711..0000000000Binary files a/docs-old/assets/img2img/000045.steps.gravity.png and /dev/null differdiff --git a/docs-old/assets/img2img/000046.1592514025.png b/docs-old/assets/img2img/000046.1592514025.pngdeleted file mode 100644index 70d248eb61..0000000000Binary files a/docs-old/assets/img2img/000046.1592514025.png and /dev/null differdiff --git a/docs-old/assets/img2img/000046.steps.gravity.png b/docs-old/assets/img2img/000046.steps.gravity.pngdeleted file mode 100644index d801a48701..0000000000Binary files a/docs-old/assets/img2img/000046.steps.gravity.png and /dev/null differdiff --git a/docs-old/assets/img2img/fire-drawing.png b/docs-old/assets/img2img/fire-drawing.pngdeleted file mode 100644index 36e2f111fa..0000000000Binary files a/docs-old/assets/img2img/fire-drawing.png and /dev/null differdiff --git a/docs-old/assets/inpainting/000019.curly.hair.deselected.png b/docs-old/assets/inpainting/000019.curly.hair.deselected.pngdeleted file mode 100644index 54f2285550..0000000000Binary files a/docs-old/assets/inpainting/000019.curly.hair.deselected.png and /dev/null differdiff --git a/docs-old/assets/inpainting/000019.curly.hair.masked.png b/docs-old/assets/inpainting/000019.curly.hair.masked.pngdeleted file mode 100644index a221c522f3..0000000000Binary files a/docs-old/assets/inpainting/000019.curly.hair.masked.png and /dev/null differdiff --git a/docs-old/assets/inpainting/000019.curly.hair.selected.png b/docs-old/assets/inpainting/000019.curly.hair.selected.pngdeleted file mode 100644index e25bb4340c..0000000000Binary files a/docs-old/assets/inpainting/000019.curly.hair.selected.png and /dev/null differdiff --git a/docs-old/assets/inpainting/000024.801380492.png b/docs-old/assets/inpainting/000024.801380492.pngdeleted file mode 100644index 9c72eb06b8..0000000000Binary files a/docs-old/assets/inpainting/000024.801380492.png and /dev/null differdiff --git a/docs-old/assets/installer-walkthrough/choose-gpu.png b/docs-old/assets/installer-walkthrough/choose-gpu.pngdeleted file mode 100644index 3db23ef207..0000000000Binary files a/docs-old/assets/installer-walkthrough/choose-gpu.png and /dev/null differdiff --git a/docs-old/assets/installer-walkthrough/confirm-directory.png b/docs-old/assets/installer-walkthrough/confirm-directory.pngdeleted file mode 100644index bc3099bbb3..0000000000Binary files a/docs-old/assets/installer-walkthrough/confirm-directory.png and /dev/null differdiff --git a/docs-old/assets/installer-walkthrough/downloading-models.png b/docs-old/assets/installer-walkthrough/downloading-models.pngdeleted file mode 100644index 975a6e39fe..0000000000Binary files a/docs-old/assets/installer-walkthrough/downloading-models.png and /dev/null differdiff --git a/docs-old/assets/installer-walkthrough/installing-models.png b/docs-old/assets/installer-walkthrough/installing-models.pngdeleted file mode 100644index b2f6190bf5..0000000000Binary files a/docs-old/assets/installer-walkthrough/installing-models.png and /dev/null differdiff --git a/docs-old/assets/installer-walkthrough/settings-form.png b/docs-old/assets/installer-walkthrough/settings-form.pngdeleted file mode 100644index 84e936ed56..0000000000Binary files a/docs-old/assets/installer-walkthrough/settings-form.png and /dev/null differdiff --git a/docs-old/assets/installer-walkthrough/unpacked-zipfile.png b/docs-old/assets/installer-walkthrough/unpacked-zipfile.pngdeleted file mode 100644index 0e7e5f681f..0000000000Binary files a/docs-old/assets/installer-walkthrough/unpacked-zipfile.png and /dev/null differdiff --git a/docs-old/assets/installing-models/model-installer-controlnet.png b/docs-old/assets/installing-models/model-installer-controlnet.pngdeleted file mode 100644index 09dfdb269f..0000000000Binary files a/docs-old/assets/installing-models/model-installer-controlnet.png and /dev/null differdiff --git a/docs-old/assets/installing-models/webui-models-1.png b/docs-old/assets/installing-models/webui-models-1.pngdeleted file mode 100644index 648791ca27..0000000000Binary files a/docs-old/assets/installing-models/webui-models-1.png and /dev/null differdiff --git a/docs-old/assets/installing-models/webui-models-2.png b/docs-old/assets/installing-models/webui-models-2.pngdeleted file mode 100644index e58f5b9752..0000000000Binary files a/docs-old/assets/installing-models/webui-models-2.png and /dev/null differdiff --git a/docs-old/assets/installing-models/webui-models-3.png b/docs-old/assets/installing-models/webui-models-3.pngdeleted file mode 100644index 6797a6b907..0000000000Binary files a/docs-old/assets/installing-models/webui-models-3.png and /dev/null differdiff --git a/docs-old/assets/installing-models/webui-models-4.png b/docs-old/assets/installing-models/webui-models-4.pngdeleted file mode 100644index 75aa7ad7f1..0000000000Binary files a/docs-old/assets/installing-models/webui-models-4.png and /dev/null differdiff --git a/docs-old/assets/invoke-control-panel-1.png b/docs-old/assets/invoke-control-panel-1.pngdeleted file mode 100644index 0904667600..0000000000Binary files a/docs-old/assets/invoke-control-panel-1.png and /dev/null differdiff --git a/docs-old/assets/invoke-web-server-1.png b/docs-old/assets/invoke-web-server-1.pngdeleted file mode 100644index e1cf27a217..0000000000Binary files a/docs-old/assets/invoke-web-server-1.png and /dev/null differdiff --git a/docs-old/assets/invoke-web-server-2.png b/docs-old/assets/invoke-web-server-2.pngdeleted file mode 100644index 361c113159..0000000000Binary files a/docs-old/assets/invoke-web-server-2.png and /dev/null differdiff --git a/docs-old/assets/invoke-web-server-3.png b/docs-old/assets/invoke-web-server-3.pngdeleted file mode 100644index 7d392cfecc..0000000000Binary files a/docs-old/assets/invoke-web-server-3.png and /dev/null differdiff --git a/docs-old/assets/invoke-web-server-4.png b/docs-old/assets/invoke-web-server-4.pngdeleted file mode 100644index 2690356b8a..0000000000Binary files a/docs-old/assets/invoke-web-server-4.png and /dev/null differdiff --git a/docs-old/assets/invoke-web-server-5.png b/docs-old/assets/invoke-web-server-5.pngdeleted file mode 100644index 1923e64129..0000000000Binary files a/docs-old/assets/invoke-web-server-5.png and /dev/null differdiff --git a/docs-old/assets/invoke-web-server-6.png b/docs-old/assets/invoke-web-server-6.pngdeleted file mode 100644index 0e8f703cb5..0000000000Binary files a/docs-old/assets/invoke-web-server-6.png and /dev/null differdiff --git a/docs-old/assets/invoke-web-server-7.png b/docs-old/assets/invoke-web-server-7.pngdeleted file mode 100644index 19769dea93..0000000000Binary files a/docs-old/assets/invoke-web-server-7.png and /dev/null differdiff --git a/docs-old/assets/invoke-web-server-8.png b/docs-old/assets/invoke-web-server-8.pngdeleted file mode 100644index dc708b1117..0000000000Binary files a/docs-old/assets/invoke-web-server-8.png and /dev/null differdiff --git a/docs-old/assets/invoke-web-server-9.png b/docs-old/assets/invoke-web-server-9.pngdeleted file mode 100644index 9d0d31bec0..0000000000Binary files a/docs-old/assets/invoke-web-server-9.png and /dev/null differdiff --git a/docs-old/assets/invoke_ai_banner.png b/docs-old/assets/invoke_ai_banner.pngdeleted file mode 100644index 74d23f514d..0000000000Binary files a/docs-old/assets/invoke_ai_banner.png and /dev/null differdiff --git a/docs-old/assets/invoke_web_dark.png b/docs-old/assets/invoke_web_dark.pngdeleted file mode 100644index 9141ab40f3..0000000000Binary files a/docs-old/assets/invoke_web_dark.png and /dev/null differdiff --git a/docs-old/assets/invoke_web_light.png b/docs-old/assets/invoke_web_light.pngdeleted file mode 100644index 98311ccafd..0000000000Binary files a/docs-old/assets/invoke_web_light.png and /dev/null differdiff --git a/docs-old/assets/invoke_web_server.png b/docs-old/assets/invoke_web_server.pngdeleted file mode 100644index cdb34a0835..0000000000Binary files a/docs-old/assets/invoke_web_server.png and /dev/null differdiff --git a/docs-old/assets/join-us-on-discord-image.png b/docs-old/assets/join-us-on-discord-image.pngdeleted file mode 100644index 53e4ee0fe0..0000000000Binary files a/docs-old/assets/join-us-on-discord-image.png and /dev/null differdiff --git a/docs-old/assets/logo.png b/docs-old/assets/logo.pngdeleted file mode 100644index b6eb33a6db..0000000000Binary files a/docs-old/assets/logo.png and /dev/null differdiff --git a/docs-old/assets/lora-example-0.png b/docs-old/assets/lora-example-0.pngdeleted file mode 100644index f98fa53ca4..0000000000Binary files a/docs-old/assets/lora-example-0.png and /dev/null differdiff --git a/docs-old/assets/lora-example-1.png b/docs-old/assets/lora-example-1.pngdeleted file mode 100644index 29ea46e970..0000000000Binary files a/docs-old/assets/lora-example-1.png and /dev/null differdiff --git a/docs-old/assets/lora-example-2.png b/docs-old/assets/lora-example-2.pngdeleted file mode 100644index 40eecdce84..0000000000Binary files a/docs-old/assets/lora-example-2.png and /dev/null differdiff --git a/docs-old/assets/lora-example-3.png b/docs-old/assets/lora-example-3.pngdeleted file mode 100644index be4c505d43..0000000000Binary files a/docs-old/assets/lora-example-3.png and /dev/null differdiff --git a/docs-old/assets/multiuser/admin-add-user-1.png b/docs-old/assets/multiuser/admin-add-user-1.pngdeleted file mode 100644index 706039d50c..0000000000Binary files a/docs-old/assets/multiuser/admin-add-user-1.png and /dev/null differdiff --git a/docs-old/assets/multiuser/admin-add-user-2.png b/docs-old/assets/multiuser/admin-add-user-2.pngdeleted file mode 100644index 44bf2e180a..0000000000Binary files a/docs-old/assets/multiuser/admin-add-user-2.png and /dev/null differdiff --git a/docs-old/assets/multiuser/admin-add-user-3.png b/docs-old/assets/multiuser/admin-add-user-3.pngdeleted file mode 100644index 708f9a8513..0000000000Binary files a/docs-old/assets/multiuser/admin-add-user-3.png and /dev/null differdiff --git a/docs-old/assets/multiuser/admin-setup.png b/docs-old/assets/multiuser/admin-setup.pngdeleted file mode 100644index fbe035e5c6..0000000000Binary files a/docs-old/assets/multiuser/admin-setup.png and /dev/null differdiff --git a/docs-old/assets/multiuser/user-login-1.png b/docs-old/assets/multiuser/user-login-1.pngdeleted file mode 100644index 8c4bec2294..0000000000Binary files a/docs-old/assets/multiuser/user-login-1.png and /dev/null differdiff --git a/docs-old/assets/negative_prompt_walkthru/step1.png b/docs-old/assets/negative_prompt_walkthru/step1.pngdeleted file mode 100644index 6f94d7d035..0000000000Binary files a/docs-old/assets/negative_prompt_walkthru/step1.png and /dev/null differdiff --git a/docs-old/assets/negative_prompt_walkthru/step2.png b/docs-old/assets/negative_prompt_walkthru/step2.pngdeleted file mode 100644index 0ff90eca3c..0000000000Binary files a/docs-old/assets/negative_prompt_walkthru/step2.png and /dev/null differdiff --git a/docs-old/assets/negative_prompt_walkthru/step3.png b/docs-old/assets/negative_prompt_walkthru/step3.pngdeleted file mode 100644index f6676de386..0000000000Binary files a/docs-old/assets/negative_prompt_walkthru/step3.png and /dev/null differdiff --git a/docs-old/assets/negative_prompt_walkthru/step4.png b/docs-old/assets/negative_prompt_walkthru/step4.pngdeleted file mode 100644index 2e73532629..0000000000Binary files a/docs-old/assets/negative_prompt_walkthru/step4.png and /dev/null differdiff --git a/docs-old/assets/nodes/groupsallscale.png b/docs-old/assets/nodes/groupsallscale.pngdeleted file mode 100644index 5a12fe9e13..0000000000Binary files a/docs-old/assets/nodes/groupsallscale.png and /dev/null differdiff --git a/docs-old/assets/nodes/groupsconditioning.png b/docs-old/assets/nodes/groupsconditioning.pngdeleted file mode 100644index baaf2b44e0..0000000000Binary files a/docs-old/assets/nodes/groupsconditioning.png and /dev/null differdiff --git a/docs-old/assets/nodes/groupscontrol.png b/docs-old/assets/nodes/groupscontrol.pngdeleted file mode 100644index a38e4e4bba..0000000000Binary files a/docs-old/assets/nodes/groupscontrol.png and /dev/null differdiff --git a/docs-old/assets/nodes/groupsimgvae.png b/docs-old/assets/nodes/groupsimgvae.pngdeleted file mode 100644index 03ac8d1f4a..0000000000Binary files a/docs-old/assets/nodes/groupsimgvae.png and /dev/null differdiff --git a/docs-old/assets/nodes/groupsiterate.png b/docs-old/assets/nodes/groupsiterate.pngdeleted file mode 100644index 50b762099a..0000000000Binary files a/docs-old/assets/nodes/groupsiterate.png and /dev/null differdiff --git a/docs-old/assets/nodes/groupslora.png b/docs-old/assets/nodes/groupslora.pngdeleted file mode 100644index 74ae8a7073..0000000000Binary files a/docs-old/assets/nodes/groupslora.png and /dev/null differdiff --git a/docs-old/assets/nodes/groupsmultigenseeding.png b/docs-old/assets/nodes/groupsmultigenseeding.pngdeleted file mode 100644index dcd64c7758..0000000000Binary files a/docs-old/assets/nodes/groupsmultigenseeding.png and /dev/null differdiff --git a/docs-old/assets/nodes/groupsnoise.png b/docs-old/assets/nodes/groupsnoise.pngdeleted file mode 100644index d95b7ba307..0000000000Binary files a/docs-old/assets/nodes/groupsnoise.png and /dev/null differdiff --git a/docs-old/assets/nodes/linearview.png b/docs-old/assets/nodes/linearview.pngdeleted file mode 100644index fb6b3efca0..0000000000Binary files a/docs-old/assets/nodes/linearview.png and /dev/null differdiff --git a/docs-old/assets/nodes/nodescontrol.png b/docs-old/assets/nodes/nodescontrol.pngdeleted file mode 100644index 8b179e43ac..0000000000Binary files a/docs-old/assets/nodes/nodescontrol.png and /dev/null differdiff --git a/docs-old/assets/nodes/nodesi2i.png b/docs-old/assets/nodes/nodesi2i.pngdeleted file mode 100644index 9908833804..0000000000Binary files a/docs-old/assets/nodes/nodesi2i.png and /dev/null differdiff --git a/docs-old/assets/nodes/nodest2i.png b/docs-old/assets/nodes/nodest2i.pngdeleted file mode 100644index 7e882dbf1b..0000000000Binary files a/docs-old/assets/nodes/nodest2i.png and /dev/null differdiff --git a/docs-old/assets/nodes/workflow_library.png b/docs-old/assets/nodes/workflow_library.pngdeleted file mode 100644index a17593d3b6..0000000000Binary files a/docs-old/assets/nodes/workflow_library.png and /dev/null differdiff --git a/docs-old/assets/outpainting/curly-outcrop-2.png b/docs-old/assets/outpainting/curly-outcrop-2.pngdeleted file mode 100644index 595f011f27..0000000000Binary files a/docs-old/assets/outpainting/curly-outcrop-2.png and /dev/null differdiff --git a/docs-old/assets/outpainting/curly-outcrop.png b/docs-old/assets/outpainting/curly-outcrop.pngdeleted file mode 100644index ae8d8dacd3..0000000000Binary files a/docs-old/assets/outpainting/curly-outcrop.png and /dev/null differdiff --git a/docs-old/assets/outpainting/curly-outpaint.png b/docs-old/assets/outpainting/curly-outpaint.pngdeleted file mode 100644index 9f4a2ee431..0000000000Binary files a/docs-old/assets/outpainting/curly-outpaint.png and /dev/null differdiff --git a/docs-old/assets/outpainting/curly.png b/docs-old/assets/outpainting/curly.pngdeleted file mode 100644index d9a4cb257e..0000000000Binary files a/docs-old/assets/outpainting/curly.png and /dev/null differdiff --git a/docs-old/assets/prompt-blending/blue-sphere-0.25-red-cube-0.75-hybrid.png b/docs-old/assets/prompt-blending/blue-sphere-0.25-red-cube-0.75-hybrid.pngdeleted file mode 100644index 43d780a343..0000000000Binary files a/docs-old/assets/prompt-blending/blue-sphere-0.25-red-cube-0.75-hybrid.png and /dev/null differdiff --git a/docs-old/assets/prompt-blending/blue-sphere-0.5-red-cube-0.5-hybrid.png b/docs-old/assets/prompt-blending/blue-sphere-0.5-red-cube-0.5-hybrid.pngdeleted file mode 100644index c131ae03f4..0000000000Binary files a/docs-old/assets/prompt-blending/blue-sphere-0.5-red-cube-0.5-hybrid.png and /dev/null differdiff --git a/docs-old/assets/prompt-blending/blue-sphere-0.5-red-cube-0.5.png b/docs-old/assets/prompt-blending/blue-sphere-0.5-red-cube-0.5.pngdeleted file mode 100644index d0cb8e389e..0000000000Binary files a/docs-old/assets/prompt-blending/blue-sphere-0.5-red-cube-0.5.png and /dev/null differdiff --git a/docs-old/assets/prompt-blending/blue-sphere-0.75-red-cube-0.25-hybrid.png b/docs-old/assets/prompt-blending/blue-sphere-0.75-red-cube-0.25-hybrid.pngdeleted file mode 100644index b7ddf6658b..0000000000Binary files a/docs-old/assets/prompt-blending/blue-sphere-0.75-red-cube-0.25-hybrid.png and /dev/null differdiff --git a/docs-old/assets/prompt-blending/blue-sphere-red-cube-hybrid.png b/docs-old/assets/prompt-blending/blue-sphere-red-cube-hybrid.pngdeleted file mode 100644index 3ec14564e6..0000000000Binary files a/docs-old/assets/prompt-blending/blue-sphere-red-cube-hybrid.png and /dev/null differdiff --git a/docs-old/assets/prompt_syntax/apricots--1.png b/docs-old/assets/prompt_syntax/apricots--1.pngdeleted file mode 100644index 0f0c17f08b..0000000000Binary files a/docs-old/assets/prompt_syntax/apricots--1.png and /dev/null differdiff --git a/docs-old/assets/prompt_syntax/apricots--2.png b/docs-old/assets/prompt_syntax/apricots--2.pngdeleted file mode 100644index 5c519b09ae..0000000000Binary files a/docs-old/assets/prompt_syntax/apricots--2.png and /dev/null differdiff --git a/docs-old/assets/prompt_syntax/apricots--3.png b/docs-old/assets/prompt_syntax/apricots--3.pngdeleted file mode 100644index c98ffd8b07..0000000000Binary files a/docs-old/assets/prompt_syntax/apricots--3.png and /dev/null differdiff --git a/docs-old/assets/prompt_syntax/apricots-0.png b/docs-old/assets/prompt_syntax/apricots-0.pngdeleted file mode 100644index f8ead74db2..0000000000Binary files a/docs-old/assets/prompt_syntax/apricots-0.png and /dev/null differdiff --git a/docs-old/assets/prompt_syntax/apricots-1.png b/docs-old/assets/prompt_syntax/apricots-1.pngdeleted file mode 100644index 75ff7a24a3..0000000000Binary files a/docs-old/assets/prompt_syntax/apricots-1.png and /dev/null differdiff --git a/docs-old/assets/prompt_syntax/apricots-2.png b/docs-old/assets/prompt_syntax/apricots-2.pngdeleted file mode 100644index e24ced7637..0000000000Binary files a/docs-old/assets/prompt_syntax/apricots-2.png and /dev/null differdiff --git a/docs-old/assets/prompt_syntax/apricots-3.png b/docs-old/assets/prompt_syntax/apricots-3.pngdeleted file mode 100644index d6edf5073c..0000000000Binary files a/docs-old/assets/prompt_syntax/apricots-3.png and /dev/null differdiff --git a/docs-old/assets/prompt_syntax/apricots-4.png b/docs-old/assets/prompt_syntax/apricots-4.pngdeleted file mode 100644index 291c5a1b03..0000000000Binary files a/docs-old/assets/prompt_syntax/apricots-4.png and /dev/null differdiff --git a/docs-old/assets/prompt_syntax/apricots-5.png b/docs-old/assets/prompt_syntax/apricots-5.pngdeleted file mode 100644index c71b857837..0000000000Binary files a/docs-old/assets/prompt_syntax/apricots-5.png and /dev/null differdiff --git a/docs-old/assets/prompt_syntax/mountain-man.png b/docs-old/assets/prompt_syntax/mountain-man.pngdeleted file mode 100644index 4bfa5817b8..0000000000Binary files a/docs-old/assets/prompt_syntax/mountain-man.png and /dev/null differdiff --git a/docs-old/assets/prompt_syntax/mountain-man1.png b/docs-old/assets/prompt_syntax/mountain-man1.pngdeleted file mode 100644index 5ed98162d3..0000000000Binary files a/docs-old/assets/prompt_syntax/mountain-man1.png and /dev/null differdiff --git a/docs-old/assets/prompt_syntax/mountain-man2.png b/docs-old/assets/prompt_syntax/mountain-man2.pngdeleted file mode 100644index d4466514de..0000000000Binary files a/docs-old/assets/prompt_syntax/mountain-man2.png and /dev/null differdiff --git a/docs-old/assets/prompt_syntax/mountain-man3.png b/docs-old/assets/prompt_syntax/mountain-man3.pngdeleted file mode 100644index 3196c5ca96..0000000000Binary files a/docs-old/assets/prompt_syntax/mountain-man3.png and /dev/null differdiff --git a/docs-old/assets/prompt_syntax/mountain-man4.png b/docs-old/assets/prompt_syntax/mountain-man4.pngdeleted file mode 100644index 69522dba23..0000000000Binary files a/docs-old/assets/prompt_syntax/mountain-man4.png and /dev/null differdiff --git a/docs-old/assets/prompt_syntax/mountain1-man.png b/docs-old/assets/prompt_syntax/mountain1-man.pngdeleted file mode 100644index b5952d02f9..0000000000Binary files a/docs-old/assets/prompt_syntax/mountain1-man.png and /dev/null differdiff --git a/docs-old/assets/prompt_syntax/mountain2-man.png b/docs-old/assets/prompt_syntax/mountain2-man.pngdeleted file mode 100644index 8ab55ff2a7..0000000000Binary files a/docs-old/assets/prompt_syntax/mountain2-man.png and /dev/null differdiff --git a/docs-old/assets/prompt_syntax/mountain3-man.png b/docs-old/assets/prompt_syntax/mountain3-man.pngdeleted file mode 100644index c1024b0a63..0000000000Binary files a/docs-old/assets/prompt_syntax/mountain3-man.png and /dev/null differdiff --git a/docs-old/assets/prompt_syntax/sdxl-prompt-concatenated.png b/docs-old/assets/prompt_syntax/sdxl-prompt-concatenated.pngdeleted file mode 100644index 8d5336da3d..0000000000Binary files a/docs-old/assets/prompt_syntax/sdxl-prompt-concatenated.png and /dev/null differdiff --git a/docs-old/assets/prompt_syntax/sdxl-prompt.png b/docs-old/assets/prompt_syntax/sdxl-prompt.pngdeleted file mode 100644index b85464c5ad..0000000000Binary files a/docs-old/assets/prompt_syntax/sdxl-prompt.png and /dev/null differdiff --git a/docs-old/assets/sdxl-graphs/sdxl-base-example1.json b/docs-old/assets/sdxl-graphs/sdxl-base-example1.jsondeleted file mode 100644index af162ba3e9..0000000000--- a/docs-old/assets/sdxl-graphs/sdxl-base-example1.json+++ /dev/null@@ -1 +0,0 @@-{"nodes":[{"width":387,"height":565,"dragHandle":".node-drag-handle","id":"800b3166-5044-4987-ba13-f839963fec96","type":"invocation","position":{"x":-169.10829044927982,"y":-272.36451106154334},"data":{"id":"800b3166-5044-4987-ba13-f839963fec96","type":"sdxl_compel_prompt","inputs":{"prompt":{"id":"8e76febd-6692-4a40-8bba-cbac54bccf1a","name":"prompt","type":"string","value":"bluebird in a sakura tree"},"style":{"id":"cd0e7434-04d8-4e36-b08b-3342d6ab4caa","name":"style","type":"string","value":""},"original_width":{"id":"cd259354-c92c-4e1c-815a-205fb38f8fec","name":"original_width","type":"integer","value":1024},"original_height":{"id":"b5cebf0e-97ce-4cd3-92be-fad37472daf2","name":"original_height","type":"integer","value":1024},"crop_top":{"id":"e6763334-676e-42fd-9fbf-0537ff002013","name":"crop_top","type":"integer","value":0},"crop_left":{"id":"00042856-acd5-4f99-a0e1-2d0b567ebf0f","name":"crop_left","type":"integer","value":0},"target_width":{"id":"800e17aa-1c15-4cdc-bceb-1f3f3ef5d244","name":"target_width","type":"integer","value":1024},"target_height":{"id":"91079f90-886b-440f-8236-236a239af747","name":"target_height","type":"integer","value":1024},"clip":{"id":"b32c84f8-b39e-4c23-8a77-fc62944ef942","name":"clip","type":"clip"},"clip2":{"id":"80db777a-3e3d-4132-ba0b-75a0b2135809","name":"clip2","type":"clip"}},"outputs":{"conditioning":{"id":"ea368e7a-bc93-4492-8fc6-e1d2fe2f5e2a","name":"conditioning","type":"conditioning"}}},"selected":false,"positionAbsolute":{"x":-169.10829044927982,"y":-272.36451106154334},"dragging":false},{"width":387,"height":565,"dragHandle":".node-drag-handle","id":"f3b94b55-bd55-4244-87b2-bf92e4ebbd2a","type":"invocation","position":{"x":-173.7213091998297,"y":346.42482955878256},"data":{"id":"f3b94b55-bd55-4244-87b2-bf92e4ebbd2a","type":"sdxl_compel_prompt","inputs":{"prompt":{"id":"d718b007-51f9-4385-bbf9-fa99756d5a4c","name":"prompt","type":"string","value":""},"style":{"id":"6476aafe-9e17-48b2-b66c-fbb8ff555926","name":"style","type":"string","value":""},"original_width":{"id":"7f4cf0bd-d5ab-460f-9484-375160f87620","name":"original_width","type":"integer","value":1024},"original_height":{"id":"8c1695a7-2b1b-44ba-8644-da207c551366","name":"original_height","type":"integer","value":1024},"crop_top":{"id":"5e7e7434-e966-4592-a422-924784192719","name":"crop_top","type":"integer","value":0},"crop_left":{"id":"cbbbc129-c481-4a28-a944-ad894dcec8b1","name":"crop_left","type":"integer","value":0},"target_width":{"id":"18bb5fb9-d488-41c3-9d8b-1b0e5b163676","name":"target_width","type":"integer","value":1024},"target_height":{"id":"44cbc645-b582-48c7-9e37-8aabd2615355","name":"target_height","type":"integer","value":1024},"clip":{"id":"65f8cad6-9aaf-4d21-91af-e9aeb9657bf2","name":"clip","type":"clip"},"clip2":{"id":"db5cdf20-9968-4932-b7de-adbc2460ca31","name":"clip2","type":"clip"}},"outputs":{"conditioning":{"id":"4f0236e9-0bf1-4410-867d-7241f1fe3e4c","name":"conditioning","type":"conditioning"}}},"selected":false,"positionAbsolute":{"x":-173.7213091998297,"y":346.42482955878256},"dragging":false},{"width":334,"height":269,"dragHandle":".node-drag-handle","id":"e29a9d29-2f63-487b-89b8-4184b1871c8f","type":"invocation","position":{"x":-652.2340297939481,"y":338.43526096363286},"data":{"id":"e29a9d29-2f63-487b-89b8-4184b1871c8f","type":"sdxl_model_loader","inputs":{"model":{"id":"4b19dda6-31fe-4317-a741-a19f8d8ec18f","name":"model","type":"model","value":{"model_name":"stable-diffusion-xl-base-0.9","base_model":"sdxl"}}},"outputs":{"unet":{"id":"d816da3a-7cb9-4d0d-8b1a-cea4e596c11e","name":"unet","type":"unet"},"clip":{"id":"35af0240-3014-4a2e-b3f2-f79ddffaca29","name":"clip","type":"clip"},"clip2":{"id":"25360ee2-ce84-4d04-95d6-a6e63db7e87c","name":"clip2","type":"clip"},"vae":{"id":"e8f15338-cbbe-45a1-8248-059b3601b058","name":"vae","type":"vae"}}},"selected":false,"positionAbsolute":{"x":-652.2340297939481,"y":338.43526096363286},"dragging":false},{"width":384,"height":519,"dragHandle":".node-drag-handle","id":"41f3e341-a2ae-4741-b0cd-dea20abde273","type":"invocation","position":{"x":796.6378578223604,"y":-192.53063049405188},"data":{"id":"41f3e341-a2ae-4741-b0cd-dea20abde273","type":"t2l_sdxl","inputs":{"positive_conditioning":{"id":"2b679eb8-3d15-4b4c-9a68-334bf43ea3d3","name":"positive_conditioning","type":"conditioning"},"negative_conditioning":{"id":"d3cfcf4b-8b31-4f88-98ed-3486dd60fa6f","name":"negative_conditioning","type":"conditioning"},"noise":{"id":"ed624337-7042-4a28-adf1-c8a6def87b4c","name":"noise","type":"latents"},"steps":{"id":"92f299da-c6ec-45fc-ad3d-d6af0f9862e6","name":"steps","type":"integer","value":10},"cfg_scale":{"id":"b129fa4e-c772-48cd-9dad-9b7223ddfcf5","name":"cfg_scale","type":"float","value":7.5},"scheduler":{"id":"d5e86735-8301-42f4-8fc4-276120e444cd","name":"scheduler","type":"enum","value":"euler"},"unet":{"id":"9affc51f-37a9-4468-90c9-bec97efda3f4","name":"unet","type":"unet"},"denoising_end":{"id":"91f41083-910e-4955-b3ae-d93ad3d1d801","name":"denoising_end","type":"float","value":1}},"outputs":{"latents":{"id":"f6b119cc-cf8d-46c0-8f43-bf712c509938","name":"latents","type":"latents"},"width":{"id":"cfcced65-62b2-40c7-b2bf-6534220eeaa1","name":"width","type":"integer"},"height":{"id":"819fbf37-8db1-4f5c-ad6b-a5cdb71e8c9a","name":"height","type":"integer"}}},"selected":false,"positionAbsolute":{"x":796.6378578223604,"y":-192.53063049405188},"dragging":false},{"width":333,"height":344,"dragHandle":".node-drag-handle","id":"357773ee-386a-423a-a712-a23812554cbb","type":"invocation","position":{"x":401.8907147451813,"y":576.7882372082732},"data":{"id":"357773ee-386a-423a-a712-a23812554cbb","type":"noise","inputs":{"seed":{"id":"9eaa6f6f-bde4-42b6-945a-a09b6cc46531","name":"seed","type":"integer","value":10},"width":{"id":"241032d2-6d05-47c1-bf9e-1a13ef95956b","name":"width","type":"integer","value":1024},"height":{"id":"71eda9a5-4460-4e7e-ba7a-2d99fa47ddf5","name":"height","type":"integer","value":1024},"use_cpu":{"id":"1dd54a91-deaa-4b83-be89-230c517d7b6b","name":"use_cpu","type":"boolean","value":true}},"outputs":{"noise":{"id":"321604ef-b33b-4529-91af-0d8d03d23f2f","name":"noise","type":"latents"},"width":{"id":"fc1f68f3-720f-4dbe-a9c9-b8a08cca768a","name":"width","type":"integer"},"height":{"id":"61022078-48f5-4faf-923e-9cddb508be30","name":"height","type":"integer"}}},"selected":false,"positionAbsolute":{"x":401.8907147451813,"y":576.7882372082732},"dragging":false},{"width":250,"height":323,"dragHandle":".node-drag-handle","id":"3e712379-88e7-465d-94d1-e06160b7cfae","type":"invocation","position":{"x":1237.2519670580534,"y":257.58346014925485},"data":{"id":"3e712379-88e7-465d-94d1-e06160b7cfae","type":"l2i","inputs":{"latents":{"id":"453d1aac-7bfe-480b-bc6f-2c3b110cd9b8","name":"latents","type":"latents"},"vae":{"id":"c7c38097-3620-4eb8-aec5-4ce1b043bb83","name":"vae","type":"vae"},"tiled":{"id":"2cab559e-fbaa-4cbf-ae9b-e5e43df38369","name":"tiled","type":"boolean","value":false},"fp32":{"id":"daf6c8df-325a-4cf6-9e86-d8962d838f17","name":"fp32","type":"boolean","value":true}},"outputs":{"image":{"id":"6ead6575-d4ad-4dd2-b6e0-5b70f9cce726","name":"image","type":"image"},"width":{"id":"734a4436-2c6f-4c57-b1cb-25a01548031d","name":"width","type":"integer"},"height":{"id":"7a03a4af-ab06-43f3-bb4d-1789b6f2c5e9","name":"height","type":"integer"}}},"selected":false,"positionAbsolute":{"x":1237.2519670580534,"y":257.58346014925485},"dragging":false},{"width":320,"height":187,"dragHandle":".node-drag-handle","id":"2423e526-ba3c-448e-8240-7442508d4609","type":"invocation","position":{"x":-33.59691285742994,"y":945.2263448868741},"data":{"id":"2423e526-ba3c-448e-8240-7442508d4609","type":"rand_int","inputs":{"low":{"id":"70ffaec8-3064-45dc-8b5c-6b4f43cc3b62","name":"low","type":"integer","value":0},"high":{"id":"82e10321-ce31-4e86-9e21-077c16a18e3d","name":"high","type":"integer","value":2147483647}},"outputs":{"a":{"id":"bba34654-8a92-40db-9810-7f75ddad8ae9","name":"a","type":"integer"}}},"selected":true,"positionAbsolute":{"x":-33.59691285742994,"y":945.2263448868741},"dragging":false}],"edges":[{"source":"41f3e341-a2ae-4741-b0cd-dea20abde273","sourceHandle":"latents","target":"3e712379-88e7-465d-94d1-e06160b7cfae","targetHandle":"latents","id":"reactflow__edge-41f3e341-a2ae-4741-b0cd-dea20abde273latents-3e712379-88e7-465d-94d1-e06160b7cfaelatents"},{"source":"800b3166-5044-4987-ba13-f839963fec96","sourceHandle":"conditioning","target":"41f3e341-a2ae-4741-b0cd-dea20abde273","targetHandle":"positive_conditioning","id":"reactflow__edge-800b3166-5044-4987-ba13-f839963fec96conditioning-41f3e341-a2ae-4741-b0cd-dea20abde273positive_conditioning"},{"source":"f3b94b55-bd55-4244-87b2-bf92e4ebbd2a","sourceHandle":"conditioning","target":"41f3e341-a2ae-4741-b0cd-dea20abde273","targetHandle":"negative_conditioning","id":"reactflow__edge-f3b94b55-bd55-4244-87b2-bf92e4ebbd2aconditioning-41f3e341-a2ae-4741-b0cd-dea20abde273negative_conditioning"},{"source":"357773ee-386a-423a-a712-a23812554cbb","sourceHandle":"noise","target":"41f3e341-a2ae-4741-b0cd-dea20abde273","targetHandle":"noise","id":"reactflow__edge-357773ee-386a-423a-a712-a23812554cbbnoise-41f3e341-a2ae-4741-b0cd-dea20abde273noise"},{"source":"e29a9d29-2f63-487b-89b8-4184b1871c8f","sourceHandle":"vae","target":"3e712379-88e7-465d-94d1-e06160b7cfae","targetHandle":"vae","id":"reactflow__edge-e29a9d29-2f63-487b-89b8-4184b1871c8fvae-3e712379-88e7-465d-94d1-e06160b7cfaevae"},{"source":"e29a9d29-2f63-487b-89b8-4184b1871c8f","sourceHandle":"clip","target":"800b3166-5044-4987-ba13-f839963fec96","targetHandle":"clip","id":"reactflow__edge-e29a9d29-2f63-487b-89b8-4184b1871c8fclip-800b3166-5044-4987-ba13-f839963fec96clip"},{"source":"e29a9d29-2f63-487b-89b8-4184b1871c8f","sourceHandle":"clip2","target":"800b3166-5044-4987-ba13-f839963fec96","targetHandle":"clip2","id":"reactflow__edge-e29a9d29-2f63-487b-89b8-4184b1871c8fclip2-800b3166-5044-4987-ba13-f839963fec96clip2"},{"source":"e29a9d29-2f63-487b-89b8-4184b1871c8f","sourceHandle":"clip","target":"f3b94b55-bd55-4244-87b2-bf92e4ebbd2a","targetHandle":"clip","id":"reactflow__edge-e29a9d29-2f63-487b-89b8-4184b1871c8fclip-f3b94b55-bd55-4244-87b2-bf92e4ebbd2aclip"},{"source":"e29a9d29-2f63-487b-89b8-4184b1871c8f","sourceHandle":"clip2","target":"f3b94b55-bd55-4244-87b2-bf92e4ebbd2a","targetHandle":"clip2","id":"reactflow__edge-e29a9d29-2f63-487b-89b8-4184b1871c8fclip2-f3b94b55-bd55-4244-87b2-bf92e4ebbd2aclip2"},{"source":"e29a9d29-2f63-487b-89b8-4184b1871c8f","sourceHandle":"unet","target":"41f3e341-a2ae-4741-b0cd-dea20abde273","targetHandle":"unet","id":"reactflow__edge-e29a9d29-2f63-487b-89b8-4184b1871c8funet-41f3e341-a2ae-4741-b0cd-dea20abde273unet"},{"source":"2423e526-ba3c-448e-8240-7442508d4609","sourceHandle":"a","target":"357773ee-386a-423a-a712-a23812554cbb","targetHandle":"seed","id":"reactflow__edge-2423e526-ba3c-448e-8240-7442508d4609a-357773ee-386a-423a-a712-a23812554cbbseed"}],"viewport":{"x":473.83885376565604,"y":374.3473116493717,"zoom":0.5904963307147653}}\ No newline at end of filediff --git a/docs-old/assets/sdxl-graphs/sdxl-base-refine-example1.json b/docs-old/assets/sdxl-graphs/sdxl-base-refine-example1.jsondeleted file mode 100644index 6935c15fd0..0000000000--- a/docs-old/assets/sdxl-graphs/sdxl-base-refine-example1.json+++ /dev/null@@ -1 +0,0 @@-{"nodes":[{"width":309,"height":138,"dragHandle":".node-drag-handle","id":"2daddd1d-a468-4841-9ff4-57befb3518a1","type":"invocation","position":{"x":-352.03597532489465,"y":-853.3432520441677},"data":{"id":"2daddd1d-a468-4841-9ff4-57befb3518a1","type":"param_string","inputs":{"text":{"id":"aa4e1128-b6e0-4d8b-831b-723e9879b307","name":"text","type":"string","value":"bluebird in a sakura tree"}},"outputs":{"text":{"id":"8605a8bb-ea46-402d-a0cf-658ad66aa589","name":"text","type":"string"}}},"selected":false,"positionAbsolute":{"x":-352.03597532489465,"y":-853.3432520441677},"dragging":false},{"width":309,"height":138,"dragHandle":".node-drag-handle","id":"0cee1a14-34fa-4b5e-b361-9ebfaba62844","type":"invocation","position":{"x":-350.69241780355867,"y":-671.6645885606935},"data":{"id":"0cee1a14-34fa-4b5e-b361-9ebfaba62844","type":"param_string","inputs":{"text":{"id":"55a39e14-81ad-4112-94b3-62faba370317","name":"text","type":"string","value":"classical chinese painting"}},"outputs":{"text":{"id":"60a32b20-0e81-4936-bf68-38f65c13cfab","name":"text","type":"string"}}},"selected":false,"positionAbsolute":{"x":-350.69241780355867,"y":-671.6645885606935},"dragging":false},{"width":309,"height":138,"dragHandle":".node-drag-handle","id":"3898e2dd-0efa-44cf-8d6c-0d23ef184419","type":"invocation","position":{"x":-353.4581776953401,"y":-483.26349757856553},"data":{"id":"3898e2dd-0efa-44cf-8d6c-0d23ef184419","type":"param_string","inputs":{"text":{"id":"79c9244d-b40b-45f7-8351-a0e3aad9c203","name":"text","type":"string","value":""}},"outputs":{"text":{"id":"c49253f2-57d2-4ea8-920e-2d0107834c3a","name":"text","type":"string"}}},"selected":false,"positionAbsolute":{"x":-353.4581776953401,"y":-483.26349757856553},"dragging":false},{"width":309,"height":138,"dragHandle":".node-drag-handle","id":"96935e84-c864-48a4-b6c0-c940c71c43ae","type":"invocation","position":{"x":-355.15166832006526,"y":-312.2209444813352},"data":{"id":"96935e84-c864-48a4-b6c0-c940c71c43ae","type":"param_string","inputs":{"text":{"id":"a57a792a-3621-489e-bae4-0a413510caef","name":"text","type":"string","value":""}},"outputs":{"text":{"id":"40c229fc-b044-40cd-8b31-31f0562ca7ae","name":"text","type":"string"}}},"selected":false,"positionAbsolute":{"x":-355.15166832006526,"y":-312.2209444813352},"dragging":false},{"width":334,"height":269,"dragHandle":".node-drag-handle","id":"f3cd6592-f3a4-4d4e-a833-deb36314716f","type":"invocation","position":{"x":-405.6072492884527,"y":-90.55508106907858},"data":{"id":"f3cd6592-f3a4-4d4e-a833-deb36314716f","type":"sdxl_model_loader","inputs":{"model":{"id":"e54a5f62-7fb2-46ab-bec2-e1d1de26245b","name":"model","type":"model","value":{"model_name":"stable-diffusion-xl-base-0.9","base_model":"sdxl"}}},"outputs":{"unet":{"id":"59d159bd-42e0-40ee-8c5e-0021158d2f2e","name":"unet","type":"unet"},"clip":{"id":"232c0412-142b-4f61-b3f2-673e8375452c","name":"clip","type":"clip"},"clip2":{"id":"bfaaf2ed-d5fb-419f-8f4d-1c47375b23d9","name":"clip2","type":"clip"},"vae":{"id":"b7699621-12fd-4364-b68d-27fb322fcc2b","name":"vae","type":"vae"}}},"selected":false,"positionAbsolute":{"x":-405.6072492884527,"y":-90.55508106907858},"dragging":false},{"width":387,"height":565,"dragHandle":".node-drag-handle","id":"c1c4e1e7-ae79-4fc8-9a98-246175e7c155","type":"invocation","position":{"x":81.8860645633394,"y":-680.6110236371882},"data":{"id":"c1c4e1e7-ae79-4fc8-9a98-246175e7c155","type":"sdxl_compel_prompt","inputs":{"prompt":{"id":"9df5bf37-ff52-4deb-b8b2-59670578bd74","name":"prompt","type":"string","value":""},"style":{"id":"66b685eb-2c97-4dee-be34-fd10bda699fb","name":"style","type":"string","value":""},"original_width":{"id":"0dada1d1-305f-4b46-b342-e72150cf135d","name":"original_width","type":"integer","value":1024},"original_height":{"id":"fcbc471b-982e-4fed-9882-981d5490ab24","name":"original_height","type":"integer","value":1024},"crop_top":{"id":"7b891ead-37b4-4fcf-a642-1b27589ef8b8","name":"crop_top","type":"integer","value":0},"crop_left":{"id":"3d7d7f57-62af-42a6-ac55-80a5dcc6a6a1","name":"crop_left","type":"integer","value":0},"target_width":{"id":"e51a406e-185b-4447-82a9-752118d86ded","name":"target_width","type":"integer","value":1024},"target_height":{"id":"86aac99d-8671-4cdf-9f4b-fbd9261a1a43","name":"target_height","type":"integer","value":1024},"clip":{"id":"a6c1cdc5-ea91-4aaa-8b27-d5b0ea149d2c","name":"clip","type":"clip"},"clip2":{"id":"4af4c3c4-d23a-4940-8597-e1181b54e2b1","name":"clip2","type":"clip"}},"outputs":{"conditioning":{"id":"f8a844c4-8395-4645-87b8-7b8f02057302","name":"conditioning","type":"conditioning"}}},"selected":false,"positionAbsolute":{"x":81.8860645633394,"y":-680.6110236371882},"dragging":false},{"width":387,"height":565,"dragHandle":".node-drag-handle","id":"addd5054-97d8-466c-ab3c-41f5e039af02","type":"invocation","position":{"x":82.9601624843504,"y":-78.81640327238692},"data":{"id":"addd5054-97d8-466c-ab3c-41f5e039af02","type":"sdxl_compel_prompt","inputs":{"prompt":{"id":"d6eee212-c125-4c35-8028-a8c980496ee2","name":"prompt","type":"string","value":""},"style":{"id":"88c7d42e-5868-4e75-ab37-0b05a4cfc84d","name":"style","type":"string","value":""},"original_width":{"id":"21897c23-5bb2-46c0-b0e3-9e481c6828ab","name":"original_width","type":"integer","value":1024},"original_height":{"id":"70b41031-48b6-4c3b-9683-8332b344cc88","name":"original_height","type":"integer","value":1024},"crop_top":{"id":"a1e7aad9-1088-47c9-9956-eed7ae857a15","name":"crop_top","type":"integer","value":0},"crop_left":{"id":"9a237728-23ea-42fd-98c3-1b3ee571d8de","name":"crop_left","type":"integer","value":0},"target_width":{"id":"48ee0274-c952-4a8f-8b11-17c6cbad3546","name":"target_width","type":"integer","value":1024},"target_height":{"id":"4c75e60f-fd59-46f0-95dc-825a43fb329f","name":"target_height","type":"integer","value":1024},"clip":{"id":"1cb885c0-efc8-451c-9208-765f5c436950","name":"clip","type":"clip"},"clip2":{"id":"0b98f464-3f10-4dc3-aa14-22e25ac1a301","name":"clip2","type":"clip"}},"outputs":{"conditioning":{"id":"6cdd9112-92ec-4b34-9c10-c185f66d3d2a","name":"conditioning","type":"conditioning"}}},"selected":false,"positionAbsolute":{"x":82.9601624843504,"y":-78.81640327238692},"dragging":false},{"width":394,"height":425,"dragHandle":".node-drag-handle","id":"0af8fc93-be59-4002-9956-c700fb778d4a","type":"invocation","position":{"x":1100.1437566814066,"y":-851.6600425944865},"data":{"id":"0af8fc93-be59-4002-9956-c700fb778d4a","type":"sdxl_refiner_compel_prompt","inputs":{"style":{"id":"fda33c4f-84ef-4d82-bff1-b1b4b7c0f272","name":"style","type":"string","value":""},"original_width":{"id":"daf3c09d-d0bf-441f-ab05-5e8c16c8e136","name":"original_width","type":"integer","value":1024},"original_height":{"id":"d20c06c8-db5b-48db-92d9-79ee8ccd44f8","name":"original_height","type":"integer","value":1024},"crop_top":{"id":"29ad28e3-a497-4949-8ee5-ddb9645ca38f","name":"crop_top","type":"integer","value":0},"crop_left":{"id":"c4bdccc3-2f11-420a-abbe-2b4bd66a11c6","name":"crop_left","type":"integer","value":0},"aesthetic_score":{"id":"342061a0-eb9b-43fc-ac41-707b10355256","name":"aesthetic_score","type":"float","value":6},"clip2":{"id":"9fc7860d-aa7f-47fe-b8c9-1add0aee25bc","name":"clip2","type":"clip"}},"outputs":{"conditioning":{"id":"87cc45e3-839e-4a20-b93f-7892dbd53d75","name":"conditioning","type":"conditioning"}}},"selected":false,"positionAbsolute":{"x":1100.1437566814066,"y":-851.6600425944865},"dragging":false},{"width":334,"height":236,"dragHandle":".node-drag-handle","id":"d9e4c4e6-de63-4ee1-b2e7-ad11d874bcae","type":"invocation","position":{"x":542.9067581903546,"y":-677.6764639738383},"data":{"id":"d9e4c4e6-de63-4ee1-b2e7-ad11d874bcae","type":"sdxl_refiner_model_loader","inputs":{"model":{"id":"75b59470-6fac-48c6-a2c8-957ecb24abc9","name":"model","type":"model","value":{"model_name":"stable-diffusion-xl-refiner-0.9","base_model":"sdxl-refiner"}}},"outputs":{"unet":{"id":"8c78fcbd-a23d-4434-944c-5d1798156ae4","name":"unet","type":"unet"},"clip2":{"id":"9456e151-1b09-4853-9855-ad6c9f659720","name":"clip2","type":"clip"},"vae":{"id":"a86160bc-037c-4516-8e74-c6298e4d1f15","name":"vae","type":"vae"}}},"selected":true,"positionAbsolute":{"x":542.9067581903546,"y":-677.6764639738383},"dragging":false},{"width":394,"height":425,"dragHandle":".node-drag-handle","id":"c5b420c9-82cd-4863-b416-a620009f2d36","type":"invocation","position":{"x":1090.7741649651036,"y":-368.4448651589644},"data":{"id":"c5b420c9-82cd-4863-b416-a620009f2d36","type":"sdxl_refiner_compel_prompt","inputs":{"style":{"id":"90b996b2-e9f2-4b9b-acf9-d19804fe0228","name":"style","type":"string","value":""},"original_width":{"id":"7d511718-55c7-4c78-9bd5-89c6e293c1c2","name":"original_width","type":"integer","value":1024},"original_height":{"id":"1ec9ea13-ea31-4abd-af49-32d288313291","name":"original_height","type":"integer","value":1024},"crop_top":{"id":"ea1db4fd-521c-4439-9f57-d7d4f16175e7","name":"crop_top","type":"integer","value":0},"crop_left":{"id":"6e7af04e-0281-4f68-a393-1ec5b3af54c1","name":"crop_left","type":"integer","value":0},"aesthetic_score":{"id":"6c270052-bea0-4b08-a6b3-6601457f47bc","name":"aesthetic_score","type":"float","value":6},"clip2":{"id":"813f23b9-533e-4f65-82b3-c5d6cda09a22","name":"clip2","type":"clip"}},"outputs":{"conditioning":{"id":"46e6250e-daea-4d8d-ba32-d3405670cdae","name":"conditioning","type":"conditioning"}}},"selected":false,"positionAbsolute":{"x":1090.7741649651036,"y":-368.4448651589644},"dragging":false},{"width":333,"height":344,"dragHandle":".node-drag-handle","id":"fface4ab-25e3-4714-aca9-bb6c67842cd5","type":"invocation","position":{"x":572.6787481456306,"y":464.11370246551087},"data":{"id":"fface4ab-25e3-4714-aca9-bb6c67842cd5","type":"noise","inputs":{"seed":{"id":"c820a274-fb57-408d-b2b6-a1b1e2db4c39","name":"seed","type":"integer","value":0},"width":{"id":"533435f9-a82d-4841-8a17-33e6c766cd03","name":"width","type":"integer","value":1024},"height":{"id":"8d350b62-ed7a-484c-9cf2-ffe54a96465d","name":"height","type":"integer","value":1024},"use_cpu":{"id":"2cb494a6-5550-43da-802b-4809314615d4","name":"use_cpu","type":"boolean","value":true}},"outputs":{"noise":{"id":"e5a7a90f-656b-474a-b4cb-475d904e82c7","name":"noise","type":"latents"},"width":{"id":"e5b9de92-07f1-4dc5-95de-3096eca8db30","name":"width","type":"integer"},"height":{"id":"8489a4ce-41e9-4d69-bd8d-f0b862d84a3e","name":"height","type":"integer"}}},"selected":false,"positionAbsolute":{"x":572.6787481456306,"y":464.11370246551087},"dragging":false},{"width":384,"height":519,"dragHandle":".node-drag-handle","id":"0d025980-24fa-4b38-a5e6-e38c40ba23cf","type":"invocation","position":{"x":1596.8574685369997,"y":277.26040215989804},"data":{"id":"0d025980-24fa-4b38-a5e6-e38c40ba23cf","type":"t2l_sdxl","inputs":{"positive_conditioning":{"id":"77c4bda4-2d88-4d7c-bfc4-a0843a850109","name":"positive_conditioning","type":"conditioning"},"negative_conditioning":{"id":"4aad4196-2211-401a-82cf-0a66dc8b8374","name":"negative_conditioning","type":"conditioning"},"noise":{"id":"854bd0c1-a480-4c3a-a57a-0bce2d862c89","name":"noise","type":"latents"},"steps":{"id":"828a4cb3-746d-4f21-ab48-ff25b4f4b9f7","name":"steps","type":"integer","value":20},"cfg_scale":{"id":"77ec37ee-775b-49e9-8c6b-96dd81a8b561","name":"cfg_scale","type":"float","value":7.5},"scheduler":{"id":"12cd8ca4-b973-4875-a3e0-e17898ec514a","name":"scheduler","type":"enum","value":"euler"},"unet":{"id":"3465ea9c-f80b-46da-aa2d-6c550dcf4312","name":"unet","type":"unet"},"denoising_end":{"id":"717c3255-3aff-4eb5-9935-2f9b6794571e","name":"denoising_end","type":"float","value":1}},"outputs":{"latents":{"id":"eab9d5f1-aa6e-4ef5-87e6-1a5240e6638a","name":"latents","type":"latents"},"width":{"id":"957af5db-5c7d-4838-ae23-b4da184e4d92","name":"width","type":"integer"},"height":{"id":"337f2d41-78e7-4692-9f9e-7db102f97f8e","name":"height","type":"integer"}}},"selected":false,"positionAbsolute":{"x":1596.8574685369997,"y":277.26040215989804},"dragging":false},{"width":391,"height":610,"dragHandle":".node-drag-handle","id":"64fb34f7-6e0f-4fcf-80c3-9ca436c3623f","type":"invocation","position":{"x":2044.2621231418175,"y":-374.36499568795915},"data":{"id":"64fb34f7-6e0f-4fcf-80c3-9ca436c3623f","type":"l2l_sdxl","inputs":{"positive_conditioning":{"id":"561c26bd-5f7a-4a5b-83ef-a0380248a4b6","name":"positive_conditioning","type":"conditioning"},"negative_conditioning":{"id":"9f61e901-d8a7-4d61-ae69-ff00e8dba6da","name":"negative_conditioning","type":"conditioning"},"noise":{"id":"622b98db-33d9-495b-bc60-d0c1cf268573","name":"noise","type":"latents"},"steps":{"id":"4176611a-7071-4138-9a31-6ff5a7fae44a","name":"steps","type":"integer","value":20},"cfg_scale":{"id":"5223049f-672e-4782-8b75-d80ea4d6116b","name":"cfg_scale","type":"float","value":7.5},"scheduler":{"id":"0368e8b4-eafd-4efc-9e8f-4b0587977a62","name":"scheduler","type":"enum","value":"euler"},"unet":{"id":"f3a6510b-9e5d-4fbc-bcf8-f66d6ad13508","name":"unet","type":"unet"},"latents":{"id":"5aa7d118-7b02-4efd-8010-e72f422088b7","name":"latents","type":"latents"},"denoising_start":{"id":"1e12482b-4c8b-45f2-9f03-b6018e8db6fb","name":"denoising_start","type":"float","value":0.7},"denoising_end":{"id":"59d159d3-0839-41c6-a57f-a1bd4d655634","name":"denoising_end","type":"float","value":1}},"outputs":{"latents":{"id":"990cd073-3cd6-49d2-b27b-e6d783db56e1","name":"latents","type":"latents"},"width":{"id":"310659f0-5ee9-4093-ba93-83d8abdc879f","name":"width","type":"integer"},"height":{"id":"a613cafe-fdb4-4347-a231-e77b3e2ba975","name":"height","type":"integer"}}},"selected":false,"positionAbsolute":{"x":2044.2621231418175,"y":-374.36499568795915},"dragging":false},{"width":250,"height":323,"dragHandle":".node-drag-handle","id":"d1507d22-215b-4197-a893-c070f84c1eb2","type":"invocation","position":{"x":2564.7859493061546,"y":-740.6258381907046},"data":{"id":"d1507d22-215b-4197-a893-c070f84c1eb2","type":"l2i","inputs":{"latents":{"id":"206b269c-f27c-4ab9-9d97-80a26e6b5cc1","name":"latents","type":"latents"},"vae":{"id":"44e700f0-fe33-4d2d-ab74-3512f0625159","name":"vae","type":"vae"},"tiled":{"id":"0441b8f5-c6af-4461-8d9c-39abef4045f7","name":"tiled","type":"boolean","value":true},"fp32":{"id":"dcfa7f96-9d73-44cc-9cf5-418fd796d70c","name":"fp32","type":"boolean","value":true}},"outputs":{"image":{"id":"30c13692-27f8-4560-9ee8-188c4e4be266","name":"image","type":"image"},"width":{"id":"f12d0aee-6b61-4910-a4ef-14764a1dbaa3","name":"width","type":"integer"},"height":{"id":"3851e7e3-702a-4be9-9f51-176e0697c865","name":"height","type":"integer"}}},"selected":false,"positionAbsolute":{"x":2564.7859493061546,"y":-740.6258381907046},"dragging":false},{"width":320,"height":187,"dragHandle":".node-drag-handle","id":"1d7b5526-021f-4ade-bc7b-20173dd5e6f1","type":"invocation","position":{"x":110.88284993961776,"y":580.9044019817862},"data":{"id":"1d7b5526-021f-4ade-bc7b-20173dd5e6f1","type":"rand_int","inputs":{"low":{"id":"b05a55e0-ad8f-4629-9986-6ce27802c590","name":"low","type":"integer","value":0},"high":{"id":"4797e9b7-5d12-49e3-8f2c-64d80f203d42","name":"high","type":"integer","value":2147483647}},"outputs":{"a":{"id":"45fc7618-6803-4641-a976-36629852652d","name":"a","type":"integer"}}},"selected":false,"positionAbsolute":{"x":110.88284993961776,"y":580.9044019817862},"dragging":false},{"width":331,"height":138,"dragHandle":".node-drag-handle","id":"081ba10b-1fd0-4ad6-b4cc-b5aad5fec68e","type":"invocation","position":{"x":979.9163444732269,"y":267.53735270001346},"data":{"id":"081ba10b-1fd0-4ad6-b4cc-b5aad5fec68e","type":"param_float","inputs":{"param":{"id":"50bb0487-8138-415c-b3d4-54eedd70b980","name":"param","type":"float","value":0.7}},"outputs":{"param":{"id":"d3cf0272-d0fb-4085-bb52-9094352471a2","name":"param","type":"float"}}},"selected":false,"positionAbsolute":{"x":979.9163444732269,"y":267.53735270001346},"dragging":false}],"edges":[{"source":"2daddd1d-a468-4841-9ff4-57befb3518a1","sourceHandle":"text","target":"0af8fc93-be59-4002-9956-c700fb778d4a","targetHandle":"style","id":"reactflow__edge-2daddd1d-a468-4841-9ff4-57befb3518a1text-0af8fc93-be59-4002-9956-c700fb778d4astyle"},{"source":"2daddd1d-a468-4841-9ff4-57befb3518a1","sourceHandle":"text","target":"c1c4e1e7-ae79-4fc8-9a98-246175e7c155","targetHandle":"prompt","id":"reactflow__edge-2daddd1d-a468-4841-9ff4-57befb3518a1text-c1c4e1e7-ae79-4fc8-9a98-246175e7c155prompt"},{"source":"0cee1a14-34fa-4b5e-b361-9ebfaba62844","sourceHandle":"text","target":"c1c4e1e7-ae79-4fc8-9a98-246175e7c155","targetHandle":"style","id":"reactflow__edge-0cee1a14-34fa-4b5e-b361-9ebfaba62844text-c1c4e1e7-ae79-4fc8-9a98-246175e7c155style"},{"source":"3898e2dd-0efa-44cf-8d6c-0d23ef184419","sourceHandle":"text","target":"c5b420c9-82cd-4863-b416-a620009f2d36","targetHandle":"style","id":"reactflow__edge-3898e2dd-0efa-44cf-8d6c-0d23ef184419text-c5b420c9-82cd-4863-b416-a620009f2d36style"},{"source":"3898e2dd-0efa-44cf-8d6c-0d23ef184419","sourceHandle":"text","target":"addd5054-97d8-466c-ab3c-41f5e039af02","targetHandle":"prompt","id":"reactflow__edge-3898e2dd-0efa-44cf-8d6c-0d23ef184419text-addd5054-97d8-466c-ab3c-41f5e039af02prompt"},{"source":"96935e84-c864-48a4-b6c0-c940c71c43ae","sourceHandle":"text","target":"addd5054-97d8-466c-ab3c-41f5e039af02","targetHandle":"style","id":"reactflow__edge-96935e84-c864-48a4-b6c0-c940c71c43aetext-addd5054-97d8-466c-ab3c-41f5e039af02style"},{"source":"f3cd6592-f3a4-4d4e-a833-deb36314716f","sourceHandle":"unet","target":"0d025980-24fa-4b38-a5e6-e38c40ba23cf","targetHandle":"unet","id":"reactflow__edge-f3cd6592-f3a4-4d4e-a833-deb36314716funet-0d025980-24fa-4b38-a5e6-e38c40ba23cfunet"},{"source":"f3cd6592-f3a4-4d4e-a833-deb36314716f","sourceHandle":"clip","target":"c1c4e1e7-ae79-4fc8-9a98-246175e7c155","targetHandle":"clip","id":"reactflow__edge-f3cd6592-f3a4-4d4e-a833-deb36314716fclip-c1c4e1e7-ae79-4fc8-9a98-246175e7c155clip"},{"source":"f3cd6592-f3a4-4d4e-a833-deb36314716f","sourceHandle":"clip","target":"addd5054-97d8-466c-ab3c-41f5e039af02","targetHandle":"clip","id":"reactflow__edge-f3cd6592-f3a4-4d4e-a833-deb36314716fclip-addd5054-97d8-466c-ab3c-41f5e039af02clip"},{"source":"f3cd6592-f3a4-4d4e-a833-deb36314716f","sourceHandle":"clip2","target":"c1c4e1e7-ae79-4fc8-9a98-246175e7c155","targetHandle":"clip2","id":"reactflow__edge-f3cd6592-f3a4-4d4e-a833-deb36314716fclip2-c1c4e1e7-ae79-4fc8-9a98-246175e7c155clip2"},{"source":"f3cd6592-f3a4-4d4e-a833-deb36314716f","sourceHandle":"clip2","target":"addd5054-97d8-466c-ab3c-41f5e039af02","targetHandle":"clip2","id":"reactflow__edge-f3cd6592-f3a4-4d4e-a833-deb36314716fclip2-addd5054-97d8-466c-ab3c-41f5e039af02clip2"},{"source":"c1c4e1e7-ae79-4fc8-9a98-246175e7c155","sourceHandle":"conditioning","target":"0d025980-24fa-4b38-a5e6-e38c40ba23cf","targetHandle":"positive_conditioning","id":"reactflow__edge-c1c4e1e7-ae79-4fc8-9a98-246175e7c155conditioning-0d025980-24fa-4b38-a5e6-e38c40ba23cfpositive_conditioning"},{"source":"addd5054-97d8-466c-ab3c-41f5e039af02","sourceHandle":"conditioning","target":"0d025980-24fa-4b38-a5e6-e38c40ba23cf","targetHandle":"negative_conditioning","id":"reactflow__edge-addd5054-97d8-466c-ab3c-41f5e039af02conditioning-0d025980-24fa-4b38-a5e6-e38c40ba23cfnegative_conditioning"},{"source":"fface4ab-25e3-4714-aca9-bb6c67842cd5","sourceHandle":"noise","target":"0d025980-24fa-4b38-a5e6-e38c40ba23cf","targetHandle":"noise","id":"reactflow__edge-fface4ab-25e3-4714-aca9-bb6c67842cd5noise-0d025980-24fa-4b38-a5e6-e38c40ba23cfnoise"},{"source":"1d7b5526-021f-4ade-bc7b-20173dd5e6f1","sourceHandle":"a","target":"fface4ab-25e3-4714-aca9-bb6c67842cd5","targetHandle":"seed","id":"reactflow__edge-1d7b5526-021f-4ade-bc7b-20173dd5e6f1a-fface4ab-25e3-4714-aca9-bb6c67842cd5seed"},{"source":"d9e4c4e6-de63-4ee1-b2e7-ad11d874bcae","sourceHandle":"unet","target":"64fb34f7-6e0f-4fcf-80c3-9ca436c3623f","targetHandle":"unet","id":"reactflow__edge-d9e4c4e6-de63-4ee1-b2e7-ad11d874bcaeunet-64fb34f7-6e0f-4fcf-80c3-9ca436c3623funet"},{"source":"0af8fc93-be59-4002-9956-c700fb778d4a","sourceHandle":"conditioning","target":"64fb34f7-6e0f-4fcf-80c3-9ca436c3623f","targetHandle":"positive_conditioning","id":"reactflow__edge-0af8fc93-be59-4002-9956-c700fb778d4aconditioning-64fb34f7-6e0f-4fcf-80c3-9ca436c3623fpositive_conditioning"},{"source":"c5b420c9-82cd-4863-b416-a620009f2d36","sourceHandle":"conditioning","target":"64fb34f7-6e0f-4fcf-80c3-9ca436c3623f","targetHandle":"negative_conditioning","id":"reactflow__edge-c5b420c9-82cd-4863-b416-a620009f2d36conditioning-64fb34f7-6e0f-4fcf-80c3-9ca436c3623fnegative_conditioning"},{"source":"0d025980-24fa-4b38-a5e6-e38c40ba23cf","sourceHandle":"latents","target":"64fb34f7-6e0f-4fcf-80c3-9ca436c3623f","targetHandle":"latents","id":"reactflow__edge-0d025980-24fa-4b38-a5e6-e38c40ba23cflatents-64fb34f7-6e0f-4fcf-80c3-9ca436c3623flatents"},{"source":"64fb34f7-6e0f-4fcf-80c3-9ca436c3623f","sourceHandle":"latents","target":"d1507d22-215b-4197-a893-c070f84c1eb2","targetHandle":"latents","id":"reactflow__edge-64fb34f7-6e0f-4fcf-80c3-9ca436c3623flatents-d1507d22-215b-4197-a893-c070f84c1eb2latents"},{"source":"d9e4c4e6-de63-4ee1-b2e7-ad11d874bcae","sourceHandle":"vae","target":"d1507d22-215b-4197-a893-c070f84c1eb2","targetHandle":"vae","id":"reactflow__edge-d9e4c4e6-de63-4ee1-b2e7-ad11d874bcaevae-d1507d22-215b-4197-a893-c070f84c1eb2vae"},{"source":"d9e4c4e6-de63-4ee1-b2e7-ad11d874bcae","sourceHandle":"clip2","target":"0af8fc93-be59-4002-9956-c700fb778d4a","targetHandle":"clip2","id":"reactflow__edge-d9e4c4e6-de63-4ee1-b2e7-ad11d874bcaeclip2-0af8fc93-be59-4002-9956-c700fb778d4aclip2"},{"source":"d9e4c4e6-de63-4ee1-b2e7-ad11d874bcae","sourceHandle":"clip2","target":"c5b420c9-82cd-4863-b416-a620009f2d36","targetHandle":"clip2","id":"reactflow__edge-d9e4c4e6-de63-4ee1-b2e7-ad11d874bcaeclip2-c5b420c9-82cd-4863-b416-a620009f2d36clip2"},{"source":"081ba10b-1fd0-4ad6-b4cc-b5aad5fec68e","sourceHandle":"param","target":"0d025980-24fa-4b38-a5e6-e38c40ba23cf","targetHandle":"denoising_end","id":"reactflow__edge-081ba10b-1fd0-4ad6-b4cc-b5aad5fec68eparam-0d025980-24fa-4b38-a5e6-e38c40ba23cfdenoising_end"},{"source":"081ba10b-1fd0-4ad6-b4cc-b5aad5fec68e","sourceHandle":"param","target":"64fb34f7-6e0f-4fcf-80c3-9ca436c3623f","targetHandle":"denoising_start","id":"reactflow__edge-081ba10b-1fd0-4ad6-b4cc-b5aad5fec68eparam-64fb34f7-6e0f-4fcf-80c3-9ca436c3623fdenoising_start"}],"viewport":{"x":388.5523754198109,"y":521.3299012520417,"zoom":0.5336411821766158}}\ No newline at end of filediff --git a/docs-old/assets/send-to-icon.png b/docs-old/assets/send-to-icon.pngdeleted file mode 100644index 6ff1c9065b..0000000000Binary files a/docs-old/assets/send-to-icon.png and /dev/null differdiff --git a/docs-old/assets/stable-samples/img2img/mountains-2.png b/docs-old/assets/stable-samples/img2img/mountains-2.pngdeleted file mode 100644index e9f4e70853..0000000000Binary files a/docs-old/assets/stable-samples/img2img/mountains-2.png and /dev/null differdiff --git a/docs-old/assets/stable-samples/img2img/mountains-3.png b/docs-old/assets/stable-samples/img2img/mountains-3.pngdeleted file mode 100644index 017de3012c..0000000000Binary files a/docs-old/assets/stable-samples/img2img/mountains-3.png and /dev/null differdiff --git a/docs-old/assets/stable-samples/img2img/sketch-mountains-input.jpg b/docs-old/assets/stable-samples/img2img/sketch-mountains-input.jpgdeleted file mode 100644index 79d652b800..0000000000Binary files a/docs-old/assets/stable-samples/img2img/sketch-mountains-input.jpg and /dev/null differdiff --git a/docs-old/assets/stable-samples/txt2img/merged-0005.png b/docs-old/assets/stable-samples/txt2img/merged-0005.pngdeleted file mode 100644index ca0a1af206..0000000000Binary files a/docs-old/assets/stable-samples/txt2img/merged-0005.png and /dev/null differdiff --git a/docs-old/assets/stable-samples/txt2img/merged-0006.png b/docs-old/assets/stable-samples/txt2img/merged-0006.pngdeleted file mode 100644index 999f370323..0000000000Binary files a/docs-old/assets/stable-samples/txt2img/merged-0006.png and /dev/null differdiff --git a/docs-old/assets/stable-samples/txt2img/merged-0007.png b/docs-old/assets/stable-samples/txt2img/merged-0007.pngdeleted file mode 100644index af390acaf6..0000000000Binary files a/docs-old/assets/stable-samples/txt2img/merged-0007.png and /dev/null differdiff --git a/docs-old/assets/step1.png b/docs-old/assets/step1.pngdeleted file mode 100644index 6309f41f20..0000000000Binary files a/docs-old/assets/step1.png and /dev/null differdiff --git a/docs-old/assets/step2.png b/docs-old/assets/step2.pngdeleted file mode 100644index 06027289b2..0000000000Binary files a/docs-old/assets/step2.png and /dev/null differdiff --git a/docs-old/assets/step4.png b/docs-old/assets/step4.pngdeleted file mode 100644index c24db6b470..0000000000Binary files a/docs-old/assets/step4.png and /dev/null differdiff --git a/docs-old/assets/step5.png b/docs-old/assets/step5.pngdeleted file mode 100644index b4e9b50576..0000000000Binary files a/docs-old/assets/step5.png and /dev/null differdiff --git a/docs-old/assets/step6.png b/docs-old/assets/step6.pngdeleted file mode 100644index c43140c1aa..0000000000Binary files a/docs-old/assets/step6.png and /dev/null differdiff --git a/docs-old/assets/step7.png b/docs-old/assets/step7.pngdeleted file mode 100644index a575af28b2..0000000000Binary files a/docs-old/assets/step7.png and /dev/null differdiff --git a/docs-old/assets/still-life-inpainted.png b/docs-old/assets/still-life-inpainted.pngdeleted file mode 100644index ab8c7bd69a..0000000000Binary files a/docs-old/assets/still-life-inpainted.png and /dev/null differdiff --git a/docs-old/assets/still-life-scaled.jpg b/docs-old/assets/still-life-scaled.jpgdeleted file mode 100644index ba9c86be00..0000000000Binary files a/docs-old/assets/still-life-scaled.jpg and /dev/null differdiff --git a/docs-old/assets/textual-inversion/ti-frontend.png b/docs-old/assets/textual-inversion/ti-frontend.pngdeleted file mode 100644index 0500e9b132..0000000000Binary files a/docs-old/assets/textual-inversion/ti-frontend.png and /dev/null differdiff --git a/docs-old/assets/troubleshooting/broken-dependency.png b/docs-old/assets/troubleshooting/broken-dependency.pngdeleted file mode 100644index 2841508920..0000000000Binary files a/docs-old/assets/troubleshooting/broken-dependency.png and /dev/null differdiff --git a/docs-old/assets/truncation_comparison.jpg b/docs-old/assets/truncation_comparison.jpgdeleted file mode 100644index a39a804beb..0000000000Binary files a/docs-old/assets/truncation_comparison.jpg and /dev/null differdiff --git a/docs-old/assets/upscaling.png b/docs-old/assets/upscaling.pngdeleted file mode 100644index e58a538e5e..0000000000Binary files a/docs-old/assets/upscaling.png and /dev/null differdiff --git a/docs-old/assets/v1-variants-scores.jpg b/docs-old/assets/v1-variants-scores.jpgdeleted file mode 100644index 9201b985d4..0000000000Binary files a/docs-old/assets/v1-variants-scores.jpg and /dev/null differdiff --git a/docs-old/assets/variation_walkthru/000001.3357757885.png b/docs-old/assets/variation_walkthru/000001.3357757885.pngdeleted file mode 100644index b9aa4a78ed..0000000000Binary files a/docs-old/assets/variation_walkthru/000001.3357757885.png and /dev/null differdiff --git a/docs-old/assets/variation_walkthru/000002.1614299449.png b/docs-old/assets/variation_walkthru/000002.1614299449.pngdeleted file mode 100644index 0db167ae6c..0000000000Binary files a/docs-old/assets/variation_walkthru/000002.1614299449.png and /dev/null differdiff --git a/docs-old/assets/variation_walkthru/000002.3647897225.png b/docs-old/assets/variation_walkthru/000002.3647897225.pngdeleted file mode 100644index 7fe1f29227..0000000000Binary files a/docs-old/assets/variation_walkthru/000002.3647897225.png and /dev/null differdiff --git a/docs-old/assets/variation_walkthru/000003.1614299449.png b/docs-old/assets/variation_walkthru/000003.1614299449.pngdeleted file mode 100644index b7f6ae7613..0000000000Binary files a/docs-old/assets/variation_walkthru/000003.1614299449.png and /dev/null differdiff --git a/docs-old/assets/variation_walkthru/000004.3747154981.png b/docs-old/assets/variation_walkthru/000004.3747154981.pngdeleted file mode 100644index e6ac5f3bc9..0000000000Binary files a/docs-old/assets/variation_walkthru/000004.3747154981.png and /dev/null differdiff --git a/docs-old/configuration.md b/docs-old/configuration.mddeleted file mode 100644index 5d8749af6f..0000000000--- a/docs-old/configuration.md+++ /dev/null@@ -1,221 +0,0 @@-----title: Configuration------# :material-tune-variant: InvokeAI Configuration--## Intro--Runtime settings, including the location of files and-directories, memory usage, and performance, are managed via the-`invokeai.yaml` config file or environment variables. A subset-of settings may be set via commandline arguments.--Settings sources are used in this order:--- CLI args-- Environment variables-- `invokeai.yaml` settings-- Fallback: defaults--### InvokeAI Root Directory--On startup, InvokeAI searches for its "root" directory. This is the directory-that contains models, images, the database, and so on. It also contains-a configuration file called `invokeai.yaml`.--InvokeAI searches for the root directory in this order:--1. The `--root <path>` CLI arg.-2. The environment variable INVOKEAI_ROOT.-3. The directory containing the currently active virtual environment.-4. Fallback: a directory in the current user's home directory named `invokeai`.--### InvokeAI Configuration File--Inside the root directory, we read settings from the `invokeai.yaml` file.--It has two sections - one for internal use and one for user settings:--```yaml-# Internal metadata - do not edit:-schema_version: 4.0.3--# Put user settings here - see https://invoke-ai.github.io/InvokeAI/features/CONFIGURATION/:-host: 0.0.0.0 # serve the app on your local network-models_dir: D:\invokeai\models # store models on an external drive-precision: float16 # always use fp16 precision-```--The settings in this file will override the defaults. You only need-to change this file if the default for a particular setting doesn't-work for you.--You'll find an example file next to `invokeai.yaml` that shows the default values.--Some settings, like [Model Marketplace API Keys], require the YAML-to be formatted correctly. Here is a [basic guide to YAML files].--#### Custom Config File Location--You can use any config file with the `--config` CLI arg. Pass in the path to the `invokeai.yaml` file you want to use.--Note that environment variables will trump any settings in the config file.--### Environment Variables--All settings may be set via environment variables by prefixing `INVOKEAI_`-to the variable name. For example, `INVOKEAI_HOST` would set the `host`-setting.--For non-primitive values, pass a JSON-encoded string:--```sh-export INVOKEAI_REMOTE_API_TOKENS='[{"url_regex":"modelmarketplace", "token": "12345"}]'-```--We suggest using `invokeai.yaml`, as it is more user-friendly.--### CLI Args--A subset of settings may be specified using CLI args:--- `--root`: specify the root directory-- `--config`: override the default `invokeai.yaml` file location--### Low-VRAM Mode--See the [Low-VRAM mode docs][low-vram] for details on enabling this feature.--### All Settings--Following the table are additional explanations for certain settings.--<!-- prettier-ignore-start -->-::: invokeai.app.services.config.config_default.InvokeAIAppConfig- options:- show_root_heading: false- members: false- show_docstring_description: false- show_category_heading: false-<!-- prettier-ignore-end -->--#### Model Marketplace API Keys--Some model marketplaces require an API key to download models. You can provide a URL pattern and appropriate token in your `invokeai.yaml` file to provide that API key.--The pattern can be any valid regex (you may need to surround the pattern with quotes):--```yaml-remote_api_tokens:- # Any URL containing `models.com` will automatically use `your_models_com_token`- - url_regex: models.com- token: your_models_com_token- # Any URL matching this contrived regex will use `some_other_token`- - url_regex: '^[a-z]{3}whatever.*\.com$'- token: some_other_token-```--The provided token will be added as a `Bearer` token to the network requests to download the model files. As far as we know, this works for all model marketplaces that require authorization.--!!! tip "HuggingFace Models"-- If you get an error when installing a HF model using a URL instead of repo id, you may need to [set up a HF API token](https://huggingface.co/settings/tokens) and add an entry for it under `remote_api_tokens`. Use `huggingface.co` for `url_regex`.--#### Model Hashing--Models are hashed during installation, providing a stable identifier for models across all platforms. Hashing is a one-time operation.--```yaml-hashing_algorithm: blake3_single # default value-```--You might want to change this setting, depending on your system:--- `blake3_single` (default): Single-threaded - best for spinning HDDs, still OK for SSDs-- `blake3_multi`: Parallelized, memory-mapped implementation - best for SSDs, terrible for spinning disks-- `random`: Skip hashing entirely - fastest but of course no hash--During the first startup after upgrading to v4, all of your models will be hashed. This can take a few minutes.--Most common algorithms are supported, like `md5`, `sha256`, and `sha512`. These are typically much, much slower than either of the BLAKE3 variants.--#### Path Settings--These options set the paths of various directories and files used by InvokeAI. Any user-defined paths should be absolute paths.--#### Image Subfolder Strategy--By default, all generated images are stored in a single flat directory (`outputs/images/`). This can become unwieldy with a large number of images. The `image_subfolder_strategy` setting lets you organize images into subfolders automatically.--```yaml-image_subfolder_strategy: flat # default value-```--Available strategies:--| Strategy | Example Path | Description |-|----------|-------------|-------------|-| `flat` | `outputs/images/abc123.png` | **Default.** All images in one directory (current behavior). |-| `date` | `outputs/images/2026/03/17/abc123.png` | Organized by creation date (YYYY/MM/DD). |-| `type` | `outputs/images/general/abc123.png` | Organized by image category (`general`, `intermediate`, `mask`, `control`, etc.). |-| `hash` | `outputs/images/ab/abc123.png` | Uses first 2 characters of the UUID as subfolder. Best for filesystem performance with very large collections (~256 evenly distributed subfolders). |--!!! tip "Switching Strategies"-- You can switch between strategies at any time. Existing images remain in their original location — only newly generated images will use the new subfolder structure. This works because each image's subfolder path is stored in the database.--!!! example "Example: Using date-based organization"-- ```yaml- image_subfolder_strategy: date- ```-- New images will be saved as `outputs/images/2026/03/17/abc123.png`. Thumbnails mirror the same structure under `outputs/images/thumbnails/2026/03/17/abc123.webp`.--#### Logging--Several different log handler destinations are available, and multiple destinations are supported by providing a list:--```yaml-log_handlers:- - console- - syslog=localhost- - file=/var/log/invokeai.log-```--- `console` is the default. It prints log messages to the command-line window from which InvokeAI was launched.--- `syslog` is only available on Linux and Macintosh systems. It uses- the operating system's "syslog" facility to write log file entries- locally or to a remote logging machine. `syslog` offers a variety- of configuration options:--```yaml-syslog=/dev/log` - log to the /dev/log device-syslog=localhost` - log to the network logger running on the local machine-syslog=localhost:512` - same as above, but using a non-standard port-syslog=fredserver,facility=LOG_USER,socktype=SOCK_DRAM`-- Log to LAN-connected server "fredserver" using the facility LOG_USER and datagram packets.-```--- `http` can be used to log to a remote web server. The server must be- properly configured to receive and act on log messages. The option- accepts the URL to the web server, and a `method` argument- indicating whether the message should be submitted using the GET or- POST method.--```yaml-http=http://my.server/path/to/logger,method=POST-```--The `log_format` option provides several alternative formats:--- `color` - default format providing time, date and a message, using text colors to distinguish different log severities-- `plain` - same as above, but monochrome text only-- `syslog` - the log level and error message only, allowing the syslog system to attach the time and date-- `legacy` - a format similar to the one used by the legacy 2.3 InvokeAI releases.--[basic guide to yaml files]: https://circleci.com/blog/what-is-yaml-a-beginner-s-guide/-[Model Marketplace API Keys]: #model-marketplace-api-keys-[low-vram]: ./features/low-vram.mddiff --git a/docs-old/contributing/ARCHITECTURE.md b/docs-old/contributing/ARCHITECTURE.mddeleted file mode 100644index f8d2e30166..0000000000--- a/docs-old/contributing/ARCHITECTURE.md+++ /dev/null@@ -1,93 +0,0 @@-# Invoke.AI Architecture--```mermaid-flowchart TB-- subgraph apps[Applications]- webui[WebUI]- cli[CLI]-- subgraph webapi[Web API]- api[HTTP API]- sio[Socket.IO]- end-- end-- subgraph invoke[Invoke]- direction LR- invoker- services- sessions- invocations- end-- subgraph core[AI Core]- Generate- end-- webui --> webapi- webapi --> invoke- cli --> invoke-- invoker --> services & sessions- invocations --> services- sessions --> invocations-- services --> core-- %% Styles- classDef sg fill:#5028C8,font-weight:bold,stroke-width:2,color:#fff,stroke:#14141A- classDef default stroke-width:2px,stroke:#F6B314,color:#fff,fill:#14141A-- class apps,webapi,invoke,core sg--```--## Applications--Applications are built on top of the invoke framework. They should construct `invoker` and then interact through it. They should avoid interacting directly with core code in order to support a variety of configurations.--### Web UI--The Web UI is built on top of an HTTP API built with [FastAPI](https://fastapi.tiangolo.com/) and [Socket.IO](https://socket.io/). The frontend code is found in `/invokeai/frontend` and the backend code is found in `/invokeai/app/api_app.py` and `/invokeai/app/api/`. The code is further organized as such:--| Component | Description |-| --- | --- |-| api_app.py | Sets up the API app, annotates the OpenAPI spec with additional data, and runs the API |-| dependencies | Creates all invoker services and the invoker, and provides them to the API |-| events | An eventing system that could in the future be adapted to support horizontal scale-out |-| sockets | The Socket.IO interface - handles listening to and emitting session events (events are defined in the events service module) |-| routers | API definitions for different areas of API functionality |--### CLI--The CLI is built automatically from invocation metadata, and also supports invocation piping and auto-linking. Code is available in `/invokeai/frontend/cli`.--## Invoke--The Invoke framework provides the interface to the underlying AI systems and is built with flexibility and extensibility in mind. There are four major concepts: invoker, sessions, invocations, and services.--### Invoker--The invoker (`/invokeai/app/services/invoker.py`) is the primary interface through which applications interact with the framework. Its primary purpose is to create, manage, and invoke sessions. It also maintains two sets of services:-- **invocation services**, which are used by invocations to interact with core functionality.-- **invoker services**, which are used by the invoker to manage sessions and manage the invocation queue.--### Sessions--Invocations and links between them form a graph, which is maintained in a session. Sessions can be queued for invocation, which will execute their graph (either the next ready invocation, or all invocations). Sessions also maintain execution history for the graph (including storage of any outputs). An invocation may be added to a session at any time, and there is capability to add and entire graph at once, as well as to automatically link new invocations to previous invocations. Invocations can not be deleted or modified once added.--The session graph does not support looping. This is left as an application problem to prevent additional complexity in the graph.--### Invocations--Invocations represent individual units of execution, with inputs and outputs. All invocations are located in `/invokeai/app/invocations`, and are all automatically discovered and made available in the applications. These are the primary way to expose new functionality in Invoke.AI, and the [implementation guide](INVOCATIONS.md) explains how to add new invocations.--### Services--Services provide invocations access AI Core functionality and other necessary functionality (e.g. image storage). These are available in `/invokeai/app/services`. As a general rule, new services should provide an interface as an abstract base class, and may provide a lightweight local implementation by default in their module. The goal for all services should be to enable the usage of different implementations (e.g. using cloud storage for image storage), but should not load any module dependencies unless that implementation has been used (i.e. don't import anything that won't be used, especially if it's expensive to import).--## AI Core--The AI Core is represented by the rest of the code base (i.e. the code outside of `/invokeai/app/`).diff --git a/docs-old/contributing/CANVAS_PROJECTS/CANVAS_PROJECTS.md b/docs-old/contributing/CANVAS_PROJECTS/CANVAS_PROJECTS.mddeleted file mode 100644index a05ef29492..0000000000--- a/docs-old/contributing/CANVAS_PROJECTS/CANVAS_PROJECTS.md+++ /dev/null@@ -1,205 +0,0 @@-# Canvas Projects — Technical Documentation--## Overview--Canvas Projects provide a save/load mechanism for the entire canvas state. The feature serializes all canvas entities, generation parameters, reference images, and their associated image files into a ZIP-based `.invk` file. On load, it restores the full state, handling image deduplication and re-uploading as needed.--## File Format--The `.invk` file is a standard ZIP archive with the following structure:--```-project.invk-├── manifest.json-├── canvas_state.json-├── params.json-├── ref_images.json-├── loras.json-└── images/- ├── {image_name_1}.png- ├── {image_name_2}.png- └── ...-```--### manifest.json--Schema version and metadata. Validated on load with Zod.--```json-{- "version": 1,- "appVersion": "5.12.0",- "createdAt": "2026-02-26T12:00:00.000Z",- "name": "My Canvas Project"-}-```--| Field | Type | Description |-|---|---|---|-| `version` | `number` | Schema version, currently `1`. Used for migration logic on load. |-| `appVersion` | `string` | InvokeAI version that created the file. Informational only. |-| `createdAt` | `string` | ISO 8601 timestamp. |-| `name` | `string` | User-provided project name. Also used as the download filename. |--### canvas_state.json--The serialized canvas entity tree. Type: `CanvasProjectState`.--```typescript-type CanvasProjectState = {- rasterLayers: CanvasRasterLayerState[];- controlLayers: CanvasControlLayerState[];- inpaintMasks: CanvasInpaintMaskState[];- regionalGuidance: CanvasRegionalGuidanceState[];- bbox: CanvasState['bbox'];- selectedEntityIdentifier: CanvasState['selectedEntityIdentifier'];- bookmarkedEntityIdentifier: CanvasState['bookmarkedEntityIdentifier'];-};-```--Each entity contains its full state including all canvas objects (brush lines, eraser lines, rect shapes, images). Image objects reference files by `image_name` which correspond to files in the `images/` folder.--### params.json--The complete generation parameters state (`ParamsState`). Optional on load (older files may not have it). This includes all fields from the params Redux slice:--- Prompts (positive, negative, prompt history)-- Core generation settings (seed, steps, CFG scale, guidance, scheduler, iterations)-- Model selections (main model, VAE, FLUX VAE, T5 encoder, CLIP embed models, refiner, Z-Image models, Klein models)-- Dimensions (width, height, aspect ratio)-- Img2img strength-- Infill settings (method, tile size, patchmatch downscale, color)-- Canvas coherence settings (mode, edge size, min denoise)-- Refiner parameters (steps, CFG scale, scheduler, aesthetic scores, start)-- FLUX-specific settings (scheduler, DyPE preset/scale/exponent)-- Z-Image-specific settings (scheduler, seed variance)-- Upscale settings (scheduler, CFG scale)-- Seamless tiling, mask blur, CLIP skip, VAE precision, CPU noise, color compensation--### ref_images.json--Global reference image entities (`RefImageState[]`). These are IP-Adapter / FLUX Redux configs with `CroppableImageWithDims` containing both original and cropped image references. Optional on load.--### loras.json--Array of LoRA configurations (`LoRA[]`). Each entry contains:--```typescript-type LoRA = {- id: string;- isEnabled: boolean;- model: ModelIdentifierField;- weight: number;-};-```--Optional on load. Like models, LoRA identifiers are stored as-is — if a LoRA is not installed when loading, the entry is restored but may not be usable.--### images/--All image files referenced anywhere in the state. Keyed by their original `image_name`. On save, each image is fetched from the backend via `GET /api/v1/images/i/{name}/full` and stored as-is.--## Key Source Files--| File | Purpose |-|---|---|-| `features/controlLayers/util/canvasProjectFile.ts` | Types, constants, image name collection, remapping, existence checking |-| `features/controlLayers/hooks/useCanvasProjectSave.ts` | Save hook — collects Redux state, fetches images, builds ZIP |-| `features/controlLayers/hooks/useCanvasProjectLoad.ts` | Load hook — parses ZIP, deduplicates images, dispatches state |-| `features/controlLayers/components/SaveCanvasProjectDialog.tsx` | Save name dialog + `useSaveCanvasProjectWithDialog` hook |-| `features/controlLayers/components/LoadCanvasProjectConfirmationAlertDialog.tsx` | Load confirmation dialog + `useLoadCanvasProjectWithDialog` hook |-| `features/controlLayers/components/Toolbar/CanvasToolbarProjectMenuButton.tsx` | Toolbar dropdown UI |-| `features/controlLayers/store/canvasSlice.ts` | `canvasProjectRecalled` Redux action |--## Save Flow--1. User clicks "Save Canvas Project" → `SaveCanvasProjectDialog` opens asking for a project name-2. On confirm, `saveCanvasProject(name)` is called-3. Read Redux state via selectors: `selectCanvasSlice()`, `selectParamsSlice()`, `selectRefImagesSlice()`, `selectLoRAsSlice()`-4. Build `CanvasProjectState` from the canvas slice; use `paramsState` directly for params-5. Walk all entities to collect every `image_name` reference via `collectImageNames()`:- - `CanvasImageState.image.image_name` in layer/mask objects- - `CroppableImageWithDims.original.image.image_name` in global ref images- - `CroppableImageWithDims.crop.image.image_name` in cropped ref images- - `ImageWithDims.image_name` in regional guidance ref images-6. Fetch each image from the backend API-7. Build ZIP with JSZip: add `manifest.json` (including `name`), `canvas_state.json`, `params.json`, `ref_images.json`, and all images into `images/`-8. Sanitize the name for filesystem use and generate blob, trigger download as `{name}.invk`--## Load Flow--1. User selects `.invk` file → confirmation dialog opens-2. On confirm, parse ZIP with JSZip-3. Validate manifest version via Zod schema-4. Read `canvas_state.json`, `params.json` (optional), `ref_images.json` (optional)-5. Collect all `image_name` references from the loaded state-6. **Deduplicate images**: for each referenced image, check if it exists on the server via `getImageDTOSafe(image_name)`- - Already exists → skip (no upload)- - Missing → upload from ZIP via `uploadImage()`, record `oldName → newName` mapping-7. Remap all `image_name` values in the loaded state using the mapping (only for re-uploaded images whose names changed)-8. Dispatch Redux actions:- - `canvasProjectRecalled()` — restores all canvas entities, bbox, selected/bookmarked entity- - `refImagesRecalled()` — restores global reference images- - `paramsRecalled()` — replaces the entire params state in one action- - `loraAllDeleted()` + `loraRecalled()` — restores LoRAs-9. Show success/error toast--## Image Name Collection & Remapping--The `canvasProjectFile.ts` utility provides two parallel sets of functions:--**Collection** (`collectImageNames`): Walks the entire state tree and returns a `Set<string>` of all referenced `image_name` values. This is used by both save (to know which images to fetch) and load (to know which images to check/upload).--**Remapping** (`remapCanvasState`, `remapRefImages`): Deep-clones state objects and replaces `image_name` values using a `Map<string, string>` mapping. Only images that were re-uploaded with a different name are remapped. Images that already existed on the server are left unchanged.--Both walk the same paths through the state tree:-- Layer/mask objects → `CanvasImageState.image.image_name`-- Regional guidance ref images → `ImageWithDims.image_name`-- Global ref images → `CroppableImageWithDims.original.image.image_name` and `.crop.image.image_name`--## Extending the Format--### Adding new optional data (non-breaking)--Add a new JSON file to the ZIP. No version bump needed.--1. **Save**: Add `zip.file('new_data.json', JSON.stringify(data))` in `useCanvasProjectSave.ts`-2. **Load**: Read with `zip.file('new_data.json')` in `useCanvasProjectLoad.ts` — check for `null` so older project files without it still load-3. **Dispatch**: Add the appropriate Redux action to restore the data--### Adding new entity types with images--1. Extend `CanvasProjectState` type in `canvasProjectFile.ts`-2. Add collection logic in `collectImageNames()` to walk the new entity's objects-3. Add remapping logic in `remapCanvasState()` to update image names-4. Include the new entity array in both save and load hooks-5. Handle it in the `canvasProjectRecalled` reducer in `canvasSlice.ts`--### Breaking schema changes--1. Bump `CANVAS_PROJECT_VERSION` in `canvasProjectFile.ts`-2. Update the Zod manifest schema: `version: z.union([z.literal(1), z.literal(2)])`-3. Add migration logic in the load hook: check version, transform v1 → v2 before dispatching--## UI Architecture--### Save dialog--The save flow uses a **nanostore atom** (`$isOpen`) to control the `SaveCanvasProjectDialog`:--1. `useSaveCanvasProjectWithDialog()` — returns a callback that sets `$isOpen` to `true`-2. `SaveCanvasProjectDialog` (singleton in `GlobalModalIsolator`) — renders an `AlertDialog` with a name input-3. On save → calls `saveCanvasProject(name)` and closes the dialog-4. On cancel → closes the dialog--### Load dialog--The load flow uses a **nanostore atom** (`$pendingFile`) to decouple the file dialog from the confirmation dialog:--1. `useLoadCanvasProjectWithDialog()` — opens a programmatic file input (`document.createElement('input')`)-2. On file selection → sets `$pendingFile` atom-3. `LoadCanvasProjectConfirmationAlertDialog` (singleton in `GlobalModalIsolator`) — subscribes to `$pendingFile` via `useStore()`-4. On accept → calls `loadCanvasProject(file)` and clears the atom-5. On cancel → clears the atom--The programmatic file input approach was chosen because the context menu component uses `isLazy: true`, which unmounts the DOM tree when the menu closes — a hidden `<input>` element inside the menu would be destroyed before the file dialog returns.diff --git a/docs-old/contributing/DOWNLOAD_QUEUE.md b/docs-old/contributing/DOWNLOAD_QUEUE.mddeleted file mode 100644index 960180961e..0000000000--- a/docs-old/contributing/DOWNLOAD_QUEUE.md+++ /dev/null@@ -1,334 +0,0 @@-# The InvokeAI Download Queue--The DownloadQueueService provides a multithreaded parallel download-queue for arbitrary URLs, with queue prioritization, event handling,-and restart capabilities.--## Simple Example--```-from invokeai.app.services.download import DownloadQueueService, TqdmProgress--download_queue = DownloadQueueService()-for url in ['https://github.com/invoke-ai/InvokeAI/blob/main/invokeai/assets/a-painting-of-a-fire.png?raw=true',- 'https://github.com/invoke-ai/InvokeAI/blob/main/invokeai/assets/birdhouse.png?raw=true',- 'https://github.com/invoke-ai/InvokeAI/blob/main/invokeai/assets/missing.png',- 'https://civitai.com/api/download/models/152309?type=Model&format=SafeTensor',- ]:-- # urls start downloading as soon as download() is called- download_queue.download(source=url,- dest='/tmp/downloads',- on_progress=TqdmProgress().update- )--download_queue.join() # wait for all downloads to finish-for job in download_queue.list_jobs():- print(job.model_dump_json(exclude_none=True, indent=4),"\n")-```--Output:--```-{- "source": "https://github.com/invoke-ai/InvokeAI/blob/main/invokeai/assets/a-painting-of-a-fire.png?raw=true",- "dest": "/tmp/downloads",- "id": 0,- "priority": 10,- "status": "completed",- "download_path": "/tmp/downloads/a-painting-of-a-fire.png",- "job_started": "2023-12-04T05:34:41.742174",- "job_ended": "2023-12-04T05:34:42.592035",- "bytes": 666734,- "total_bytes": 666734-}--{- "source": "https://github.com/invoke-ai/InvokeAI/blob/main/invokeai/assets/birdhouse.png?raw=true",- "dest": "/tmp/downloads",- "id": 1,- "priority": 10,- "status": "completed",- "download_path": "/tmp/downloads/birdhouse.png",- "job_started": "2023-12-04T05:34:41.741975",- "job_ended": "2023-12-04T05:34:42.652841",- "bytes": 774949,- "total_bytes": 774949-}--{- "source": "https://github.com/invoke-ai/InvokeAI/blob/main/invokeai/assets/missing.png",- "dest": "/tmp/downloads",- "id": 2,- "priority": 10,- "status": "error",- "job_started": "2023-12-04T05:34:41.742079",- "job_ended": "2023-12-04T05:34:42.147625",- "bytes": 0,- "total_bytes": 0,- "error_type": "HTTPError(Not Found)",- "error": "Traceback (most recent call last):\n File \"/home/lstein/Projects/InvokeAI/invokeai/app/services/download/download_default.py\", line 182, in _download_next_item\n self._do_download(job)\n File \"/home/lstein/Projects/InvokeAI/invokeai/app/services/download/download_default.py\", line 206, in _do_download\n raise HTTPError(resp.reason)\nrequests.exceptions.HTTPError: Not Found\n"-}--{- "source": "https://civitai.com/api/download/models/152309?type=Model&format=SafeTensor",- "dest": "/tmp/downloads",- "id": 3,- "priority": 10,- "status": "completed",- "download_path": "/tmp/downloads/xl_more_art-full_v1.safetensors",- "job_started": "2023-12-04T05:34:42.147645",- "job_ended": "2023-12-04T05:34:43.735990",- "bytes": 719020768,- "total_bytes": 719020768-}-```--## The API--The default download queue is `DownloadQueueService`, an-implementation of ABC `DownloadQueueServiceBase`. It juggles multiple-background download requests and provides facilities for interrogating-and cancelling the requests. Access to a current or past download task-is mediated via `DownloadJob` objects which report the current status-of a job request--### The Queue Object--A default download queue is located in-`ApiDependencies.invoker.services.download_queue`. However, you can-create additional instances if you need to isolate your queue from the-main one.--```-queue = DownloadQueueService(event_bus=events)-```--`DownloadQueueService()` takes three optional arguments:--| **Argument** | **Type** | **Default** | **Description** |-|----------------|-----------------|---------------|-----------------|-| `max_parallel_dl` | int | 5 | Maximum number of simultaneous downloads allowed |-| `event_bus` | EventServiceBase | None | System-wide FastAPI event bus for reporting download events |-| `requests_session` | requests.sessions.Session | None | An alternative requests Session object to use for the download |--`max_parallel_dl` specifies how many download jobs are allowed to run-simultaneously. Each will run in a different thread of execution.--`event_bus` is an EventServiceBase, typically the one created at-InvokeAI startup. If present, download events are periodically emitted-on this bus to allow clients to follow download progress.--`requests_session` is a url library requests Session object. It is-used for testing.--### The Job object--The queue operates on a series of download job objects. These objects-specify the source and destination of the download, and keep track of-the progress of the download.--Two job types are defined. `DownloadJob` and-`MultiFileDownloadJob`. The former is a pydantic object with the-following fields:--| **Field** | **Type** | **Default** | **Description** |-|----------------|-----------------|---------------|-----------------|-| _Fields passed in at job creation time_ |-| `source` | AnyHttpUrl | | Where to download from |-| `dest` | Path | | Where to download to |-| `access_token` | str | | [optional] string containing authentication token for access |-| `on_start` | Callable | | [optional] callback when the download starts |-| `on_progress` | Callable | | [optional] callback called at intervals during download progress |-| `on_complete` | Callable | | [optional] callback called after successful download completion |-| `on_error` | Callable | | [optional] callback called after an error occurs |-| `id` | int | auto assigned | Job ID, an integer >= 0 |-| `priority` | int | 10 | Job priority. Lower priorities run before higher priorities |-| |-| _Fields updated over the course of the download task_-| `status` | DownloadJobStatus| | Status code |-| `download_path` | Path | | Path to the location of the downloaded file |-| `job_started` | float | | Timestamp for when the job started running |-| `job_ended` | float | | Timestamp for when the job completed or errored out |-| `job_sequence` | int | | A counter that is incremented each time a model is dequeued |-| `bytes` | int | 0 | Bytes downloaded so far |-| `total_bytes` | int | 0 | Total size of the file at the remote site |-| `error_type` | str | | String version of the exception that caused an error during download |-| `error` | str | | String version of the traceback associated with an error |-| `cancelled` | bool | False | Set to true if the job was cancelled by the caller|--When you create a job, you can assign it a `priority`. If multiple-jobs are queued, the job with the lowest priority runs first.--Every job has a `source` and a `dest`. `source` is a pydantic.networks AnyHttpUrl object.-The `dest` is a path on the local filesystem that specifies the-destination for the downloaded object. Its semantics are-described below.--When the job is submitted, it is assigned a numeric `id`. The id can-then be used to fetch the job object from the queue.--The `status` field is updated by the queue to indicate where the job-is in its lifecycle. Values are defined in the string enum-`DownloadJobStatus`, a symbol available from-`invokeai.app.services.download_manager`. Possible values are:--| **Value** | **String Value** | ** Description ** |-|--------------|---------------------|-------------------|-| `WAITING` | waiting | Job is on the queue but not yet running|-| `RUNNING` | running | The download is started |-| `COMPLETED` | completed | Job has finished its work without an error |-| `ERROR` | error | Job encountered an error and will not run again|--`job_started` and `job_ended` indicate when the job-was started (using a python timestamp) and when it completed.--In case of an error, the job's status will be set to `DownloadJobStatus.ERROR`, the text of the-Exception that caused the error will be placed in the `error_type`-field and the traceback that led to the error will be in `error`.--A cancelled job will have status `DownloadJobStatus.ERROR` and an-`error_type` field of "DownloadJobCancelledException". In addition,-the job's `cancelled` property will be set to True.--The `MultiFileDownloadJob` is used for diffusers model downloads,-which contain multiple files and directories under a common root:--| **Field** | **Type** | **Default** | **Description** |-|----------------|-----------------|---------------|-----------------|-| _Fields passed in at job creation time_ |-| `download_parts` | Set[DownloadJob]| | Component download jobs |-| `dest` | Path | | Where to download to |-| `on_start` | Callable | | [optional] callback when the download starts |-| `on_progress` | Callable | | [optional] callback called at intervals during download progress |-| `on_complete` | Callable | | [optional] callback called after successful download completion |-| `on_error` | Callable | | [optional] callback called after an error occurs |-| `id` | int | auto assigned | Job ID, an integer >= 0 |-| _Fields updated over the course of the download task_-| `status` | DownloadJobStatus| | Status code |-| `download_path` | Path | | Path to the root of the downloaded files |-| `bytes` | int | 0 | Bytes downloaded so far |-| `total_bytes` | int | 0 | Total size of the file at the remote site |-| `error_type` | str | | String version of the exception that caused an error during download |-| `error` | str | | String version of the traceback associated with an error |-| `cancelled` | bool | False | Set to true if the job was cancelled by the caller|--Note that the MultiFileDownloadJob does not support the `priority`,-`job_started`, `job_ended` or `content_type` attributes. You can get-these from the individual download jobs in `download_parts`.---### Callbacks--Download jobs can be associated with a series of callbacks, each with-the signature `Callable[["DownloadJob"], None]`. The callbacks are assigned-using optional arguments `on_start`, `on_progress`, `on_complete` and-`on_error`. When the corresponding event occurs, the callback wil be-invoked and passed the job. The callback will be run in a `try:`-context in the same thread as the download job. Any exceptions that-occur during execution of the callback will be caught and converted-into a log error message, thereby allowing the download to continue.--#### `TqdmProgress`--The `invokeai.app.services.download.download_default` module defines a-class named `TqdmProgress` which can be used as an `on_progress`-handler to display a completion bar in the console. Use as follows:--```-from invokeai.app.services.download import TqdmProgress--download_queue.download(source='http://some.server.somewhere/some_file',- dest='/tmp/downloads',- on_progress=TqdmProgress().update- )--```--### Events--If the queue was initialized with the InvokeAI event bus (the case-when using `ApiDependencies.invoker.services.download_queue`), then-download events will also be issued on the bus. The events are:--* `download_started` -- This is issued when a job is taken off the-queue and a request is made to the remote server for the URL headers, but before any data-has been downloaded. The event payload will contain the keys `source`-and `download_path`. The latter contains the path that the URL will be-downloaded to.--* `download_progress -- This is issued periodically as the download-runs. The payload contains the keys `source`, `download_path`,-`current_bytes` and `total_bytes`. The latter two fields can be-used to display the percent complete.--* `download_complete` -- This is issued when the download completes-successfully. The payload contains the keys `source`, `download_path`-and `total_bytes`.--* `download_error` -- This is issued when the download stops because-of an error condition. The payload contains the fields `error_type`-and `error`. The former is the text representation of the exception,-and the latter is a traceback showing where the error occurred.--### Job control--To create a job call the queue's `download()` method. You can list all-jobs using `list_jobs()`, fetch a single job by its with-`id_to_job()`, cancel a running job with `cancel_job()`, cancel all-running jobs with `cancel_all_jobs()`, and wait for all jobs to finish-with `join()`.--#### job = queue.download(source, dest, priority, access_token, on_start, on_progress, on_complete, on_cancelled, on_error)--Create a new download job and put it on the queue, returning the-DownloadJob object.--#### multifile_job = queue.multifile_download(parts, dest, access_token, on_start, on_progress, on_complete, on_cancelled, on_error)--This is similar to download(), but instead of taking a single source,-it accepts a `parts` argument consisting of a list of-`RemoteModelFile` objects. Each part corresponds to a URL/Path pair,-where the URL is the location of the remote file, and the Path is the-destination.--`RemoteModelFile` can be imported from `invokeai.backend.model_manager.metadata`, and-consists of a url/path pair. Note that the path *must* be relative.--The method returns a `MultiFileDownloadJob`.---```-from invokeai.backend.model_manager.metadata import RemoteModelFile-remote_file_1 = RemoteModelFile(url='http://www.foo.bar/my/pytorch_model.safetensors'',- path='my_model/textencoder/pytorch_model.safetensors'- )-remote_file_2 = RemoteModelFile(url='http://www.bar.baz/vae.ckpt',- path='my_model/vae/diffusers_model.safetensors'- )-job = queue.multifile_download(parts=[remote_file_1, remote_file_2],- dest='/tmp/downloads',- on_progress=TqdmProgress().update)-queue.wait_for_job(job)-print(f"The files were downloaded to {job.download_path}")-```--#### jobs = queue.list_jobs()--Return a list of all active and inactive `DownloadJob`s.--#### job = queue.id_to_job(id)--Return the job corresponding to given ID.--Return a list of all active and inactive `DownloadJob`s.--#### queue.prune_jobs()--Remove inactive (complete or errored) jobs from the listing returned-by `list_jobs()`.--#### queue.join()--Block until all pending jobs have run to completion or errored out.-diff --git a/docs-old/contributing/HOTKEYS.md b/docs-old/contributing/HOTKEYS.mddeleted file mode 100644index fac13976b1..0000000000--- a/docs-old/contributing/HOTKEYS.md+++ /dev/null@@ -1,295 +0,0 @@-# Hotkeys System--This document describes the technical implementation of the customizable hotkeys system in InvokeAI.--> **Note:** For user-facing documentation on how to use customizable hotkeys, see [Hotkeys Feature Documentation](../features/hotkeys.md).--## Overview--The hotkeys system allows users to customize keyboard shortcuts throughout the application. All hotkeys are:-- Centrally defined and managed-- Customizable by users-- Persisted across sessions-- Type-safe and validated--## Architecture--The customizable hotkeys feature is built on top of the existing hotkey system with the following components:--### 1. Hotkeys State Slice (`hotkeysSlice.ts`)--Location: `invokeai/frontend/web/src/features/system/store/hotkeysSlice.ts`--**Responsibilities:**-- Stores custom hotkey mappings in Redux state-- Persisted to IndexedDB using `redux-remember`-- Provides actions to change, reset individual, or reset all hotkeys--**State Shape:**-```typescript-{- _version: 1,- customHotkeys: {- 'app.invoke': ['mod+enter'],- 'canvas.undo': ['mod+z'],- // ...- }-}-```--**Actions:**-- `hotkeyChanged(id, hotkeys)` - Update a single hotkey-- `hotkeyReset(id)` - Reset a single hotkey to default-- `allHotkeysReset()` - Reset all hotkeys to defaults--### 2. useHotkeyData Hook (`useHotkeyData.ts`)--Location: `invokeai/frontend/web/src/features/system/components/HotkeysModal/useHotkeyData.ts`--**Responsibilities:**-- Defines all default hotkeys-- Merges default hotkeys with custom hotkeys from the store-- Returns the effective hotkeys that should be used throughout the app-- Provides platform-specific key translations (Ctrl/Cmd, Alt/Option)--**Key Functions:**-- `useHotkeyData()` - Returns all hotkeys organized by category-- `useRegisteredHotkeys()` - Hook to register a hotkey in a component--### 3. HotkeyEditor Component (`HotkeyEditor.tsx`)--Location: `invokeai/frontend/web/src/features/system/components/HotkeysModal/HotkeyEditor.tsx`--**Features:**-- Inline editor with input field-- Modifier buttons (Mod, Ctrl, Shift, Alt) for quick insertion-- Live preview of hotkey combinations-- Validation with visual feedback-- Help tooltip with syntax examples-- Save/cancel/reset buttons--**Smart Features:**-- Automatic `+` insertion between modifiers-- Cursor position preservation-- Validation prevents invalid combinations (e.g., modifier-only keys)--### 4. HotkeysModal Component (`HotkeysModal.tsx`)--Location: `invokeai/frontend/web/src/features/system/components/HotkeysModal/HotkeysModal.tsx`--**Features:**-- View Mode / Edit Mode toggle-- Search functionality-- Category-based organization-- Shows HotkeyEditor components when in edit mode-- "Reset All to Default" button in edit mode--## Data Flow--```-┌─────────────────────────────────────────────────────────────┐-│ 1. User opens Hotkeys Modal │-│ 2. User clicks "Edit Mode" button │-│ 3. User clicks edit icon next to a hotkey │-│ 4. User enters new hotkey(s) using editor │-│ 5. User clicks save or presses Enter │-│ 6. Custom hotkey stored via hotkeyChanged() action │-│ 7. Redux state persisted to IndexedDB (redux-remember) │-│ 8. useHotkeyData() hook picks up the change │-│ 9. All components using useRegisteredHotkeys() get update │-└─────────────────────────────────────────────────────────────┘-```--## Hotkey Format--Hotkeys use the format from `react-hotkeys-hook` library:--- **Modifiers:** `mod`, `ctrl`, `shift`, `alt`, `meta`-- **Keys:** Letters, numbers, function keys, special keys-- **Separator:** `+` between keys in a combination-- **Multiple hotkeys:** Comma-separated (e.g., `mod+a, ctrl+b`)--**Examples:**-- `mod+enter` - Mod key + Enter-- `shift+x` - Shift + X-- `ctrl+shift+a` - Control + Shift + A-- `f1, f2` - F1 or F2 (alternatives)--## Developer Guide--### Using Hotkeys in Components--To use a hotkey in a component:--```tsx-import { useRegisteredHotkeys } from 'features/system/components/HotkeysModal/useHotkeyData';--const MyComponent = () => {- const handleAction = useCallback(() => {- // Your action here- }, []);-- // This automatically uses custom hotkeys if configured- useRegisteredHotkeys({- id: 'myAction',- category: 'app', // or 'canvas', 'viewer', 'gallery', 'workflows'- callback: handleAction,- options: { enabled: true, preventDefault: true },- dependencies: [handleAction]- });-- // ...-};-```--**Options:**-- `enabled` - Whether the hotkey is active-- `preventDefault` - Prevent default browser behavior-- `enableOnFormTags` - Allow hotkey in form elements (default: false)--### Adding New Hotkeys--To add a new hotkey to the system:--#### 1. Add Translation Strings--In `invokeai/frontend/web/public/locales/en.json`:--```json-{- "hotkeys": {- "app": {- "myAction": {- "title": "My Action",- "desc": "Description of what this hotkey does"- }- }- }-}-```--#### 2. Register the Hotkey--In `invokeai/frontend/web/src/features/system/components/HotkeysModal/useHotkeyData.ts`:--```typescript-// Inside the appropriate category builder function-addHotkey('app', 'myAction', ['mod+k']); // Default binding-```--#### 3. Use the Hotkey--In your component:--```typescript-useRegisteredHotkeys({- id: 'myAction',- category: 'app',- callback: handleMyAction,- options: { enabled: true },- dependencies: [handleMyAction]-});-```--### Hotkey Categories--Current categories:-- **app** - Global application hotkeys-- **canvas** - Canvas/drawing operations-- **viewer** - Image viewer operations-- **gallery** - Gallery/image grid operations-- **workflows** - Node workflow editor--To add a new category, update `useHotkeyData.ts` and add translations.--## Testing--Tests are located in `invokeai/frontend/web/src/features/system/store/hotkeysSlice.test.ts`.--**Test Coverage:**-- Adding custom hotkeys-- Updating existing custom hotkeys-- Resetting individual hotkeys-- Resetting all hotkeys-- State persistence and migration--Run tests with:--```bash-cd invokeai/frontend/web-pnpm test:no-watch-```--## Persistence--Custom hotkeys are persisted using the same mechanism as other app settings:--- Stored in Redux state under the `hotkeys` slice-- Persisted to IndexedDB via `redux-remember`-- Automatically loaded when the app starts-- Survives page refreshes and browser restarts-- Includes migration support for state schema changes--**State Location:**-- IndexedDB database: `invoke`-- Store key: `hotkeys`--## Dependencies--- **react-hotkeys-hook** (v4.5.0) - Core hotkey handling-- **@reduxjs/toolkit** - State management-- **redux-remember** - Persistence-- **zod** - State validation--## Best Practices--1. **Use `mod` instead of `ctrl`** - Automatically maps to Cmd on Mac, Ctrl elsewhere-2. **Provide descriptive translations** - Help users understand what each hotkey does-3. **Avoid conflicts** - Check existing hotkeys before adding new ones-4. **Use preventDefault** - Prevent browser default behavior when appropriate-5. **Check enabled state** - Only activate hotkeys when the action is available-6. **Use dependencies correctly** - Ensure callbacks are stable with useCallback--## Common Patterns--### Conditional Hotkeys--```typescript-useRegisteredHotkeys({- id: 'save',- category: 'app',- callback: handleSave,- options: {- enabled: hasUnsavedChanges && !isLoading, // Only when valid- preventDefault: true- },- dependencies: [hasUnsavedChanges, isLoading, handleSave]-});-```--### Multiple Hotkeys for Same Action--```typescript-// In useHotkeyData.ts-addHotkey('canvas', 'redo', ['mod+shift+z', 'mod+y']); // Two alternatives-```--### Focus-Scoped Hotkeys--```typescript-import { useFocusRegion } from 'common/hooks/focus';--const MyComponent = () => {- const focusRegionRef = useFocusRegion('myRegion');-- // Hotkey only works when this region has focus- useRegisteredHotkeys({- id: 'myAction',- category: 'app',- callback: handleAction,- options: { enabled: true }- });-- return <div ref={focusRegionRef}>...</div>;-};-```diff --git a/docs-old/contributing/INVOCATIONS.md b/docs-old/contributing/INVOCATIONS.mddeleted file mode 100644index 7fcea572a6..0000000000--- a/docs-old/contributing/INVOCATIONS.md+++ /dev/null@@ -1,423 +0,0 @@-# Nodes--Features in InvokeAI are added in the form of modular nodes systems called-**Invocations**.--An Invocation is simply a single operation that takes in some inputs and gives-out some outputs. We can then chain multiple Invocations together to create more-complex functionality.--## Invocations Directory--InvokeAI Nodes can be found in the `invokeai/app/invocations` directory. These-can be used as examples to create your own nodes.--New nodes should be added to a subfolder in `nodes` direction found at the root-level of the InvokeAI installation location. Nodes added to this folder will be-able to be used upon application startup.--Example `nodes` subfolder structure:--```py-├── __init__.py # Invoke-managed custom node loader-│-├── cool_node-│ ├── __init__.py # see example below-│ └── cool_node.py-│-└── my_node_pack- ├── __init__.py # see example below- ├── tasty_node.py- ├── bodacious_node.py- ├── utils.py- └── extra_nodes- └── fancy_node.py-```--Each node folder must have an `__init__.py` file that imports its nodes. Only-nodes imported in the `__init__.py` file are loaded. See the README in the nodes-folder for more examples:--```py-from .cool_node import ResizeInvocation-```--## Creating A New Invocation--In order to understand the process of creating a new Invocation, let us actually-create one.--In our example, let us create an Invocation that will take in an image, resize-it and output the resized image.--The first set of things we need to do when creating a new Invocation are ---- Create a new class that derives from a predefined parent class called- `BaseInvocation`.-- Every Invocation must have a `docstring` that describes what this Invocation- does.-- While not strictly required, we suggest every invocation class name ends in- "Invocation", eg "CropImageInvocation".-- Every Invocation must use the `@invocation` decorator to provide its unique- invocation type. You may also provide its title, tags and category using the- decorator.-- Invocations are strictly typed. We make use of the native- [typing](https://docs.python.org/3/library/typing.html) library and the- installed [pydantic](https://pydantic-docs.helpmanual.io/) library for- validation.--So let us do that.--```python-from invokeai.invocation_api import (- BaseInvocation,- invocation,-)--@invocation('resize')-class ResizeInvocation(BaseInvocation):- '''Resizes an image'''-```--That's great.--Now we have setup the base of our new Invocation. Let us think about what inputs-our Invocation takes.--- We need an `image` that we are going to resize.-- We will need new `width` and `height` values to which we need to resize the- image to.--### **Inputs**--Every Invocation input must be defined using the `InputField` function. This is-a wrapper around the pydantic `Field` function, which handles a few extra things-and provides type hints. Like everything else, this should be strictly typed and-defined.--So let us create these inputs for our Invocation. First up, the `image` input we-need. Generally, we can use standard variable types in Python but InvokeAI-already has a custom `ImageField` type that handles all the stuff that is needed-for image inputs.--But what is this `ImageField` ..? It is a special class type specifically-written to handle how images are dealt with in InvokeAI. We will cover how to-create your own custom field types later in this guide. For now, let's go ahead-and use it.--```python-from invokeai.invocation_api import (- BaseInvocation,- ImageField,- InputField,- invocation,-)--@invocation('resize')-class ResizeInvocation(BaseInvocation):-- # Inputs- image: ImageField = InputField(description="The input image")-```--Let us break down our input code.--```python-image: ImageField = InputField(description="The input image")-```--| Part | Value | Description |-| --------- | ------------------------------------------- | ------------------------------------------------------------------------------- |-| Name | `image` | The variable that will hold our image |-| Type Hint | `ImageField` | The types for our field. Indicates that the image must be an `ImageField` type. |-| Field | `InputField(description="The input image")` | The image variable is an `InputField` which needs a description. |--Great. Now let us create our other inputs for `width` and `height`--```python-from invokeai.invocation_api import (- BaseInvocation,- ImageField,- InputField,- invocation,-)--@invocation('resize')-class ResizeInvocation(BaseInvocation):- '''Resizes an image'''-- image: ImageField = InputField(description="The input image")- width: int = InputField(default=512, ge=64, le=2048, description="Width of the new image")- height: int = InputField(default=512, ge=64, le=2048, description="Height of the new image")-```--As you might have noticed, we added two new arguments to the `InputField`-definition for `width` and `height`, called `gt` and `le`. They stand for-_greater than or equal to_ and _less than or equal to_.--These impose constraints on those fields, and will raise an exception if the-values do not meet the constraints. Field constraints are provided by-**pydantic**, so anything you see in the **pydantic docs** will work.--**Note:** _Any time it is possible to define constraints for our field, we-should do it so the frontend has more information on how to parse this field._--Perfect. We now have our inputs. Let us do something with these.--### **Invoke Function**--The `invoke` function is where all the magic happens. This function provides you-the `context` parameter that is of the type `InvocationContext` which will give-you access to the current context of the generation and all the other services-that are provided by it by InvokeAI.--Let us create this function first.--```python-from invokeai.invocation_api import (- BaseInvocation,- ImageField,- InputField,- InvocationContext,- invocation,-)--@invocation('resize')-class ResizeInvocation(BaseInvocation):- '''Resizes an image'''-- image: ImageField = InputField(description="The input image")- width: int = InputField(default=512, ge=64, le=2048, description="Width of the new image")- height: int = InputField(default=512, ge=64, le=2048, description="Height of the new image")-- def invoke(self, context: InvocationContext):- pass-```--### **Outputs**--The output of our Invocation will be whatever is returned by this `invoke`-function. Like with our inputs, we need to strongly type and define our outputs-too.--What is our output going to be? Another image. Normally you'd have to create a-type for this but InvokeAI already offers you an `ImageOutput` type that handles-all the necessary info related to image outputs. So let us use that.--We will cover how to create your own output types later in this guide.--```python-from invokeai.invocation_api import (- BaseInvocation,- ImageField,- InputField,- InvocationContext,- invocation,-)--from invokeai.app.invocations.image import ImageOutput--@invocation('resize')-class ResizeInvocation(BaseInvocation):- '''Resizes an image'''-- image: ImageField = InputField(description="The input image")- width: int = InputField(default=512, ge=64, le=2048, description="Width of the new image")- height: int = InputField(default=512, ge=64, le=2048, description="Height of the new image")-- def invoke(self, context: InvocationContext) -> ImageOutput:- pass-```--Perfect. Now that we have our Invocation setup, let us do what we want to do.--- We will first load the image using one of the services provided by InvokeAI to- load the image.-- We will resize the image using `PIL` to our input data.-- We will output this image in the format we set above.--So let's do that.--```python-from invokeai.invocation_api import (- BaseInvocation,- ImageField,- InputField,- InvocationContext,- invocation,-)--from invokeai.app.invocations.image import ImageOutput--@invocation("resize")-class ResizeInvocation(BaseInvocation):- """Resizes an image"""-- image: ImageField = InputField(description="The input image")- width: int = InputField(default=512, ge=64, le=2048, description="Width of the new image")- height: int = InputField(default=512, ge=64, le=2048, description="Height of the new image")-- def invoke(self, context: InvocationContext) -> ImageOutput:- # Load the input image as a PIL image- image = context.images.get_pil(self.image.image_name)-- # Resize the image- resized_image = image.resize((self.width, self.height))-- # Save the image- image_dto = context.images.save(image=resized_image)-- # Return an ImageOutput- return ImageOutput.build(image_dto)-```--**Note:** Do not be overwhelmed by the `ImageOutput` process. InvokeAI has a-certain way that the images need to be dispatched in order to be stored and read-correctly. In 99% of the cases when dealing with an image output, you can simply-copy-paste the template above.--### Customization--We can use the `@invocation` decorator to provide some additional info to the-UI, like a custom title, tags and category.--We also encourage providing a version. This must be a-[semver](https://semver.org/) version string ("$MAJOR.$MINOR.$PATCH"). The UI-will let users know if their workflow is using a mismatched version of the node.--```python-@invocation("resize", title="My Resizer", tags=["resize", "image"], category="My Invocations", version="1.0.0")-class ResizeInvocation(BaseInvocation):- """Resizes an image"""-- image: ImageField = InputField(description="The input image")- ...-```--That's it. You made your own **Resize Invocation**.--## Result--Once you make your Invocation correctly, the rest of the process is fully-automated for you.--When you launch InvokeAI, you can go to `http://localhost:9090/docs` and see-your new Invocation show up there with all the relevant info.----When you launch the frontend UI, you can go to the Node Editor tab and find your-new Invocation ready to be used.----## Contributing Nodes--Once you've created a Node, the next step is to share it with the community! The-best way to do this is to submit a Pull Request to add the Node to the-[Community Nodes](../nodes/communityNodes.md) list. If you're not sure how to do that,-take a look a at our [contributing nodes overview](../nodes/contributingNodes.md).--## Advanced--### Custom Output Types--Like with custom inputs, sometimes you might find yourself needing custom-outputs that InvokeAI does not provide. We can easily set one up.--Now that you are familiar with Invocations and Inputs, let us use that knowledge-to create an output that has an `image` field, a `color` field and a `string`-field.--- An invocation output is a class that derives from the parent class of- `BaseInvocationOutput`.-- All invocation outputs must use the `@invocation_output` decorator to provide- their unique output type.-- Output fields must use the provided `OutputField` function. This is very- similar to the `InputField` function described earlier - it's a wrapper around- `pydantic`'s `Field()`.-- It is not mandatory but we recommend using names ending with `Output` for- output types.-- It is not mandatory but we highly recommend adding a `docstring` to describe- what your output type is for.--Now that we know the basic rules for creating a new output type, let us go ahead-and make it.--```python-from .baseinvocation import BaseInvocationOutput, OutputField, invocation_output-from .primitives import ImageField, ColorField--@invocation_output('image_color_string_output')-class ImageColorStringOutput(BaseInvocationOutput):- '''Base class for nodes that output a single image'''-- image: ImageField = OutputField(description="The image")- color: ColorField = OutputField(description="The color")- text: str = OutputField(description="The string")-```--That's all there is to it.--### Custom Input Fields--Now that you know how to create your own Invocations, let us dive into slightly-more advanced topics.--While creating your own Invocations, you might run into a scenario where the-existing fields in InvokeAI do not meet your requirements. In such cases, you-can create your own fields.--Let us create one as an example. Let us say we want to create a color input-field that represents a color code. But before we start on that here are some-general good practices to keep in mind.--### Best Practices--- There is no naming convention for input fields but we highly recommend that- you name it something appropriate like `ColorField`.-- It is not mandatory but it is heavily recommended to add a relevant- `docstring` to describe your field.-- Keep your field in the same file as the Invocation that it is made for or in- another file where it is relevant.--All input types a class that derive from the `BaseModel` type from `pydantic`.-So let's create one.--```python-from pydantic import BaseModel--class ColorField(BaseModel):- '''A field that holds the rgba values of a color'''- pass-```--Perfect. Now let us create the properties for our field. This is similar to how-you created input fields for your Invocation. All the same rules apply. Let us-create four fields representing the _red(r)_, _blue(b)_, _green(g)_ and-_alpha(a)_ channel of the color.--> Technically, the properties are _also_ called fields - but in this case, it-> refers to a `pydantic` field.--```python-class ColorField(BaseModel):- '''A field that holds the rgba values of a color'''- r: int = Field(ge=0, le=255, description="The red channel")- g: int = Field(ge=0, le=255, description="The green channel")- b: int = Field(ge=0, le=255, description="The blue channel")- a: int = Field(ge=0, le=255, description="The alpha channel")-```--That's it. We now have a new input field type that we can use in our Invocations-like this.--```python-color: ColorField = InputField(default=ColorField(r=0, g=0, b=0, a=0), description='Background color of an image')-```--### Using the custom field--When you start the UI, your custom field will be automatically recognized.--Custom fields only support connection inputs in the Workflow Editor.diff --git a/docs-old/contributing/LOCAL_DEVELOPMENT.md b/docs-old/contributing/LOCAL_DEVELOPMENT.mddeleted file mode 100644index 97d840186e..0000000000--- a/docs-old/contributing/LOCAL_DEVELOPMENT.md+++ /dev/null@@ -1,267 +0,0 @@-# Local Development--If you want to contribute, you will need to set up a [local development environment](./dev-environment.md).--## Documentation--We use [mkdocs](https://www.mkdocs.org) for our documentation with the [material theme](https://squidfunk.github.io/mkdocs-material/). Documentation is written in markdown files under the `./docs` folder and then built into a static website for hosting with GitHub Pages at [invoke-ai.github.io/InvokeAI](https://invoke-ai.github.io/InvokeAI).--To contribute to the documentation you'll need to install the dependencies. Note-the use of `"`.--```zsh-pip install ".[docs]"-```--Now, to run the documentation locally with hot-reloading for changes made.--```zsh-mkdocs serve-```--You'll then be prompted to connect to `http://127.0.0.1:8080` in order to-access.--## Backend--The backend is contained within the `./invokeai/backend` and `./invokeai/app` directories.-To get started please install the development dependencies.--From the root of the repository run the following command. Note the use of `"`.--```zsh-pip install ".[dev,test]"-```--These are optional groups of packages which are defined within the `pyproject.toml`-and will be required for testing the changes you make to the code.--### Tests--See the [tests documentation](./TESTS.md) for information about running and writing tests.--### Reloading Changes--Experimenting with changes to the Python source code is a drag if you have to re-start the server —-and re-load those multi-gigabyte models —-after every change.--For a faster development workflow, add the `--dev_reload` flag when starting the server.-The server will watch for changes to all the Python files in the `invokeai` directory and apply those changes to the-running server on the fly.--This will allow you to avoid restarting the server (and reloading models) in most cases, but there are some caveats; see-the [jurigged documentation](https://github.com/breuleux/jurigged#caveats) for details.--## Front End--<!--#TODO: get input from blessedcoolant here, for the moment inserted the frontend README via snippets extension.-->----8<-- "invokeai/frontend/web/README.md"--## Developing InvokeAI in VSCode--VSCode offers some nice tools:--- python debugger-- automatic `venv` activation-- remote dev (e.g. run InvokeAI on a beefy linux desktop while you type in- comfort on your macbook)--### Setup--You'll need the-[Python](https://marketplace.visualstudio.com/items?itemName=ms-python.python)-and-[Pylance](https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance)-extensions installed first.--It's also really handy to install the `Jupyter` extensions:--- [Jupyter](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter)-- [Jupyter Cell Tags](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.vscode-jupyter-cell-tags)-- [Jupyter Notebook Renderers](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter-renderers)-- [Jupyter Slide Show](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.vscode-jupyter-slideshow)--#### InvokeAI workspace--Creating a VSCode workspace for working on InvokeAI is highly recommended. It-can hold InvokeAI-specific settings and configs.--To make a workspace:--- Open the InvokeAI repo dir in VSCode-- `File` > `Save Workspace As` > save it _outside_ the repo--#### Default python interpreter (i.e. automatic virtual environment activation)--- Use command palette to run command- `Preferences: Open Workspace Settings (JSON)`-- Add `python.defaultInterpreterPath` to `settings`, pointing to your `venv`'s- python--Should look something like this:--```jsonc-{- // I like to have all InvokeAI-related folders in my workspace- "folders": [- {- // repo root- "path": "InvokeAI"- },- {- // InvokeAI root dir, where `invokeai.yaml` lives- "path": "/path/to/invokeai_root"- }- ],- "settings": {- // Where your InvokeAI `venv`'s python executable lives- "python.defaultInterpreterPath": "/path/to/invokeai_root/.venv/bin/python"- }-}-```--Now when you open the VSCode integrated terminal, or do anything that needs to-run python, it will automatically be in your InvokeAI virtual environment.--Bonus: When you create a Jupyter notebook, when you run it, you'll be prompted-for the python interpreter to run in. This will default to your `venv` python,-and so you'll have access to the same python environment as the InvokeAI app.--This is _super_ handy.--#### Enabling Type-Checking with Pylance--We use python's typing system in InvokeAI. PR reviews will include checking that types are present and correct. We don't enforce types with `mypy` at this time, but that is on the horizon.--Using a code analysis tool to automatically type check your code (and types) is very important when writing with types. These tools provide immediate feedback in your editor when types are incorrect, and following their suggestions lead to fewer runtime bugs.--Pylance, installed at the beginning of this guide, is the de-facto python LSP (language server protocol). It provides type checking in the editor (among many other features). Once installed, you do need to enable type checking manually:--- Open a python file-- Look along the status bar in VSCode for `{ } Python`-- Click the `{ }`-- Turn type checking on - basic is fine--You'll now see red squiggly lines where type issues are detected. Hover your cursor over the indicated symbols to see what's wrong.--In 99% of cases when the type checker says there is a problem, there really is a problem, and you should take some time to understand and resolve what it is pointing out.--#### Debugging configs with `launch.json`--Debugging configs are managed in a `launch.json` file. Like most VSCode configs,-these can be scoped to a workspace or folder.--Follow the [official guide](https://code.visualstudio.com/docs/python/debugging)-to set up your `launch.json` and try it out.--Now we can create the InvokeAI debugging configs:--```jsonc-{- // Use IntelliSense to learn about possible attributes.- // Hover to view descriptions of existing attributes.- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387- "version": "0.2.0",- "configurations": [- {- // Run the InvokeAI backend & serve the pre-built UI- "name": "InvokeAI Web",- "type": "python",- "request": "launch",- "program": "scripts/invokeai-web.py",- "args": [- // Your InvokeAI root dir (where `invokeai.yaml` lives)- "--root",- "/path/to/invokeai_root",- // Access the app from anywhere on your local network- "--host",- "0.0.0.0"- ],- "justMyCode": true- },- {- // Run the nodes-based CLI- "name": "InvokeAI CLI",- "type": "python",- "request": "launch",- "program": "scripts/invokeai-cli.py",- "justMyCode": true- },- {- // Run tests- "name": "InvokeAI Test",- "type": "python",- "request": "launch",- "module": "pytest",- "args": ["--capture=no"],- "justMyCode": true- },- {- // Run a single test- "name": "InvokeAI Single Test",- "type": "python",- "request": "launch",- "module": "pytest",- "args": [- // Change this to point to the specific test you are working on- "tests/nodes/test_invoker.py"- ],- "justMyCode": true- },- {- // This is the default, useful to just run a single file- "name": "Python: File",- "type": "python",- "request": "launch",- "program": "${file}",- "justMyCode": true- }- ]-}-```--You'll see these configs in the debugging configs drop down. Running them will-start InvokeAI with attached debugger, in the correct environment, and work just-like the normal app.--Enjoy debugging InvokeAI with ease (not that we have any bugs of course).--#### Remote dev--This is very easy to set up and provides the same very smooth experience as-local development. Environments and debugging, as set up above, just work,-though you'd need to recreate the workspace and debugging configs on the remote.--Consult the-[official guide](https://code.visualstudio.com/docs/remote/remote-overview) to-get it set up.--Suggest using VSCode's included settings sync so that your remote dev host has-all the same app settings and extensions automatically.--##### One remote dev gotcha--I've found the automatic port forwarding to be very flakey. You can disable it-in `Preferences: Open Remote Settings (ssh: hostname)`. Search for-`remote.autoForwardPorts` and untick the box.--To forward ports very reliably, use SSH on the remote dev client (e.g. your-macbook). Here's how to forward both backend API port (`9090`) and the frontend-live dev server port (`5173`):--```bash-ssh \- -L 9090:localhost:9090 \- -L 5173:localhost:5173 \- user@remote-dev-host-```--The forwarding stops when you close the terminal window, so suggest to do this-_outside_ the VSCode integrated terminal in case you need to restart VSCode for-an extension update or something--Now, on your remote dev client, you can open `localhost:9090` and access the UI,-now served from the remote dev host, just the same as if it was running on the-client.diff --git a/docs-old/contributing/MODEL_MANAGER.md b/docs-old/contributing/MODEL_MANAGER.mddeleted file mode 100644index 627a3e42ec..0000000000--- a/docs-old/contributing/MODEL_MANAGER.md+++ /dev/null@@ -1,1658 +0,0 @@-# Introduction to the Model Manager V2--The Model Manager is responsible for organizing the various machine-learning models used by InvokeAI. It consists of a series of-interdependent services that together handle the full lifecycle of a-model. These are the:--* _ModelRecordServiceBase_ Responsible for managing model metadata and- configuration information. Among other things, the record service- tracks the type of the model, its provenance, and where it can be- found on disk.--* _ModelInstallServiceBase_ A service for installing models to- disk. It uses `DownloadQueueServiceBase` to download models and- their metadata, and `ModelRecordServiceBase` to store that- information. It is also responsible for managing the InvokeAI- `models` directory and its contents.--* _DownloadQueueServiceBase_- A multithreaded downloader responsible- for downloading models from a remote source to disk. The download- queue has special methods for downloading repo_id folders from- Hugging Face, as well as discriminating among model versions in- Civitai, but can be used for arbitrary content.-- * _ModelLoadServiceBase_- Responsible for loading a model from disk- into RAM and VRAM and getting it ready for inference.--## Location of the Code--The four main services can be found in-`invokeai/app/services` in the following directories:--* `invokeai/app/services/model_records/`-* `invokeai/app/services/model_install/`-* `invokeai/app/services/downloads/`-* `invokeai/app/services/model_load/`--Code related to the FastAPI web API can be found in-`invokeai/app/api/routers/model_manager_v2.py`.--***--## What's in a Model? The ModelRecordService--The `ModelRecordService` manages the model's metadata. It supports a-hierarchy of pydantic metadata "config" objects, which become-increasingly specialized to support particular model types.--### ModelConfigBase--All model metadata classes inherit from this pydantic class. it-provides the following fields:--| **Field Name** | **Type** | **Description** |-|----------------|-----------------|------------------|-| `key` | str | Unique identifier for the model |-| `name` | str | Name of the model (not unique) |-| `model_type` | ModelType | The type of the model |-| `model_format` | ModelFormat | The format of the model (e.g. "diffusers"); also used as a Union discriminator |-| `base_model` | BaseModelType | The base model that the model is compatible with |-| `path` | str | Location of model on disk |-| `hash` | str | Hash of the model |-| `description` | str | Human-readable description of the model (optional) |-| `source` | str | Model's source URL or repo id (optional) |--The `key` is a unique 32-character random ID which was generated at-install time. The `hash` field stores a hash of the model's-contents at install time obtained by sampling several parts of the-model's files using the `imohash` library. Over the course of the-model's lifetime it may be transformed in various ways, such as-changing its precision or converting it from a .safetensors to a-diffusers model.--`ModelType`, `ModelFormat` and `BaseModelType` are string enums that-are defined in `invokeai.backend.model_manager.config`. They are also-imported by, and can be reexported from,-`invokeai.app.services.model_manager.model_records`:--```-from invokeai.app.services.model_records import ModelType, ModelFormat, BaseModelType-```--The `path` field can be absolute or relative. If relative, it is taken-to be relative to the `models_dir` setting in the user's-`invokeai.yaml` file.--### CheckpointConfig--This adds support for checkpoint configurations, and adds the-following field:--| **Field Name** | **Type** | **Description** |-|----------------|-----------------|------------------|-| `config` | str | Path to the checkpoint's config file |--`config` is the path to the checkpoint's config file. If relative, it-is taken to be relative to the InvokeAI root directory-(e.g. `configs/stable-diffusion/v1-inference.yaml`)--### MainConfig--This adds support for "main" Stable Diffusion models, and adds these-fields:--| **Field Name** | **Type** | **Description** |-|----------------|-----------------|------------------|-| `vae` | str | Path to a VAE to use instead of the burnt-in one |-| `variant` | ModelVariantType| Model variant type, such as "inpainting" |--`vae` can be an absolute or relative path. If relative, its base is-taken to be the `models_dir` directory.--`variant` is an enumerated string class with values `normal`,-`inpaint` and `depth`. If needed, it can be imported if needed from-either `invokeai.app.services.model_records` or-`invokeai.backend.model_manager.config`.--### ONNXSD2Config--| **Field Name** | **Type** | **Description** |-|----------------|-----------------|------------------|-| `prediction_type` | SchedulerPredictionType | Scheduler prediction type to use, e.g. "epsilon" |-| `upcast_attention` | bool | Model requires its attention module to be upcast |--The `SchedulerPredictionType` enum can be imported from either-`invokeai.app.services.model_records` or-`invokeai.backend.model_manager.config`.--### Other config classes--There are a series of such classes each discriminated by their-`ModelFormat`, including `LoRAConfig`, `IPAdapterConfig`, and so-forth. These are rarely needed outside the model manager's internal-code, but available in `invokeai.backend.model_manager.config` if-needed. There is also a Union of all ModelConfig classes, called-`AnyModelConfig` that can be imported from the same file.--### Limitations of the Data Model--The config hierarchy has a major limitation in its handling of the-base model type. Each model can only be compatible with one base-model, which breaks down in the event of models that are compatible-with two or more base models. For example, SD-1 VAEs also work with-SD-2 models. A partial workaround is to use `BaseModelType.Any`, which-indicates that the model is compatible with any of the base-models. This works OK for some models, such as the IP Adapter image-encoders, but is an all-or-nothing proposition.--## Reading and Writing Model Configuration Records--The `ModelRecordService` provides the ability to retrieve model-configuration records from SQL or YAML databases, update them, and-write them back.--A application-wide `ModelRecordService` is created during API-initialization and can be retrieved within an invocation from the-`InvocationContext` object:--```-store = context.services.model_manager.store-```--or from elsewhere in the code by accessing-`ApiDependencies.invoker.services.model_manager.store`.--### Creating a `ModelRecordService`--To create a new `ModelRecordService` database or open an existing one,-you can directly create either a `ModelRecordServiceSQL` or a-`ModelRecordServiceFile` object:--```-from invokeai.app.services.model_records import ModelRecordServiceSQL, ModelRecordServiceFile--store = ModelRecordServiceSQL.from_connection(connection, lock)-store = ModelRecordServiceSQL.from_db_file('/path/to/sqlite_database.db')-store = ModelRecordServiceFile.from_db_file('/path/to/database.yaml')-```--The `from_connection()` form is only available from the-`ModelRecordServiceSQL` class, and is used to manage records in a-previously-opened SQLITE3 database using a `sqlite3.connection` object-and a `threading.lock` object. It is intended for the specific use-case of storing the record information in the main InvokeAI database,-usually `databases/invokeai.db`.--The `from_db_file()` methods can be used to open new connections to-the named database files. If the file doesn't exist, it will be-created and initialized.--As a convenience, `ModelRecordServiceBase` offers two methods,-`from_db_file` and `open`, which will return either a SQL or File-implementation depending on the context. The former looks at the file-extension to determine whether to open the file as a SQL database-(".db") or as a file database (".yaml"). If the file exists, but is-either the wrong type or does not contain the expected schema-metainformation, then an appropriate `AssertionError` will be raised:--```-store = ModelRecordServiceBase.from_db_file('/path/to/a/file.{yaml,db}')-```--The `ModelRecordServiceBase.open()` method is specifically designed-for use in the InvokeAI web server. Its signature is:--```-def open(- cls,- config: InvokeAIAppConfig,- conn: Optional[sqlite3.Connection] = None,- lock: Optional[threading.Lock] = None- ) -> Union[ModelRecordServiceSQL, ModelRecordServiceFile]:-```--The way it works is as follows:--1. Retrieve the value of the `model_config_db` option from the user's- `invokeai.yaml` config file.-2. If `model_config_db` is `auto` (the default), then:- * Use the values of `conn` and `lock` to return a `ModelRecordServiceSQL` object- opened on the passed connection and lock.- * Open up a new connection to `databases/invokeai.db` if `conn`- and/or `lock` are missing (see note below).-3. If `model_config_db` is a Path, then use `from_db_file`- to return the appropriate type of ModelRecordService.-4. If `model_config_db` is None, then retrieve the legacy- `conf_path` option from `invokeai.yaml` and use the Path- indicated there. This will default to `configs/models.yaml`.--So a typical startup pattern would be:--```-import sqlite3-from invokeai.app.services.thread import lock-from invokeai.app.services.model_records import ModelRecordServiceBase-from invokeai.app.services.config import InvokeAIAppConfig--config = InvokeAIAppConfig.get_config()-db_conn = sqlite3.connect(config.db_path.as_posix(), check_same_thread=False)-store = ModelRecordServiceBase.open(config, db_conn, lock)-```--### Fetching a Model's Configuration from `ModelRecordServiceBase`--Configurations can be retrieved in several ways.--#### get_model(key) -> AnyModelConfig--The basic functionality is to call the record store object's-`get_model()` method with the desired model's unique key. It returns-the appropriate subclass of ModelConfigBase:--```-model_conf = store.get_model('f13dd932c0c35c22dcb8d6cda4203764')-print(model_conf.path)-->> '/tmp/models/ckpts/v1-5-pruned-emaonly.safetensors'--```--If the key is unrecognized, this call raises an-`UnknownModelException`.--#### exists(key) -> AnyModelConfig--Returns True if a model with the given key exists in the database.--#### search_by_path(path) -> AnyModelConfig--Returns the configuration of the model whose path is `path`. The path-is matched using a simple string comparison and won't correctly match-models referred to by different paths (e.g. using symbolic links).--#### search_by_name(name, base, type) -> List[AnyModelConfig]--This method searches for models that match some combination of `name`,-`BaseType` and `ModelType`. Calling without any arguments will return-all the models in the database.--#### all_models() -> List[AnyModelConfig]--Return all the model configs in the database. Exactly equivalent to-calling `search_by_name()` with no arguments.--#### search_by_tag(tags) -> List[AnyModelConfig]--`tags` is a list of strings. This method returns a list of model-configs that contain all of the given tags. Examples:--```-# find all models that are marked as both SFW and as generating-# background scenery-configs = store.search_by_tag(['sfw', 'scenery'])-```--Note that only tags are not searchable in this way. Other fields can-be searched using a filter:--```-commercializable_models = [x for x in store.all_models() \- if x.license.contains('allowCommercialUse=Sell')]-```--#### version() -> str--Returns the version of the database, currently at `3.2`--#### model_info_by_name(name, base_model, model_type) -> ModelConfigBase--This method exists to ease the transition from the previous version of-the model manager, in which `get_model()` took the three arguments-shown above. This looks for a unique model identified by name, base-model and model type and returns it.--The method will generate a `DuplicateModelException` if there are more-than one models that share the same type, base and name. While-unlikely, it is certainly possible to have a situation in which the-user had added two models with the same name, base and type, one-located at path `/foo/my_model` and the other at `/bar/my_model`. It-is strongly recommended to search for models using `search_by_name()`,-which can return multiple results, and then to select the desired-model and pass its key to `get_model()`.--### Writing model configs to the database--Several methods allow you to create and update stored model config-records.--#### add_model(key, config) -> AnyModelConfig--Given a key and a configuration, this will add the model's-configuration record to the database. `config` can either be a subclass of-`ModelConfigBase` (i.e. any class listed in `AnyModelConfig`), or a-`dict` of key/value pairs. In the latter case, the correct-configuration class will be picked by Pydantic's discriminated union-mechanism.--If successful, the method will return the appropriate subclass of-`ModelConfigBase`. It will raise a `DuplicateModelException` if a-model with the same key is already in the database, or an-`InvalidModelConfigException` if a dict was passed and Pydantic-experienced a parse or validation error.--### update_model(key, config) -> AnyModelConfig--Given a key and a configuration, this will update the model-configuration record in the database. `config` can be either a-instance of `ModelConfigBase`, or a sparse `dict` containing the-fields to be updated. This will return an `AnyModelConfig` on success,-or raise `InvalidModelConfigException` or `UnknownModelException`-exceptions on failure.--***--## Model installation--The `ModelInstallService` class implements the-`ModelInstallServiceBase` abstract base class, and provides a one-stop-shop for all your model install needs. It provides the following-functionality:--* Registering a model config record for a model already located on the- local filesystem, without moving it or changing its path.--* Installing a model alreadiy located on the local filesystem, by- moving it into the InvokeAI root directory under the- `models` folder (or wherever config parameter `models_dir`- specifies).--* Probing of models to determine their type, base type and other key- information.--* Interface with the InvokeAI event bus to provide status updates on- the download, installation and registration process.--* Downloading a model from an arbitrary URL and installing it in- `models_dir`.--* Special handling for HuggingFace repo_ids to recursively download- the contents of the repository, paying attention to alternative- variants such as fp16.--* Saving tags and other metadata about the model into the invokeai database- when fetching from a repo that provides that type of information,- (currently only HuggingFace).--### Initializing the installer--A default installer is created at InvokeAI api startup time and stored-in `ApiDependencies.invoker.services.model_install` and can-also be retrieved from an invocation's `context` argument with-`context.services.model_install`.--In the event you wish to create a new installer, you may use the-following initialization pattern:--```-from invokeai.app.services.config import get_config-from invokeai.app.services.model_records import ModelRecordServiceSQL-from invokeai.app.services.model_install import ModelInstallService-from invokeai.app.services.download import DownloadQueueService-from invokeai.app.services.shared.sqlite.sqlite_database import SqliteDatabase-from invokeai.backend.util.logging import InvokeAILogger--config = get_config()--logger = InvokeAILogger.get_logger(config=config)-db = SqliteDatabase(config.db_path, logger)-record_store = ModelRecordServiceSQL(db, logger)-queue = DownloadQueueService()-queue.start()--installer = ModelInstallService(app_config=config,- record_store=record_store,- download_queue=queue- )-installer.start()-```--The full form of `ModelInstallService()` takes the following-required parameters:--| **Argument** | **Type** | **Description** |-|------------------|------------------------------|------------------------------|-| `app_config` | InvokeAIAppConfig | InvokeAI app configuration object |-| `record_store` | ModelRecordServiceBase | Config record storage database |-| `download_queue` | DownloadQueueServiceBase | Download queue object |-|`session` | Optional[requests.Session] | Swap in a different Session object (usually for debugging) |--Once initialized, the installer will provide the following methods:--#### install_job = installer.heuristic_import(source, [config], [access_token])--This is a simplified interface to the installer which takes a source-string, an optional model configuration dictionary and an optional-access token.--The `source` is a string that can be any of these forms--1. A path on the local filesystem (`C:\\users\\fred\\model.safetensors`)-2. A Url pointing to a single downloadable model file (`https://civitai.com/models/58390/detail-tweaker-lora-lora`)-3. A HuggingFace repo_id with any of the following formats:- * `model/name` -- entire model- * `model/name:fp32` -- entire model, using the fp32 variant- * `model/name:fp16:vae` -- vae submodel, using the fp16 variant- * `model/name::vae` -- vae submodel, using default precision- * `model/name:fp16:path/to/model.safetensors` -- an individual model file, fp16 variant- * `model/name::path/to/model.safetensors` -- an individual model file, default variant--Note that by specifying a relative path to the top of the HuggingFace-repo, you can download and install arbitrary models files.--The variant, if not provided, will be automatically filled in with-`fp32` if the user has requested full precision, and `fp16`-otherwise. If a variant that does not exist is requested, then the-method will install whatever HuggingFace returns as its default-revision.--`config` is an optional dict of values that will override the-autoprobed values for model type, base, scheduler prediction type, and-so forth. See [Model configuration and-probing](#model-configuration-and-probing) for details.--`access_token` is an optional access token for accessing resources-that need authentication.--The method will return a `ModelInstallJob`. This object is discussed-at length in the following section.--#### install_job = installer.import_model()--The `import_model()` method is the core of the installer. The-following illustrates basic usage:--```-from invokeai.app.services.model_install import (- LocalModelSource,- HFModelSource,- URLModelSource,-)--source1 = LocalModelSource(path='/opt/models/sushi.safetensors') # a local safetensors file-source2 = LocalModelSource(path='/opt/models/sushi_diffusers') # a local diffusers folder--source3 = HFModelSource(repo_id='runwayml/stable-diffusion-v1-5') # a repo_id-source4 = HFModelSource(repo_id='runwayml/stable-diffusion-v1-5', subfolder='vae') # a subfolder within a repo_id-source5 = HFModelSource(repo_id='runwayml/stable-diffusion-v1-5', variant='fp16') # a named variant of a HF model-source6 = HFModelSource(repo_id='runwayml/stable-diffusion-v1-5', subfolder='OrangeMix/OrangeMix1.ckpt') # path to an individual model file--source7 = URLModelSource(url='https://civitai.com/api/download/models/63006') # model located at a URL-source8 = URLModelSource(url='https://civitai.com/api/download/models/63006', access_token='letmein') # with an access token--for source in [source1, source2, source3, source4, source5, source6, source7]:- install_job = installer.install_model(source)--source2job = installer.wait_for_installs(timeout=120)-for source in sources:- job = source2job[source]- if job.complete:- model_config = job.config_out- model_key = model_config.key- print(f"{source} installed as {model_key}")- elif job.errored:- print(f"{source}: {job.error_type}.\nStack trace:\n{job.error}")--```--As shown here, the `import_model()` method accepts a variety of-sources, including local safetensors files, local diffusers folders,-HuggingFace repo_ids with and without a subfolder designation,-Civitai model URLs and arbitrary URLs that point to checkpoint files-(but not to folders).--Each call to `import_model()` return a `ModelInstallJob` job,-an object which tracks the progress of the install.--If a remote model is requested, the model's files are downloaded in-parallel across a multiple set of threads using the download-queue. During the download process, the `ModelInstallJob` is updated-to provide status and progress information. After the files (if any)-are downloaded, the remainder of the installation runs in a single-serialized background thread. These are the model probing, file-copying, and config record database update steps.--Multiple install jobs can be queued up. You may block until all-install jobs are completed (or errored) by calling the-`wait_for_installs()` method as shown in the code-example. `wait_for_installs()` will return a `dict` that maps the-requested source to its job. This object can be interrogated-to determine its status. If the job errored out, then the error type-and details can be recovered from `job.error_type` and `job.error`.--The full list of arguments to `import_model()` is as follows:--| **Argument** | **Type** | **Default** | **Description** |-|------------------|------------------------------|-------------|-------------------------------------------|-| `source` | ModelSource | None | The source of the model, Path, URL or repo_id |-| `config` | Dict[str, Any] | None | Override all or a portion of model's probed attributes |--The next few sections describe the various types of ModelSource that-can be passed to `import_model()`.--`config` can be used to override all or a portion of the configuration-attributes returned by the model prober. See the section below for-details.--#### LocalModelSource--This is used for a model that is located on a locally-accessible Posix-filesystem, such as a local disk or networked fileshare.--| **Argument** | **Type** | **Default** | **Description** |-|------------------|------------------------------|-------------|-------------------------------------------|-| `path` | str | Path | None | Path to the model file or directory |-| `inplace` | bool | False | If set, the model file(s) will be left in their location; otherwise they will be copied into the InvokeAI root's `models` directory |--#### URLModelSource--This is used for a single-file model that is accessible via a URL. The-fields are:--| **Argument** | **Type** | **Default** | **Description** |-|------------------|------------------------------|-------------|-------------------------------------------|-| `url` | AnyHttpUrl | None | The URL for the model file. |-| `access_token` | str | None | An access token needed to gain access to this file. |--The `AnyHttpUrl` class can be imported from `pydantic.networks`.--Ordinarily, no metadata is retrieved from these sources. However,-there is special-case code in the installer that looks for HuggingFace-and fetches the corresponding model metadata from the corresponding repo.--#### HFModelSource--HuggingFace has the most complicated `ModelSource` structure:--| **Argument** | **Type** | **Default** | **Description** |-|------------------|------------------------------|-------------|-------------------------------------------|-| `repo_id` | str | None | The ID of the desired model. |-| `variant` | ModelRepoVariant | ModelRepoVariant('fp16') | The desired variant. |-| `subfolder` | Path | None | Look for the model in a subfolder of the repo. |-| `access_token` | str | None | An access token needed to gain access to a subscriber's-only model. |--The `repo_id` is the repository ID, such as `stabilityai/sdxl-turbo`.--The `variant` is one of the various diffusers formats that HuggingFace-supports and is used to pick out from the hodgepodge of files that in-a typical HuggingFace repository the particular components needed for-a complete diffusers model. `ModelRepoVariant` is an enum that can be-imported from `invokeai.backend.model_manager` and has the following-values:--| **Name** | **String Value** |-|----------------------------|---------------------------|-| ModelRepoVariant.DEFAULT | "default" |-| ModelRepoVariant.FP16 | "fp16" |-| ModelRepoVariant.FP32 | "fp32" |-| ModelRepoVariant.ONNX | "onnx" |-| ModelRepoVariant.OPENVINO | "openvino" |-| ModelRepoVariant.FLAX | "flax" |--You can also pass the string forms to `variant` directly. Note that-InvokeAI may not be able to load and run all variants. At the current-time, specifying `ModelRepoVariant.DEFAULT` will retrieve model files-that are unqualified, e.g. `pytorch_model.safetensors` rather than-`pytorch_model.fp16.safetensors`. These are usually the 32-bit-safetensors forms of the model.--If `subfolder` is specified, then the requested model resides in a-subfolder of the main model repository. This is typically used to-fetch and install VAEs.--Some models require you to be registered with HuggingFace and logged-in. To download these files, you must provide an-`access_token`. Internally, if no access token is provided, then-`HfFolder.get_token()` will be called to fill it in with the cached-one.--#### Monitoring the install job process--When you create an install job with `import_model()`, it launches the-download and installation process in the background and returns a-`ModelInstallJob` object for monitoring the process.--The `ModelInstallJob` class has the following structure:--| **Attribute** | **Type** | **Description** |-|----------------|-----------------|------------------|-| `id` | `int` | Integer ID for this job |-| `status` | `InstallStatus` | An enum of [`waiting`, `downloading`, `running`, `completed`, `error` and `cancelled`]|-| `config_in` | `dict` | Overriding configuration values provided by the caller |-| `config_out` | `AnyModelConfig`| After successful completion, contains the configuration record written to the database |-| `inplace` | `boolean` | True if the caller asked to install the model in place using its local path |-| `source` | `ModelSource` | The local path, remote URL or repo_id of the model to be installed |-| `local_path` | `Path` | If a remote model, holds the path of the model after it is downloaded; if a local model, same as `source` |-| `error_type` | `str` | Name of the exception that led to an error status |-| `error` | `str` | Traceback of the error |--If the `event_bus` argument was provided, events will also be-broadcast to the InvokeAI event bus. The events will appear on the bus-as an event of type `EventServiceBase.model_event`, a timestamp and-the following event names:--##### `model_install_downloading`--For remote models only, `model_install_downloading` events will be issued at regular-intervals as the download progresses. The event's payload contains the-following keys:--| **Key** | **Type** | **Description** |-|----------------|-----------|------------------|-| `source` | str | String representation of the requested source |-| `local_path` | str | String representation of the path to the downloading model (usually a temporary directory) |-| `bytes` | int | How many bytes downloaded so far |-| `total_bytes` | int | Total size of all the files that make up the model |-| `parts` | List[Dict]| Information on the progress of the individual files that make up the model |--The parts is a list of dictionaries that give information on each of-the components pieces of the download. The dictionary's keys are-`source`, `local_path`, `bytes` and `total_bytes`, and correspond to-the like-named keys in the main event.--Note that downloading events will not be issued for local models, and-that downloading events occur _before_ the running event.--##### `model_install_running`--`model_install_running` is issued when all the required downloads have completed (if applicable) and the-model probing, copying and registration process has now started.--The payload will contain the key `source`.--##### `model_install_completed`--`model_install_completed` is issued once at the end of a successful-installation. The payload will contain the keys `source`,-`total_bytes` and `key`, where `key` is the ID under which the model-has been registered.--##### `model_install_error`--`model_install_error` is emitted if the installation process fails for-some reason. The payload will contain the keys `source`, `error_type`-and `error`. `error_type` is a short message indicating the nature of-the error, and `error` is the long traceback to help debug the-problem.--##### `model_install_cancelled`--`model_install_cancelled` is issued if the model installation is-cancelled, or if one or more of its files' downloads are-cancelled. The payload will contain `source`.--##### Following the model status--You may poll the `ModelInstallJob` object returned by `import_model()`-to ascertain the state of the install. The job status can be read from-the job's `status` attribute, an `InstallStatus` enum which has the-enumerated values `WAITING`, `DOWNLOADING`, `RUNNING`, `COMPLETED`,-`ERROR` and `CANCELLED`.--For convenience, install jobs also provided the following boolean-properties: `waiting`, `downloading`, `running`, `complete`, `errored`-and `cancelled`, as well as `in_terminal_state`. The last will return-True if the job is in the complete, errored or cancelled states.--#### Model configuration and probing--The install service uses the `invokeai.backend.model_manager.probe`-module during import to determine the model's type, base type, and-other configuration parameters. Among other things, it assigns a-default name and description for the model based on probed-fields.--When downloading remote models is implemented, additional-configuration information, such as list of trigger terms, will be-retrieved from the HuggingFace and Civitai model repositories.--The probed values can be overridden by providing a dictionary in the-optional `config` argument passed to `import_model()`. You may provide-overriding values for any of the model's configuration-attributes. Here is an example of setting the-`SchedulerPredictionType` and `name` for an sd-2 model:--```-install_job = installer.import_model(- source=HFModelSource(repo_id='stabilityai/stable-diffusion-2-1',variant='fp32'),- config=dict(- prediction_type=SchedulerPredictionType('v_prediction')- name='stable diffusion 2 base model',- )- )-```--### Other installer methods--This section describes additional methods provided by the installer class.--#### jobs = installer.wait_for_installs([timeout])--Block until all pending installs are completed or errored and then-returns a list of completed jobs. The optional `timeout` argument will-return from the call if jobs aren't completed in the specified-time. An argument of 0 (the default) will block indefinitely.--#### jobs = installer.wait_for_job(job, [timeout])--Like `wait_for_installs()`, but block until a specific job has-completed or errored, and then return the job. The optional `timeout`-argument will return from the call if the job doesn't complete in the-specified time. An argument of 0 (the default) will block-indefinitely.--#### jobs = installer.list_jobs()--Return a list of all active and complete `ModelInstallJobs`.--#### jobs = installer.get_job_by_source(source)--Return a list of `ModelInstallJob` corresponding to the indicated-model source.--#### jobs = installer.get_job_by_id(id)--Return a list of `ModelInstallJob` corresponding to the indicated-model id.--#### jobs = installer.cancel_job(job)--Cancel the indicated job.--#### installer.prune_jobs--Remove jobs that are in a terminal state (i.e. complete, errored or-cancelled) from the job list returned by `list_jobs()` and-`get_job()`.--#### installer.app_config, installer.record_store, installer.event_bus--Properties that provide access to the installer's `InvokeAIAppConfig`,-`ModelRecordServiceBase` and `EventServiceBase` objects.--#### key = installer.register_path(model_path, config), key = installer.install_path(model_path, config)--These methods bypass the download queue and directly register or-install the model at the indicated path, returning the unique ID for-the installed model.--Both methods accept a Path object corresponding to a checkpoint or-diffusers folder, and an optional dict of config attributes to use to-override the values derived from model probing.--The difference between `register_path()` and `install_path()` is that-the former creates a model configuration record without changing the-location of the model in the filesystem. The latter makes a copy of-the model inside the InvokeAI models directory before registering-it.--#### installer.unregister(key)--This will remove the model config record for the model at key, and is-equivalent to `installer.record_store.del_model(key)`--#### installer.delete(key)--This is similar to `unregister()` but has the additional effect of-conditionally deleting the underlying model file(s) if they reside-within the InvokeAI models directory--#### installer.unconditionally_delete(key)--This method is similar to `unregister()`, but also unconditionally-deletes the corresponding model weights file(s), regardless of whether-they are inside or outside the InvokeAI models hierarchy.--#### path = installer.download_and_cache(remote_source, [access_token], [timeout])--This utility routine will download the model file located at source,-cache it, and return the path to the cached file. It does not attempt-to determine the model type, probe its configuration values, or-register it with the models database.--You may provide an access token if the remote source requires-authorization. The call will block indefinitely until the file is-completely downloaded, cancelled or raises an error of some sort. If-you provide a timeout (in seconds), the call will raise a-`TimeoutError` exception if the download hasn't completed in the-specified period.--You may use this mechanism to request any type of file, not just a-model. The file will be stored in a subdirectory of-`INVOKEAI_ROOT/models/.cache`. If the requested file is found in the-cache, its path will be returned without redownloading it.--Be aware that the models cache is cleared of infrequently-used files-and directories at regular intervals when the size of the cache-exceeds the value specified in Invoke's `convert_cache` configuration-variable.--#### installer.start(invoker)--The `start` method is called by the API initialization routines when-the API starts up. Its effect is to call `sync_to_config()` to-synchronize the model record store database with what's currently on-disk.--***--## Get on line: The Download Queue--InvokeAI can download arbitrary files using a multithreaded background-download queue. Internally, the download queue is used for installing-models located at remote locations. The queue is implemented by the-`DownloadQueueService` defined in-`invokeai.app.services.download_manager`. However, most of the-implementation is spread out among several files in-`invokeai/backend/model_manager/download/*`--A default download queue is located in-`ApiDependencies.invoker.services.download_queue`. However, you can-create additional instances if you need to isolate your queue from the-main one.--### A job for every task--The queue operates on a series of download job objects. These objects-specify the source and destination of the download, and keep track of-the progress of the download. Jobs come in a variety of shapes and-colors as they are progressively specialized for particular download-task.--The basic job is the `DownloadJobBase`, a pydantic object with the-following fields:--| **Field** | **Type** | **Default** | **Description** |-|----------------|-----------------|---------------|-----------------|-| `id` | int | | Job ID, an integer >= 0 |-| `priority` | int | 10 | Job priority. Lower priorities run before higher priorities |-| `source` | str | | Where to download from (specialized types used in subclasses)|-| `destination` | Path | | Where to download to |-| `status` | DownloadJobStatus| Idle | Job's status (see below) |-| `event_handlers` | List[DownloadEventHandler]| | Event handlers (see below) |-| `job_started` | float | | Timestamp for when the job started running |-| `job_ended` | float | | Timestamp for when the job completed or errored out |-| `job_sequence` | int | | A counter that is incremented each time a model is dequeued |-| `error` | Exception | | A copy of the Exception that caused an error during download |--When you create a job, you can assign it a `priority`. If multiple-jobs are queued, the job with the lowest priority runs first. (Don't-blame me! The Unix developers came up with this convention.)--Every job has a `source` and a `destination`. `source` is a string in-the base class, but subclassses redefine it more specifically.--The `destination` must be the Path to a file or directory on the local-filesystem. If the Path points to a new or existing file, then the-source will be stored under that filename. If the Path ponts to an-existing directory, then the downloaded file will be stored inside the-directory, usually using the name assigned to it at the remote site in-the `content-disposition` http field.--When the job is submitted, it is assigned a numeric `id`. The id can-then be used to control the job, such as starting, stopping and-cancelling its download.--The `status` field is updated by the queue to indicate where the job-is in its lifecycle. Values are defined in the string enum-`DownloadJobStatus`, a symbol available from-`invokeai.app.services.download_manager`. Possible values are:--| **Value** | **String Value** | **Description** |-|--------------|---------------------|-------------------|-| `IDLE` | idle | Job created, but not submitted to the queue |-| `ENQUEUED` | enqueued | Job is patiently waiting on the queue |-| `RUNNING` | running | Job is running! |-| `PAUSED` | paused | Job was paused and can be restarted |-| `COMPLETED` | completed | Job has finished its work without an error |-| `ERROR` | error | Job encountered an error and will not run again|-| `CANCELLED` | cancelled | Job was cancelled and will not run (again) |--`job_started`, `job_ended` and `job_sequence` indicate when the job-was started (using a python timestamp), when it completed, and the-order in which it was taken off the queue. These are mostly used for-debugging and performance testing.--In case of an error, the Exception that caused the error will be-placed in the `error` field, and the job's status will be set to-`DownloadJobStatus.ERROR`.--After an error occurs, any partially downloaded files will be deleted-from disk, unless `preserve_partial_downloads` was set to True at job-creation time (or set to True any time before the error-occurred). Note that since all InvokeAI model install operations-involve downloading files to a temporary directory that has a limited-lifetime, this flag is not used by the model installer.--There are a series of subclasses of `DownloadJobBase` that provide-support for specific types of downloads. These are:--#### DownloadJobPath--This subclass redefines `source` to be a filesystem Path. It is used-to move a file or directory from the `source` to the `destination`-paths in the background using a uniform event-based infrastructure.--#### DownloadJobRemoteSource--This subclass adds the following fields to the job:--| **Field** | **Type** | **Default** | **Description** |-|----------------|-----------------|---------------|-----------------|-| `bytes` | int | 0 | bytes downloaded so far |-| `total_bytes` | int | 0 | total size to download |-| `access_token` | Any | None | an authorization token to present to the remote source |--The job will start out with 0/0 in its bytes/total_bytes fields. Once-it starts running, `total_bytes` will be populated from information-provided in the HTTP download header (if available), and the number of-bytes downloaded so far will be progressively incremented.--#### DownloadJobURL--This is a subclass of `DownloadJobBase`. It redefines `source` to be a-Pydantic `AnyHttpUrl` object, which enforces URL validation checking-on the field.--Note that the installer service defines an additional subclass of-`DownloadJobRemoteSource` that accepts HuggingFace repo_ids in-addition to URLs. This is discussed later in this document.--### Event handlers--While a job is being downloaded, the queue will emit events at-periodic intervals. A typical series of events during a successful-download session will look like this:--* enqueued-* running-* running-* running-* completed--There will be a single enqueued event, followed by one or more running-events, and finally one `completed`, `error` or `cancelled`-events.--It is possible for a caller to pause download temporarily, in which-case the events may look something like this:--* enqueued-* running-* running-* paused-* running-* completed--The download queue logs when downloads start and end (unless `quiet`-is set to True at initialization time) but doesn't log any progress-events. You will probably want to be alerted to events during the-download job and provide more user feedback. In order to intercept and-respond to events you may install a series of one or more event-handlers in the job. Whenever the job's status changes, the chain of-event handlers is traversed and executed in the same thread that the-download job is running in.--Event handlers have the signature `Callable[["DownloadJobBase"],-None]`, i.e.--```-def handler(job: DownloadJobBase):- pass-```--A typical handler will examine `job.status` and decide if there's-something to be done. This can include cancelling or erroring the job,-but more typically is used to report on the job status to the user-interface or to perform certain actions on successful completion of-the job.--Event handlers can be attached to a job at creation time. In addition,-you can create a series of default handlers that are attached to the-queue object itself. These handlers will be executed for each job-after the job's own handlers (if any) have run.--During a download, running events are issued every time roughly 1% of-the file is transferred. This is to provide just enough granularity to-update a tqdm progress bar smoothly.--Handlers can be added to a job after the fact using the job's-`add_event_handler` method:--```-job.add_event_handler(my_handler)-```--All handlers can be cleared using the job's `clear_event_handlers()`-method. Note that it might be a good idea to pause the job before-altering its handlers.--### Creating a download queue object--The `DownloadQueueService` constructor takes the following arguments:--| **Argument** | **Type** | **Default** | **Description** |-|----------------|-----------------|---------------|-----------------|-| `event_handlers` | List[DownloadEventHandler] | [] | Event handlers |-| `max_parallel_dl` | int | 5 | Maximum number of simultaneous downloads allowed |-| `requests_session` | requests.sessions.Session | None | An alternative requests Session object to use for the download |-| `quiet` | bool | False| Do work quietly without issuing log messages |--A typical initialization sequence will look like:--```-from invokeai.app.services.download_manager import DownloadQueueService--def log_download_event(job: DownloadJobBase):- logger.info(f'job={job.id}: status={job.status}')--queue = DownloadQueueService(- event_handlers=[log_download_event]- )-```--Event handlers can be provided to the queue at initialization time as-shown in the example. These will be automatically appended to the-handler list for any job that is submitted to this queue.--`max_parallel_dl` sets the number of simultaneous active downloads-that are allowed. The default of five has not been benchmarked in any-way, but seems to give acceptable performance.--`requests_session` can be used to provide a `requests` module Session-object that will be used to stream remote URLs to disk. This facility-was added for use in the module's unit tests to simulate a remote web-server, but may be useful in other contexts.--`quiet` will prevent the queue from issuing any log messages at the-INFO or higher levels.--### Submitting a download job--You can submit a download job to the queue either by creating the job-manually and passing it to the queue's `submit_download_job()` method,-or using the `create_download_job()` method, which will do the same-thing on your behalf.--To use the former method, follow this example:--```-job = DownloadJobRemoteSource(- source='http://www.civitai.com/models/13456',- destination='/tmp/models/',- event_handlers=[my_handler1, my_handler2], # if desired- )-queue.submit_download_job(job, start=True)-```--`submit_download_job()` takes just two arguments: the job to submit,-and a flag indicating whether to immediately start the job (defaulting-to True). If you choose not to start the job immediately, you can-start it later by calling the queue's `start_job()` or-`start_all_jobs()` methods, which are described later.--To have the queue create the job for you, follow this example instead:--```-job = queue.create_download_job(- source='http://www.civitai.com/models/13456',- destdir='/tmp/models/',- filename='my_model.safetensors',- event_handlers=[my_handler1, my_handler2], # if desired- start=True,- )-```--The `filename` argument forces the downloader to use the specified-name for the file rather than the name provided by the remote source,-and is equivalent to manually specifying a destination of-`/tmp/models/my_model.safetensors' in the submitted job.--Here is the full list of arguments that can be provided to-`create_download_job()`:--| **Argument** | **Type** | **Default** | **Description** |-|------------------|------------------------------|-------------|-------------------------------------------|-| `source` | Union[str, Path, AnyHttpUrl] | | Download remote or local source |-| `destdir` | Path | | Destination directory for downloaded file |-| `filename` | Path | None | Filename for downloaded file |-| `start` | bool | True | Enqueue the job immediately |-| `priority` | int | 10 | Starting priority for this job |-| `access_token` | str | None | Authorization token for this resource |-| `event_handlers` | List[DownloadEventHandler] | [] | Event handlers for this job |--Internally, `create_download_job()` has a little bit of internal logic-that looks at the type of the source and selects the right subclass of-`DownloadJobBase` to create and enqueue.--**TODO**: move this logic into its own method for overriding in-subclasses.--### Job control--Prior to completion, jobs can be controlled with a series of queue-method calls. Do not attempt to modify jobs by directly writing to-their fields, as this is likely to lead to unexpected results.--Any method that accepts a job argument may raise an-`UnknownJobIDException` if the job has not yet been submitted to the-queue or was not created by this queue.--#### queue.join()--This method will block until all the active jobs in the queue have-reached a terminal state (completed, errored or cancelled).--#### queue.wait_for_job(job, [timeout])--This method will block until the indicated job has reached a terminal-state (completed, errored or cancelled). If the optional timeout is-provided, the call will block for at most timeout seconds, and raise a-TimeoutError otherwise.--#### jobs = queue.list_jobs()--This will return a list of all jobs, including ones that have not yet-been enqueued and those that have completed or errored out.--#### job = queue.id_to_job(int)--This method allows you to recover a submitted job using its ID.--#### queue.prune_jobs()--Remove completed and errored jobs from the job list.--#### queue.start_job(job)--If the job was submitted with `start=False`, then it can be started-using this method.--#### queue.pause_job(job)--This will temporarily pause the job, if possible. It can later be-restarted and pick up where it left off using `queue.start_job()`.--#### queue.cancel_job(job)--This will cancel the job if possible and clean up temporary files and-other resources that it might have been using.--#### queue.start_all_jobs(), queue.pause_all_jobs(), queue.cancel_all_jobs()--This will start/pause/cancel all jobs that have been submitted to the-queue and have not yet reached a terminal state.--***--## This Meta be Good: Model Metadata Storage--The modules found under `invokeai.backend.model_manager.metadata`-provide a straightforward API for fetching model metadatda from online-repositories. Currently only HuggingFace is supported. However, the-modules are easily extended for additional repos, provided that they-have defined APIs for metadata access.--Metadata comprises any descriptive information that is not essential-for getting the model to run. For example "author" is metadata, while-"type", "base" and "format" are not. The latter fields are part of the-model's config, as defined in `invokeai.backend.model_manager.config`.--### Example Usage--```-from invokeai.backend.model_manager.metadata import (- AnyModelRepoMetadata,-)-# to access the initialized sql database-from invokeai.app.api.dependencies import ApiDependencies--hf = HuggingFaceMetadataFetch()--# fetch the metadata-model_metadata = hf.from_id("<repo_id>")--assert isinstance(model_metadata, HuggingFaceMetadata)-```--### Structure of the Metadata objects--There is a short class hierarchy of Metadata objects, all of which-descend from the Pydantic `BaseModel`.--#### `ModelMetadataBase`--This is the common base class for metadata:--| **Field Name** | **Type** | **Description** |-|----------------|-----------------|------------------|-| `name` | str | Repository's name for the model |-| `author` | str | Model's author |-| `tags` | Set[str] | Model tags |--Note that the model config record also has a `name` field. It is-intended that the config record version be locally customizable, while-the metadata version is read-only. However, enforcing this is expected-to be part of the business logic.--Descendents of the base add additional fields.--#### `HuggingFaceMetadata`--This descends from `ModelMetadataBase` and adds the following fields:--| **Field Name** | **Type** | **Description** |-|----------------|-----------------|------------------|-| `type` | Literal["huggingface"] | Used for the discriminated union of metadata classes|-| `id` | str | HuggingFace repo_id |-| `tag_dict` | Dict[str, Any] | A dictionary of tag/value pairs provided in addition to `tags` |-| `last_modified`| datetime | Date of last commit of this model to the repo |-| `files` | List[Path] | List of the files in the model repo |--#### `AnyModelRepoMetadata`--This is a discriminated Union of `HuggingFaceMetadata`.--### Fetching Metadata from Online Repos--The `HuggingFaceMetadataFetch` class will-retrieve metadata from its corresponding repository and return-`AnyModelRepoMetadata` objects. Their base class-`ModelMetadataFetchBase` is an abstract class that defines two-methods: `from_url()` and `from_id()`. The former accepts the type of-model URLs that the user will try to cut and paste into the model-import form. The latter accepts a string ID in the format recognized-by the repository of choice. Both methods return an-`AnyModelRepoMetadata`.--The base class also has a class method `from_json()` which will take-the JSON representation of a `ModelMetadata` object, validate it, and-return the corresponding `AnyModelRepoMetadata` object.--When initializing one of the metadata fetching classes, you may-provide a `requests.Session` argument. This allows you to customize-the low-level HTTP fetch requests and is used, for instance, in the-testing suite to avoid hitting the internet.--The HuggingFace fetcher subclass add additional repo-specific fetching methods:--#### HuggingFaceMetadataFetch--This overrides its base class `from_json()` method to return a-`HuggingFaceMetadata` object directly.--### Metadata Storage--The `ModelConfigBase` stores this response in the `source_api_response` field-as a JSON blob.--***--## The Lowdown on the ModelLoadService--The `ModelLoadService` is responsible for loading a named model into-memory so that it can be used for inference. Despite the fact that it-does a lot under the covers, it is very straightforward to use.--An application-wide model loader is created at API initialization time-and stored in-`ApiDependencies.invoker.services.model_loader`. However, you can-create alternative instances if you wish.--### Creating a ModelLoadService object--The class is defined in-`invokeai.app.services.model_load`. It is initialized with-an InvokeAIAppConfig object, from which it gets configuration-information such as the user's desired GPU and precision, and with a-previously-created `ModelRecordServiceBase` object, from which it-loads the requested model's configuration information.--Here is a typical initialization pattern:--```-from invokeai.app.services.config import InvokeAIAppConfig-from invokeai.app.services.model_load import ModelLoadService, ModelLoaderRegistry--config = InvokeAIAppConfig.get_config()-ram_cache = ModelCache(- max_cache_size=config.ram_cache_size, max_vram_cache_size=config.vram_cache_size, logger=logger-)-convert_cache = ModelConvertCache(- cache_path=config.models_convert_cache_path, max_size=config.convert_cache_size-)-loader = ModelLoadService(- app_config=config,- ram_cache=ram_cache,- convert_cache=convert_cache,- registry=ModelLoaderRegistry-)-```--### load_model(model_config, [submodel_type], [context]) -> LoadedModel--The `load_model()` method takes an `AnyModelConfig` returned by-`ModelRecordService.get_model()` and returns the corresponding loaded-model. It loads the model into memory, gets the model ready for use,-and returns a `LoadedModel` object.--The optional second argument, `subtype` is a `SubModelType` string-enum, such as "vae". It is mandatory when used with a main model, and-is used to select which part of the main model to load.--The optional third argument, `context` can be provided by-an invocation to trigger model load event reporting. See below for-details.--The returned `LoadedModel` object contains a copy of the configuration-record returned by the model record `get_model()` method, as well as-the in-memory loaded model:--| **Attribute Name** | **Type** | **Description** |-|----------------|-----------------|------------------|-| `config` | AnyModelConfig | A copy of the model's configuration record for retrieving base type, etc. |-| `model` | AnyModel | The instantiated model (details below) |--### get_model_by_key(key, [submodel]) -> LoadedModel--The `get_model_by_key()` method will retrieve the model using its-unique database key. For example:--loaded_model = loader.get_model_by_key('f13dd932c0c35c22dcb8d6cda4203764', SubModelType('vae'))--`get_model_by_key()` may raise any of the following exceptions:--* `UnknownModelException` -- key not in database-* `ModelNotFoundException` -- key in database but model not found at path-* `NotImplementedException` -- the loader doesn't know how to load this type of model--### Using the Loaded Model in Inference--`LoadedModel` acts as a context manager. The context loads the model-into the execution device (e.g. VRAM on CUDA systems), locks the model-in the execution device for the duration of the context, and returns-the model. Use it like this:--```-loaded_model_= loader.get_model_by_key('f13dd932c0c35c22dcb8d6cda4203764', SubModelType('vae'))-with loaded_model as vae:- image = vae.decode(latents)[0]-```--The object returned by the LoadedModel context manager is an-`AnyModel`, which is a Union of `ModelMixin`, `torch.nn.Module`,-`IAIOnnxRuntimeModel`, `IPAdapter`, `IPAdapterPlus`, and-`EmbeddingModelRaw`. `ModelMixin` is the base class of all diffusers-models, `EmbeddingModelRaw` is used for LoRA and TextualInversion-models. The others are obvious.--In addition, you may call `LoadedModel.model_on_device()`, a context-manager that returns a tuple of the model's state dict in CPU and the-model itself in VRAM. It is used to optimize the LoRA patching and-unpatching process:--```-loaded_model_= loader.get_model_by_key('f13dd932c0c35c22dcb8d6cda4203764', SubModelType('vae'))-with loaded_model.model_on_device() as (state_dict, vae):- image = vae.decode(latents)[0]-```--Since not all models have state dicts, the `state_dict` return value-can be None.---### Emitting model loading events--When the `context` argument is passed to `load_model_*()`, it will-retrieve the invocation event bus from the passed `InvocationContext`-object to emit events on the invocation bus. The two events are-"model_load_started" and "model_load_completed". Both carry the-following payload:--```-payload=dict(- queue_id=queue_id,- queue_item_id=queue_item_id,- queue_batch_id=queue_batch_id,- graph_execution_state_id=graph_execution_state_id,- model_key=model_key,- submodel_type=submodel,- hash=model_info.hash,- location=str(model_info.location),- precision=str(model_info.precision),-)-```--### Adding Model Loaders--Model loaders are small classes that inherit from the `ModelLoader`-base class. They typically implement one method `_load_model()` whose-signature is:--```-def _load_model(- self,- model_path: Path,- model_variant: Optional[ModelRepoVariant] = None,- submodel_type: Optional[SubModelType] = None,-) -> AnyModel:-```--`_load_model()` will be passed the path to the model on disk, an-optional repository variant (used by the diffusers loaders to select,-e.g. the `fp16` variant, and an optional submodel_type for main and-onnx models.--To install a new loader, place it in-`invokeai/backend/model_manager/load/model_loaders`. Inherit from-`ModelLoader` and use the `@ModelLoaderRegistry.register()` decorator to-indicate what type of models the loader can handle.--Here is a complete example from `generic_diffusers.py`, which is able-to load several different diffusers types:--```-from pathlib import Path-from typing import Optional--from invokeai.backend.model_manager import (- AnyModel,- BaseModelType,- ModelFormat,- ModelRepoVariant,- ModelType,- SubModelType,-)-from .. import ModelLoader, ModelLoaderRegistry--[email protected](base=BaseModelType.Any, type=ModelType.CLIPVision, format=ModelFormat.Diffusers)[email protected](base=BaseModelType.Any, type=ModelType.T2IAdapter, format=ModelFormat.Diffusers)-class GenericDiffusersLoader(ModelLoader):- """Class to load simple diffusers models."""-- def _load_model(- self,- model_path: Path,- model_variant: Optional[ModelRepoVariant] = None,- submodel_type: Optional[SubModelType] = None,- ) -> AnyModel:- model_class = self._get_hf_load_class(model_path)- if submodel_type is not None:- raise Exception(f"There are no submodels in models of type {model_class}")- variant = model_variant.value if model_variant else None- result: AnyModel = model_class.from_pretrained(model_path, torch_dtype=self._torch_dtype, variant=variant) # type: ignore- return result-```--Note that a loader can register itself to handle several different-model types. An exception will be raised if more than one loader tries-to register the same model type.--#### Conversion--Some models require conversion to diffusers format before they can be-loaded. These loaders should override two additional methods:--```-_needs_conversion(self, config: AnyModelConfig, model_path: Path, dest_path: Path) -> bool-_convert_model(self, config: AnyModelConfig, model_path: Path, output_path: Path) -> Path:-```--The first method accepts the model configuration, the path to where-the unmodified model is currently installed, and a proposed-destination for the converted model. This method returns True if the-model needs to be converted. It typically does this by comparing the-last modification time of the original model file to the modification-time of the converted model. In some cases you will also want to check-the modification date of the configuration record, in the event that-the user has changed something like the scheduler prediction type that-will require the model to be re-converted. See `controlnet.py` for an-example of this logic.--The second method accepts the model configuration, the path to the-original model on disk, and the desired output path for the converted-model. It does whatever it needs to do to get the model into diffusers-format, and returns the Path of the resulting model. (The path should-ordinarily be the same as `output_path`.)--## The ModelManagerService object--For convenience, the API provides a `ModelManagerService` object which-gives a single point of access to the major model manager-services. This object is created at initialization time and can be-found in the global `ApiDependencies.invoker.services.model_manager`-object, or in `context.services.model_manager` from within an-invocation.--In the examples below, we have retrieved the manager using:--```-mm = ApiDependencies.invoker.services.model_manager-```--The following properties and methods will be available:--### mm.store--This retrieves the `ModelRecordService` associated with the-manager. Example:--```-configs = mm.store.get_model_by_attr(name='stable-diffusion-v1-5')-```--### mm.install--This retrieves the `ModelInstallService` associated with the manager.-Example:--```-job = mm.install.heuristic_import(`https://civitai.com/models/58390/detail-tweaker-lora-lora`)-```--### mm.load--This retrieves the `ModelLoaderService` associated with the manager. Example:--```-configs = mm.store.get_model_by_attr(name='stable-diffusion-v1-5')-assert len(configs) > 0--loaded_model = mm.load.load_model(configs[0])-```--The model manager also offers a few convenience shortcuts for loading-models:--### mm.load_model_by_config(model_config, [submodel], [context]) -> LoadedModel--Same as `mm.load.load_model()`.--### mm.load_model_by_attr(model_name, base_model, model_type, [submodel], [context]) -> LoadedModel--This accepts the combination of the model's name, type and base, which-it passes to the model record config store for retrieval. If a unique-model config is found, this method returns a `LoadedModel`. It can-raise the following exceptions:--```-UnknownModelException -- model with these attributes not known-NotImplementedException -- the loader doesn't know how to load this type of model-ValueError -- more than one model matches this combination of base/type/name-```--### mm.load_model_by_key(key, [submodel], [context]) -> LoadedModel--This method takes a model key, looks it up using the-`ModelRecordServiceBase` object in `mm.store`, and passes the returned-model configuration to `load_model_by_config()`. It may raise a-`NotImplementedException`.--## Invocation Context Model Manager API--Within invocations, the following methods are available from the-`InvocationContext` object:--### context.download_and_cache_model(source) -> Path--This method accepts a `source` of a remote model, downloads and caches-it locally, and then returns a Path to the local model. The source can-be a direct download URL or a HuggingFace repo_id.--In the case of HuggingFace repo_id, the following variants are-recognized:--* stabilityai/stable-diffusion-v4 -- default model-* stabilityai/stable-diffusion-v4:fp16 -- fp16 variant-* stabilityai/stable-diffusion-v4:fp16:vae -- the fp16 vae subfolder-* stabilityai/stable-diffusion-v4:onnx:vae -- the onnx variant vae subfolder--You can also point at an arbitrary individual file within a repo_id-directory using this syntax:--* stabilityai/stable-diffusion-v4::/checkpoints/sd4.safetensors--### context.load_local_model(model_path, [loader]) -> LoadedModel--This method loads a local model from the indicated path, returning a-`LoadedModel`. The optional loader is a Callable that accepts a Path-to the object, and returns a `AnyModel` object. If no loader is-provided, then the method will use `torch.load()` for a .ckpt or .bin-checkpoint file, `safetensors.torch.load_file()` for a safetensors-checkpoint file, or `cls.from_pretrained()` for a directory that looks-like a diffusers directory.--### context.load_remote_model(source, [loader]) -> LoadedModel--This method accepts a `source` of a remote model, downloads and caches-it locally, loads it, and returns a `LoadedModel`. The source can be a-direct download URL or a HuggingFace repo_id.--In the case of HuggingFace repo_id, the following variants are-recognized:--* stabilityai/stable-diffusion-v4 -- default model-* stabilityai/stable-diffusion-v4:fp16 -- fp16 variant-* stabilityai/stable-diffusion-v4:fp16:vae -- the fp16 vae subfolder-* stabilityai/stable-diffusion-v4:onnx:vae -- the onnx variant vae subfolder--You can also point at an arbitrary individual file within a repo_id-directory using this syntax:--* stabilityai/stable-diffusion-v4::/checkpoints/sd4.safetensors---diff --git a/docs-old/contributing/NEW_MODEL_INTEGRATION.md b/docs-old/contributing/NEW_MODEL_INTEGRATION.mddeleted file mode 100644index ca5372c033..0000000000--- a/docs-old/contributing/NEW_MODEL_INTEGRATION.md+++ /dev/null@@ -1,1323 +0,0 @@-# InvokeAI - New Model Type Integration Checklist--This documentation describes all the steps required to integrate a new model type into InvokeAI. The implementations of FLUX.1, FLUX.2 Klein, SD3, SDXL, and Z-Image serve as references.-------## Table of Contents--1. [Backend: Model Manager](#1-backend-model-manager)-2. [Backend: Model Configs](#2-backend-model-configs)-3. [Backend: Model Loader](#3-backend-model-loader)-4. [Backend: Invocations](#4-backend-invocations)-5. [Backend: Sampling and Denoise](#5-backend-sampling-and-denoise)-6. [Frontend: Graph Building](#6-frontend-graph-building)-7. [Frontend: State Management](#7-frontend-state-management)-8. [Frontend: Parameter Recall](#8-frontend-parameter-recall)-9. [Metadata and Generation Modes](#9-metadata-and-generation-modes)-10. [Starter Models](#10-starter-models)-11. [Optional Features](#11-optional-features)-------## 1. Backend: Model Manager--### 1.1 Add BaseModelType--**File:** `invokeai/backend/model_manager/taxonomy.py`--```python-class BaseModelType(str, Enum):- # Existing types- StableDiffusion1 = "sd-1"- StableDiffusion2 = "sd-2"- StableDiffusionXL = "sdxl"- Flux = "flux"- Flux2 = "flux2" # FLUX.2 Klein- SD3 = "sd-3"- ZImage = "z-image"- # NEW:- NewModel = "newmodel"-```--### 1.2 Add Variant Type (if needed)--**File:** `invokeai/backend/model_manager/taxonomy.py`--```python-# Examples of existing variants:-class FluxVariantType(str, Enum):- Schnell = "schnell"- Dev = "dev"- DevFill = "dev_fill"--class Flux2VariantType(str, Enum):- Klein4B = "klein_4b" # Qwen3 4B encoder- Klein9B = "klein_9b" # Qwen3 8B distilled- Klein9BBase = "klein_9b_base"--# NEW (if needed):-class NewModelVariantType(str, Enum):- VariantA = "variant_a"- VariantB = "variant_b"-```--### 1.3 Define Default Settings--**File:** `invokeai/backend/model_manager/configs/main.py`--```python-class MainModelDefaultSettings:- @staticmethod- def from_base(base: BaseModelType, variant: AnyVariant | None = None):- match base:- case BaseModelType.Flux2:- if variant == Flux2VariantType.Klein9BBase:- return MainModelDefaultSettings(steps=28, cfg_scale=1.0, ...)- return MainModelDefaultSettings(steps=4, cfg_scale=1.0, ...)- # NEW:- case BaseModelType.NewModel:- return MainModelDefaultSettings(steps=20, cfg_scale=7.0, ...)-```--### Backend Model Manager Checklist--- [ ] Extend `BaseModelType` enum (`taxonomy.py`)-- [ ] Create variant enum if needed (`taxonomy.py`)-- [ ] Update `AnyVariant` union (`taxonomy.py`)-- [ ] Add default settings in `from_base()` (`configs/main.py`)-------## 2. Backend: Model Configs--### 2.1 Create Main Model Config--**File:** `invokeai/backend/model_manager/configs/main.py`--```python-# Checkpoint Format-class Main_Checkpoint_NewModel_Config(Checkpoint_Config_Base):- type: Literal[ModelType.Main] = ModelType.Main- base: Literal[BaseModelType.NewModel] = BaseModelType.NewModel- format: Literal[ModelFormat.Checkpoint] = ModelFormat.Checkpoint- variant: NewModelVariantType = NewModelVariantType.VariantA-- @classmethod- def from_model_on_disk(cls, mod: ModelOnDisk, override_fields: dict) -> Self:- if not cls._validate_is_newmodel(mod):- raise NotAMatchError("Not a NewModel")- variant = cls._get_variant_or_raise(mod)- return cls(..., variant=variant)--# Diffusers Format-class Main_Diffusers_NewModel_Config(Diffusers_Config_Base):- type: Literal[ModelType.Main] = ModelType.Main- base: Literal[BaseModelType.NewModel] = BaseModelType.NewModel- format: Literal[ModelFormat.Diffusers] = ModelFormat.Diffusers-```--### 2.2 Detection Helper Functions--**File:** `invokeai/backend/model_manager/configs/main.py`--```python-def _is_newmodel(state_dict: dict) -> bool:- """Detect if state dict belongs to NewModel architecture."""- # Example FLUX.2 Klein detection:- # - context_embedder.weight shape[1] > 4096 (Qwen3 vs T5)- # - img_in.weight shape[1] == 128 (32 latent channels × 4)- required_keys = ["transformer_blocks.0.attn.to_q.weight", ...]- return all(key in state_dict for key in required_keys)--def _get_newmodel_variant(state_dict: dict) -> NewModelVariantType:- """Determine variant from state dict."""- # Example FLUX.2: context_in_dim distinguishes Klein 4B/9B- context_dim = state_dict["context_embedder.weight"].shape[1]- if context_dim == 7680:- return NewModelVariantType.VariantA- return NewModelVariantType.VariantB-```--### 2.3 VAE Config (if custom VAE)--**File:** `invokeai/backend/model_manager/configs/vae.py`--```python-class VAE_Checkpoint_NewModel_Config(VAE_Checkpoint_Base):- type: Literal[ModelType.VAE] = ModelType.VAE- base: Literal[BaseModelType.NewModel] = BaseModelType.NewModel-- @classmethod- def from_model_on_disk(cls, mod: ModelOnDisk, ...) -> Self:- if not _is_newmodel_vae(mod.state_dict):- raise NotAMatchError()- return cls(...)--def _is_newmodel_vae(state_dict: dict) -> bool:- # Example FLUX.2: Check for BN layers (bn.running_mean)- return "encoder.bn.running_mean" in state_dict-```--### 2.4 Text Encoder Config (if custom encoder)--**File:** `invokeai/backend/model_manager/configs/[encoder_type].py`--```python-def _has_newmodel_encoder_keys(state_dict: dict) -> bool:- """Check if state dict contains NewModel encoder keys."""- required_keys = ["model.layers.0.", "model.embed_tokens.weight"]- return any(- key.startswith(indicator) or key == indicator- for key in state_dict.keys()- for indicator in required_keys- if isinstance(key, str)- )--class NewModelEncoder_Checkpoint_Config(Checkpoint_Config_Base):- """Configuration for single-file NewModel Encoder models."""-- base: Literal[BaseModelType.Any] = Field(default=BaseModelType.Any)- type: Literal[ModelType.NewModelEncoder] = Field(default=ModelType.NewModelEncoder)- format: Literal[ModelFormat.Checkpoint] = Field(default=ModelFormat.Checkpoint)-- @classmethod- def from_model_on_disk(cls, mod: ModelOnDisk, override_fields: dict) -> Self:- raise_if_not_file(mod)- raise_for_override_fields(cls, override_fields)-- if not _has_newmodel_encoder_keys(mod.load_state_dict()):- raise NotAMatchError("state dict does not look like a NewModel encoder")-- return cls(**override_fields)--class NewModelEncoder_Diffusers_Config(Config_Base):- """Configuration for NewModel Encoder in diffusers directory format."""-- base: Literal[BaseModelType.Any] = Field(default=BaseModelType.Any)- type: Literal[ModelType.NewModelEncoder] = Field(default=ModelType.NewModelEncoder)- format: Literal[ModelFormat.Diffusers] = Field(default=ModelFormat.Diffusers)-- @classmethod- def from_model_on_disk(cls, mod: ModelOnDisk, override_fields: dict) -> Self:- raise_if_not_dir(mod)- raise_for_override_fields(cls, override_fields)-- # Check for text_encoder config- config_path = mod.path / "text_encoder" / "config.json"- if not config_path.exists():- raise NotAMatchError(f"config file not found: {config_path}")-- raise_for_class_name(config_path, {"NewModelForCausalLM"})-- return cls(**override_fields)-```--Examples of existing implementations:-- `t5_encoder.py` - T5 Encoder for FLUX.1, SD3-- `qwen3_encoder.py` - Qwen3 Encoder for FLUX.2 Klein, Z-Image-- `clip_embed.py` - CLIP Encoder for SDXL, SD3--### 2.5 Update AnyModelConfig Union--**File:** `invokeai/backend/model_manager/configs/factory.py`--```python-AnyModelConfig = Annotated[- # ... existing configs- Main_Checkpoint_NewModel_Config |- Main_Diffusers_NewModel_Config |- VAE_Checkpoint_NewModel_Config,- Discriminator(...)-]-```--### Backend Model Configs Checklist--- [ ] Create main checkpoint config (`configs/main.py`)-- [ ] Create main diffusers config (`configs/main.py`)-- [ ] Create detection helper functions (`_is_newmodel()`, `_get_variant()`)-- [ ] Create VAE config if custom VAE (`configs/vae.py`)-- [ ] Create text encoder config if custom encoder-- [ ] Update `AnyModelConfig` union (`configs/factory.py`)-------## 3. Backend: Model Loader--### 3.1 Create Model Loader--**File:** `invokeai/backend/model_manager/load/model_loaders/[newmodel].py`--```python- base=BaseModelType.NewModel,- type=ModelType.Main,- format=ModelFormat.Checkpoint-)-class NewModelLoader(ModelLoader):- def _load_model(self, config: AnyModelConfig, submodel_type: SubModelType | None) -> AnyModel:- # Load and convert state dict- state_dict = self._load_state_dict(config.path)-- # If format conversion needed (e.g., BFL → Diffusers):- if self._is_bfl_format(state_dict):- state_dict = self._convert_bfl_to_diffusers(state_dict)-- # Instantiate model- model = NewModelTransformer(config=model_config)- model.load_state_dict(state_dict)- return model-```--### 3.2 VAE Loader (if custom VAE)--**File:** `invokeai/backend/model_manager/load/model_loaders/[newmodel].py`--```python- base=BaseModelType.NewModel,- type=ModelType.VAE,- format=ModelFormat.Checkpoint-)-class NewModelVAELoader(ModelLoader):- def _load_model(self, config, submodel_type) -> AnyModel:- # Example FLUX.2: AutoencoderKLFlux2 with BN layers- from diffusers import AutoencoderKLFlux2- vae = AutoencoderKLFlux2.from_single_file(config.path)- return vae-```--### 3.3 Text Encoder Loader (if custom encoder)--**File:** `invokeai/backend/model_manager/load/model_loaders/[newmodel].py`--```python- base=BaseModelType.Any,- type=ModelType.NewModelEncoder,- format=ModelFormat.Checkpoint-)-class NewModelEncoderLoader(ModelLoader):- """Load single-file NewModel Encoder models."""-- def _load_model(self, config: AnyModelConfig, submodel_type: SubModelType | None) -> AnyModel:- match submodel_type:- case SubModelType.TextEncoder:- return self._load_text_encoder(config)- case SubModelType.Tokenizer:- # Load tokenizer from HuggingFace or local path- return AutoTokenizer.from_pretrained("org/newmodel-base")-- raise ValueError(f"Unsupported submodel: {submodel_type}")-- def _load_text_encoder(self, config: AnyModelConfig) -> AnyModel:- from safetensors.torch import load_file- from transformers import NewModelConfig, NewModelForCausalLM-- # Load state dict and determine model configuration- sd = load_file(config.path)-- # Detect model architecture from weights- layer_count = self._count_layers(sd)- hidden_size = sd["model.embed_tokens.weight"].shape[1]-- # Create model with detected configuration- model_config = NewModelConfig(- hidden_size=hidden_size,- num_hidden_layers=layer_count,- # ... other config parameters- )-- with accelerate.init_empty_weights():- model = NewModelForCausalLM(model_config)-- model.load_state_dict(sd, assign=True)- return model-```--### Backend Model Loader Checklist--- [ ] Create and register main model loader-- [ ] Create VAE loader if custom VAE-- [ ] Create text encoder loader if custom encoder-- [ ] Implement state dict conversion if needed (different formats)-- [ ] Implement submodel loading (Diffusers format)-------## 4. Backend: Invocations--### 4.1 Model Loader Invocation--**File:** `invokeai/app/invocations/[newmodel]_model_loader.py`--```python-@invocation("newmodel_model_loader", title="NewModel Loader", ...)-class NewModelModelLoaderInvocation(BaseInvocation):- model: ModelIdentifierField = InputField(description="Main model")- vae_model: ModelIdentifierField | None = InputField(default=None)- encoder_model: ModelIdentifierField | None = InputField(default=None)-- def invoke(self, context: InvocationContext) -> NewModelLoaderOutput:- # Load transformer- transformer = self.model.model_copy(- update={"submodel_type": SubModelType.Transformer}- )- # Load VAE (from main model or separately)- if self.vae_model:- vae = self.vae_model.model_copy(...)- else:- vae = self.model.model_copy(- update={"submodel_type": SubModelType.VAE}- )- return NewModelLoaderOutput(transformer=transformer, vae=vae, ...)-```--### 4.2 Text Encoder Invocation--**File:** `invokeai/app/invocations/[newmodel]_text_encoder.py`--```python-@invocation("newmodel_text_encode", title="NewModel Text Encoder", ...)-class NewModelTextEncoderInvocation(BaseInvocation):- prompt: str = InputField()- encoder: EncoderField = InputField()-- def invoke(self, context: InvocationContext) -> ConditioningOutput:- # 1. Tokenize the prompt- with context.models.load(self.encoder.tokenizer) as tokenizer:- input_ids = tokenizer(- self.prompt,- return_tensors="pt",- padding="max_length",- max_length=256,- truncation=True- ).input_ids-- # 2. Run encoder and extract hidden states- # Example FLUX.2 Klein/Z-Image: Extract specific layers and stack them- # Different models use different layer extraction strategies:- # - Some use the final hidden state only- # - Others stack multiple intermediate layers for richer representations- with context.models.load(self.encoder.text_encoder) as encoder:- outputs = encoder(input_ids, output_hidden_states=True)- hidden_states = outputs.hidden_states-- # Stack layers 9, 18, 27 to create combined text embedding- # This captures features at different abstraction levels- # Shape: (batch, seq_len, hidden_size) -> (batch, seq_len, hidden_size * 3)- stacked_embeddings = torch.cat([- hidden_states[9],- hidden_states[18],- hidden_states[27]- ], dim=-1)-- # 3. Create conditioning data structure- # The stacked embeddings become the text conditioning that guides denoising- conditioning_data = ConditioningFieldData(- conditionings=[- BasicConditioningInfo(embeds=stacked_embeddings)- ]- )-- # 4. Save conditioning to context and return reference- conditioning_name = context.conditioning.save(conditioning_data)- return ConditioningOutput(- conditioning=ConditioningField(conditioning_name=conditioning_name)- )-```--### 4.3 Denoise Invocation--**File:** `invokeai/app/invocations/[newmodel]_denoise.py`--```python-@invocation("newmodel_denoise", title="NewModel Denoise", ...)-class NewModelDenoiseInvocation(BaseInvocation):- # Standard Fields- latents: LatentsField | None = InputField(default=None)- noise: LatentsField | None = InputField(default=None)- positive_conditioning: ConditioningField = InputField()- negative_conditioning: ConditioningField | None = InputField(default=None)-- # Model Fields- transformer: TransformerField = InputField()-- # Denoise Parameters- denoising_start: float = InputField(default=0.0, ge=0, le=1)- denoising_end: float = InputField(default=1.0, ge=0, le=1)- steps: int = InputField(default=20, ge=1)- cfg_scale: float = InputField(default=7.0)- add_noise: bool = InputField(default=True)-- # Image-to-Image / Inpainting- denoise_mask: DenoiseMaskField | None = InputField(default=None)-- # Scheduler (if model-specific)- scheduler: Literal["euler", "heun", "lcm"] = InputField(default="euler")-- def invoke(self, context: InvocationContext) -> LatentsOutput:- # 1. Load or generate noise- if self.noise is not None:- noise = self._load_and_validate_noise(context)- else:- noise = get_noise_newmodel(seed, height, width, ...)-- # 2. Compute schedule- timesteps = get_schedule_newmodel(num_steps, denoising_start, denoising_end)-- # 3. Prepare init latents and img2img preblend- if latents is not None and self.add_noise:- x = noise * timesteps[0] + latents * (1.0 - timesteps[0])- elif latents is not None:- x = latents- else:- x = noise-- # 4. Pack latents (if needed)- x = pack_newmodel(x)-- # 5. Denoising loop- x = denoise(- model=transformer,- x=x,- timesteps=timesteps,- conditioning=conditioning,- cfg_scale=self.cfg_scale,- inpaint_extension=inpaint_extension, # For inpainting- )-- # 6. Unpack latents- latents = unpack_newmodel(x)-- return LatentsOutput(latents=latents)-```--If the architecture supports external noise, the denoise invocation should-accept an optional `noise: LatentsField` input and preserve the existing-seed-driven path when it is not connected. Validate external noise against-the architecture's expected rank, channel count, and spatial shape before-using it. Existing workflows must continue to work unchanged when `noise` is-left disconnected.--### 4.4 VAE Encode Invocation--**File:** `invokeai/app/invocations/[newmodel]_vae_encode.py`--```python-@invocation("newmodel_vae_encode", title="Image to Latents - NewModel", ...)-class NewModelVaeEncodeInvocation(BaseInvocation):- image: ImageField = InputField()- vae: VAEField = InputField()-- def invoke(self, context: InvocationContext) -> LatentsOutput:- image = context.images.get_pil(self.image.image_name)- image_tensor = image_resized_to_grid_as_tensor(image.convert("RGB"))-- with context.models.load(self.vae.vae) as vae:- latent_dist = vae.encode(image_tensor)- latents = latent_dist.mode() # Deterministic-- return LatentsOutput(latents=latents)-```--### 4.5 VAE Decode Invocation--**File:** `invokeai/app/invocations/[newmodel]_vae_decode.py`--```python-@invocation("newmodel_vae_decode", title="Latents to Image - NewModel", ...)-class NewModelVaeDecodeInvocation(BaseInvocation):- latents: LatentsField = InputField()- vae: VAEField = InputField()-- def invoke(self, context: InvocationContext) -> ImageOutput:- latents = context.tensors.load(self.latents.latents_name)-- with context.models.load(self.vae.vae) as vae:- # Example FLUX.2: BN denormalization before decode- if hasattr(vae, "bn"):- latents = self._bn_denormalize(latents, vae)-- image = vae.decode(latents).sample- image = (image / 2 + 0.5).clamp(0, 1)-- return ImageOutput(image=image)-```--### Backend Invocations Checklist--- [ ] Model loader invocation (`[newmodel]_model_loader.py`)-- [ ] Text encoder invocation (`[newmodel]_text_encoder.py`)-- [ ] Denoise invocation (`[newmodel]_denoise.py`)-- [ ] Add optional `noise: LatentsField` when the architecture supports- external noise-- [ ] Preserve the seed-driven fallback path when `noise` is not connected-- [ ] VAE encode invocation (`[newmodel]_vae_encode.py`)-- [ ] VAE decode invocation (`[newmodel]_vae_decode.py`)-- [ ] Define output classes (e.g., `NewModelLoaderOutput`)-- [ ] Define field classes if needed (e.g., `NewModelEncoderField`)-------## 5. Backend: Sampling and Denoise--### 5.1 Sampling Utilities--**File:** `invokeai/backend/[newmodel]/sampling_utils.py`--```python-def get_noise_newmodel(- num_samples: int,- height: int,- width: int,- seed: int,- device: torch.device,- dtype: torch.dtype,-) -> torch.Tensor:- """Generate noise for NewModel.-- Example FLUX.2: 32 latent channels (vs 16 for FLUX.1)- """- latent_channels = 32 # Model-specific- latent_h = height // 8- latent_w = width // 8-- generator = torch.Generator(device=device).manual_seed(seed)- return torch.randn(- (num_samples, latent_channels, latent_h, latent_w),- generator=generator,- device=device,- dtype=dtype,- )--# If the architecture supports external noise, extend the standard-# invokeai/app/invocations/noise.py node when the tensor contract can be-# represented there. Only create a dedicated noise invocation when the-# standard noise node cannot express the architecture cleanly.--def pack_newmodel(x: torch.Tensor) -> torch.Tensor:- """Pack latents for transformer input.-- Example FLUX: 2×2 patches → (B, H/2*W/2, C*4)- """- return rearrange(x, "b c (h ph) (w pw) -> b (h w) (c ph pw)", ph=2, pw=2)--def unpack_newmodel(x: torch.Tensor, height: int, width: int) -> torch.Tensor:- """Unpack transformer output to latents."""- return rearrange(- x, "b (h w) (c ph pw) -> b c (h ph) (w pw)",- h=height // 16, w=width // 16, ph=2, pw=2- )--def get_schedule_newmodel(- num_steps: int,- denoising_start: float = 0.0,- denoising_end: float = 1.0,-) -> list[float]:- """Create timestep schedule.-- Example FLUX.2 Klein: Linear schedule from 1.0 → 0.0- """- start_step = int(num_steps * denoising_start)- end_step = int(num_steps * denoising_end)-- sigmas = torch.linspace(1.0, 0.0, num_steps + 1)- return sigmas[start_step:end_step + 1].tolist()--def generate_img_ids_newmodel(batch_size: int, height: int, width: int) -> torch.Tensor:- """Generate position IDs for transformer.-- Example FLUX.2: 4D position IDs (T, H, W, L)- """- # Model-specific position encoding- pass-```--### 5.2 Denoise Function--**File:** `invokeai/backend/[newmodel]/denoise.py`--```python-def denoise(- model: nn.Module,- img: torch.Tensor,- img_ids: torch.Tensor,- txt: torch.Tensor,- txt_ids: torch.Tensor,- timesteps: list[float],- cfg_scale: list[float],- neg_txt: torch.Tensor | None = None,- neg_txt_ids: torch.Tensor | None = None,- scheduler: Any = None,- inpaint_extension: RectifiedFlowInpaintExtension | None = None,- step_callback: Callable | None = None,-) -> torch.Tensor:- """Main denoising loop.-- Example FLUX.2 Klein:- - No guidance_embeds (unlike FLUX.1 Dev)- - Supports Euler, Heun, LCM schedulers- - Integration with RectifiedFlowInpaintExtension- """- total_steps = len(timesteps) - 1-- for step_index in range(total_steps):- t_curr = timesteps[step_index]- t_prev = timesteps[step_index + 1]-- # CFG- if cfg_scale[step_index] > 1.0 and neg_txt is not None:- pred_pos = model(img, t_curr, txt, txt_ids, img_ids)- pred_neg = model(img, t_curr, neg_txt, neg_txt_ids, img_ids)- pred = pred_neg + cfg_scale[step_index] * (pred_pos - pred_neg)- else:- pred = model(img, t_curr, txt, txt_ids, img_ids)-- # Scheduler step or manual Euler- if scheduler is not None:- img = scheduler.step(pred, t_curr, img).prev_sample- else:- # Manual Euler: x = x + (t_prev - t_curr) * pred- img = img + (t_prev - t_curr) * pred-- # Inpainting merge- if inpaint_extension is not None:- img = inpaint_extension.merge_intermediate_latents_with_init_latents(img, t_prev)-- # Progress callback- if step_callback:- step_callback(PipelineIntermediateState(step=step_index + 1, ...))-- return img-```--If the architecture supports external noise, the denoise path should accept-validated external noise without changing the legacy seed-driven behavior.-Review img2img and inpaint preblend logic carefully when adding scheduler-support. If the initial latent/noise mix is computed before-`scheduler.set_timesteps()`, confirm that the preblend matches the-scheduler's true first effective sigma or timestep.--### 5.3 Scheduler (if model-specific)--**File:** `invokeai/backend/[newmodel]/schedulers.py` or use existing--```python-# Existing schedulers in invokeai/backend/flux/schedulers.py:-# - FlowMatchEulerDiscreteScheduler-# - FlowMatchHeunDiscreteScheduler-# - FlowMatchLCMScheduler--NEWMODEL_SCHEDULER_MAP = {- "euler": FlowMatchEulerDiscreteScheduler,- "heun": FlowMatchHeunDiscreteScheduler,- "lcm": FlowMatchLCMScheduler,-}-```--### Backend Sampling and Denoise Checklist--- [ ] Noise generation (`get_noise_newmodel()`)-- [ ] Extend `invokeai/app/invocations/noise.py` when the architecture's- noise tensor contract fits the standard architecture selector-- [ ] Pack/unpack functions (if transformer-based)-- [ ] Schedule generation (`get_schedule_newmodel()`)-- [ ] Position ID generation (if needed)-- [ ] Implement denoise loop-- [ ] Validate external noise shape and rank if the architecture supports it-- [ ] Scheduler integration-- [ ] Verify img2img and inpaint preblend parity with the scheduler's first- effective timestep or sigma-- [ ] Inpaint extension integration-- [ ] Progress callbacks-------## 6. Frontend: Graph Building--### 6.1 Create Graph Builder--**File:** `invokeai/frontend/web/src/features/nodes/util/graph/generation/buildNewModelGraph.ts`--```typescript-export const buildNewModelGraph = async (arg: GraphBuilderArg): Promise<GraphBuilderResult> => {- const { state, manager } = arg;- const { model } = state.params;-- const g = new Graph();-- // 1. Model Loader- const modelLoader = g.addNode({- id: NEWMODEL_MODEL_LOADER,- type: 'newmodel_model_loader',- model: Graph.getModelMetadataField(model),- });-- // 2. Text Encoder- const positivePrompt = g.addNode({- id: POSITIVE_CONDITIONING,- type: 'newmodel_text_encode',- prompt: positivePromptText,- });- g.addEdge(modelLoader, 'encoder', positivePrompt, 'encoder');-- // 3. Denoise Node- const denoise = g.addNode({- id: NEWMODEL_DENOISE,- type: 'newmodel_denoise',- steps,- cfg_scale: cfg,- scheduler: newmodelScheduler,- denoising_start: 0,- denoising_end: 1,- });- g.addEdge(modelLoader, 'transformer', denoise, 'transformer');- g.addEdge(positivePrompt, 'conditioning', denoise, 'positive_conditioning');-- // 4. VAE Decode- const l2i = g.addNode({- id: NEWMODEL_VAE_DECODE,- type: 'newmodel_vae_decode',- });- g.addEdge(modelLoader, 'vae', l2i, 'vae');- g.addEdge(denoise, 'latents', l2i, 'latents');-- // 5. Generation Mode Handling- let canvasOutput: Invocation<ImageOutputNodes> = l2i;-- switch (generationMode) {- case 'txt2img':- canvasOutput = addTextToImage({ g, state, denoise, l2i });- g.upsertMetadata({ generation_mode: 'newmodel_txt2img' });- break;- case 'img2img':- const i2l = g.addNode({ type: 'newmodel_vae_encode' });- canvasOutput = await addImageToImage({ g, state, manager, denoise, l2i, i2l, ... });- g.upsertMetadata({ generation_mode: 'newmodel_img2img' });- break;- case 'inpaint':- canvasOutput = await addInpaint({ g, state, manager, denoise, l2i, i2l, ... });- g.upsertMetadata({ generation_mode: 'newmodel_inpaint' });- break;- case 'outpaint':- canvasOutput = await addOutpaint({ g, state, manager, denoise, l2i, i2l, ... });- g.upsertMetadata({ generation_mode: 'newmodel_outpaint' });- break;- }-- return { g, noise, denoise, posCond: positivePrompt, ... };-};-```--### 6.2 Register Graph Builder--**File:** `invokeai/frontend/web/src/features/queue/hooks/useEnqueueCanvas.ts`--```typescript-// In the buildGraph function (around line 47-64):-switch (base) {- case 'sd-1':- case 'sd-2':- case 'sdxl':- return buildSD1Graph(arg);- case 'flux':- return buildFLUXGraph(arg);- case 'flux2':- return buildFLUXGraph(arg); // FLUX.2 uses the same builder- case 'sd-3':- return buildSD3Graph(arg);- case 'z-image':- return buildZImageGraph(arg);- // NEW:- case 'newmodel':- return buildNewModelGraph(arg);-}-```--### 6.3 Update Type Definitions--**File:** `invokeai/frontend/web/src/features/nodes/util/graph/types.ts`--```typescript-// Add node types:-export type ImageOutputNodes =- | 'l2i' | 'flux_vae_decode' | 'flux2_vae_decode'- | 'sd3_l2i' | 'newmodel_vae_decode';--export type LatentToImageNodes =- | 'l2i' | 'flux_vae_decode' | 'flux2_vae_decode'- | 'sd3_l2i' | 'newmodel_vae_decode';--export type ImageToLatentsNodes =- | 'i2l' | 'flux_vae_encode' | 'flux2_vae_encode'- | 'sd3_i2l' | 'newmodel_vae_encode';--export type DenoiseLatentsNodes =- | 'denoise_latents' | 'flux_denoise' | 'flux2_denoise'- | 'sd3_denoise' | 'newmodel_denoise';--export type MainModelLoaderNodes =- | 'main_model_loader' | 'flux_model_loader' | 'flux2_klein_model_loader'- | 'sd3_model_loader' | 'newmodel_model_loader';-```--### 6.4 Update Generation Mode Utilities--**Files:**-- `invokeai/frontend/web/src/features/nodes/util/graph/generation/addImageToImage.ts`-- `invokeai/frontend/web/src/features/nodes/util/graph/generation/addInpaint.ts`-- `invokeai/frontend/web/src/features/nodes/util/graph/generation/addOutpaint.ts`--```typescript-// In addImageToImage.ts - extend type check:-if (- denoise.type === 'cogview4_denoise' ||- denoise.type === 'flux_denoise' ||- denoise.type === 'flux2_denoise' ||- denoise.type === 'newmodel_denoise' // NEW-) {- // Rectified flow models: denoising_start instead of noise-}-```--If the architecture supports external noise, do not require generated-workflows to connect it. Keep the denoise node backward compatible by-leaving `noise` disconnected unless the workflow explicitly needs external-noise.--### Frontend Graph Building Checklist--- [ ] Create graph builder (`buildNewModelGraph.ts`)-- [ ] Register graph builder in useEnqueueCanvas-- [ ] Update type definitions (`types.ts`)-- [ ] Extend node type unions (ImageOutputNodes, etc.)-- [ ] Update `addImageToImage.ts`-- [ ] Update `addInpaint.ts`-- [ ] Update `addOutpaint.ts`-------## 7. Frontend: State Management--### 7.1 Add Parameter State--**File:** `invokeai/frontend/web/src/features/controlLayers/store/paramsSlice.ts`--```typescript-// Extend state interface:-interface ParamsState {- // Existing fields- fluxScheduler: 'euler' | 'heun' | 'lcm';- zImageScheduler: 'euler' | 'heun' | 'lcm';-- // NEW: NewModel specific parameters- newmodelScheduler: 'euler' | 'heun' | 'lcm';- newmodelVaeModel: ParameterVAEModel | null;- newmodelEncoderModel: ParameterModel | null;-}--// Initial state:-const initialState: ParamsState = {- newmodelScheduler: 'euler',- newmodelVaeModel: null,- newmodelEncoderModel: null,-};--// Reducers:-reducers: {- setNewmodelScheduler: (state, action: PayloadAction<'euler' | 'heun' | 'lcm'>) => {- state.newmodelScheduler = action.payload;- },- newmodelVaeModelSelected: (state, action: PayloadAction<ParameterVAEModel | null>) => {- state.newmodelVaeModel = action.payload;- },- newmodelEncoderModelSelected: (state, action: PayloadAction<ParameterModel | null>) => {- state.newmodelEncoderModel = action.payload;- },-}-```--### 7.2 Create Selectors--**File:** `invokeai/frontend/web/src/features/controlLayers/store/paramsSlice.ts`--```typescript-// Selectors:-export const selectNewmodelScheduler = createSelector(- selectParamsSlice,- (params) => params.newmodelScheduler-);--export const selectNewmodelVaeModel = createSelector(- selectParamsSlice,- (params) => params.newmodelVaeModel-);--export const selectNewmodelEncoderModel = createSelector(- selectParamsSlice,- (params) => params.newmodelEncoderModel-);-```--### Frontend State Management Checklist--- [ ] Extend state interface for model-specific parameters-- [ ] Define initial state-- [ ] Create reducer actions-- [ ] Create selectors-- [ ] Export actions-------## 8. Frontend: Parameter Recall--### 8.1 Metadata Parsing--**File:** `invokeai/frontend/web/src/features/metadata/parsing.tsx`--```typescript-// Add parameter recall handlers:-const recallNewmodelScheduler = (metadata: CoreMetadata) => {- if (metadata.scheduler) {- dispatch(setNewmodelScheduler(metadata.scheduler));- }-};--const recallNewmodelVaeModel = async (metadata: CoreMetadata) => {- if (metadata.vae) {- const vaeModel = await fetchModelConfig(metadata.vae);- dispatch(newmodelVaeModelSelected(vaeModel));- }-};--const recallNewmodelEncoderModel = async (metadata: CoreMetadata) => {- if (metadata.encoder_model) {- const encoderModel = await fetchModelConfig(metadata.encoder_model);- dispatch(newmodelEncoderModelSelected(encoderModel));- }-};-```--### Frontend Parameter Recall Checklist--- [ ] Recall handlers for each model-specific parameter-- [ ] Model config fetching for submodels-- [ ] Dispatch actions for state updates-------## 9. Metadata and Generation Modes--### 9.1 Add Generation Modes--**File:** `invokeai/app/invocations/metadata.py`--```python-GENERATION_MODES = Literal[- # Existing modes- "txt2img", "img2img", "inpaint", "outpaint",- "sdxl_txt2img", "sdxl_img2img", "sdxl_inpaint", "sdxl_outpaint",- "flux_txt2img", "flux_img2img", "flux_inpaint", "flux_outpaint",- "flux2_txt2img", "flux2_img2img", "flux2_inpaint", "flux2_outpaint",- "sd3_txt2img", "sd3_img2img", "sd3_inpaint", "sd3_outpaint",- # NEW:- "newmodel_txt2img",- "newmodel_img2img",- "newmodel_inpaint",- "newmodel_outpaint",-]-```--### 9.2 Extend CoreMetadata (if needed)--**File:** `invokeai/app/invocations/metadata.py`--```python-@invocation_output("core_metadata_output")-class CoreMetadataOutput(BaseInvocationOutput):- # Existing fields- model: ModelIdentifierField | None = None- steps: int | None = None- cfg_scale: float | None = None-- # NEW: Model-specific metadata fields- newmodel_encoder: ModelIdentifierField | None = None- newmodel_custom_param: float | None = None-```--### Metadata and Generation Modes Checklist--- [ ] Add generation modes to `GENERATION_MODES`-- [ ] Extend CoreMetadata if model-specific fields needed-- [ ] Set metadata in graph builder (`g.upsertMetadata({...})`)-------## 10. Starter Models--### 10.1 Define Starter Models--**File:** `invokeai/backend/model_manager/starter_models.py`--```python-# Main Model-newmodel_main = StarterModel(- name="NewModel Main",- base=BaseModelType.NewModel,- source="organization/newmodel-main", # HuggingFace repo- description="NewModel main transformer. ~10GB",- type=ModelType.Main,-)--# VAE (if separate)-newmodel_vae = StarterModel(- name="NewModel VAE",- base=BaseModelType.NewModel,- source="organization/newmodel::vae", # Submodel syntax- description="NewModel VAE. ~500MB",- type=ModelType.VAE,-)--# Text Encoder (if separate)-newmodel_encoder = StarterModel(- name="NewModel Encoder",- base=BaseModelType.Any,- source="organization/newmodel::text_encoder+tokenizer",- description="NewModel text encoder. ~5GB",- type=ModelType.TextEncoder,-)--# Quantized variants-newmodel_fp8 = StarterModel(- name="NewModel (FP8)",- base=BaseModelType.NewModel,- source="https://huggingface.co/org/newmodel-fp8/resolve/main/model.safetensors",- description="FP8 quantized version. ~5GB",- type=ModelType.Main,- dependencies=[newmodel_vae, newmodel_encoder], # Dependencies!-)--# Add to STARTER_MODELS list:-STARTER_MODELS: list[StarterModel] = [- # ... existing models- newmodel_main,- newmodel_vae,- newmodel_encoder,- newmodel_fp8,-]-```--### Starter Models Checklist--- [ ] Define main model StarterModel-- [ ] Define VAE StarterModel if separate-- [ ] Define text encoder StarterModel if separate-- [ ] Define quantized variants (FP8, GGUF, etc.)-- [ ] Set dependencies correctly-- [ ] Add to `STARTER_MODELS` list-------## 11. Optional Features--### 11.1 ControlNet Support--**Backend Config:**-**File:** `invokeai/backend/model_manager/configs/controlnet.py`--```python-class ControlNet_Checkpoint_NewModel_Config(ControlNet_Checkpoint_Base):- base: Literal[BaseModelType.NewModel] = BaseModelType.NewModel-- @classmethod- def from_model_on_disk(cls, mod: ModelOnDisk, ...) -> Self:- if not _is_newmodel_controlnet(mod.state_dict):- raise NotAMatchError()- return cls(...)-```--**Backend Invocation:**-**File:** `invokeai/app/invocations/[newmodel]_controlnet.py`--```python-@invocation("newmodel_controlnet", ...)-class NewModelControlNetInvocation(BaseInvocation):- image: ImageField = InputField()- controlnet_model: ControlNetField = InputField()- control_weight: float = InputField(default=1.0)-- def invoke(self, context) -> ControlNetOutput:- # Compute ControlNet conditioning- pass-```--**Frontend Graph:**-```typescript-// In buildNewModelGraph.ts:-const { controlNets } = await addControlNets({ g, manager, denoise });-```--### 11.2 IP-Adapter / Reference Images--**Backend Invocation:**-**File:** `invokeai/app/invocations/[newmodel]_ip_adapter.py`--```python-@invocation("newmodel_ip_adapter", ...)-class NewModelIPAdapterInvocation(BaseInvocation):- image: ImageField = InputField()- ip_adapter_model: IPAdapterField = InputField()- weight: float = InputField(default=1.0)-```--**Frontend Graph:**-```typescript-// In buildNewModelGraph.ts:-const { ipAdapters } = await addIPAdapters({ g, manager, denoise });-```--### 11.3 LoRA Support--**Backend Config:**-**File:** `invokeai/backend/model_manager/configs/lora.py`--```python-class LoRA_LyCORIS_NewModel_Config(LoRA_LyCORIS_Base):- base: Literal[BaseModelType.NewModel] = BaseModelType.NewModel-```--**Backend Model Loader Integration:**-```python-# In newmodel_model_loader.py:-class NewModelModelLoaderOutput(BaseInvocationOutput):- transformer: TransformerField # TransformerField already contains loras: list[LoRAField]-```--**Frontend Graph:**-```typescript-// In buildNewModelGraph.ts:-const { loras } = await addLoRAs({ g, manager, denoise, modelLoader });-```--### 11.4 Scheduler UI--**Frontend Component:**-**File:** `invokeai/frontend/web/src/features/parameters/components/NewModelScheduler.tsx`--```typescript-export const NewModelSchedulerSelect = () => {- const dispatch = useAppDispatch();- const scheduler = useAppSelector(selectNewmodelScheduler);-- return (- <Select- value={scheduler}- onChange={(value) => dispatch(setNewmodelScheduler(value))}- options={[- { value: 'euler', label: 'Euler' },- { value: 'heun', label: 'Heun' },- { value: 'lcm', label: 'LCM' },- ]}- />- );-};-```--### Optional Features Checklist--**ControlNet:**-- [ ] Create ControlNet config (`configs/controlnet.py`)-- [ ] Create ControlNet invocation-- [ ] Frontend graph integration (`addControlNets`)--**IP-Adapter:**-- [ ] Create IP-Adapter invocation-- [ ] Create image encoder config if needed-- [ ] Frontend graph integration (`addIPAdapters`)--**LoRA:**-- [ ] Create LoRA config (`configs/lora.py`)-- [ ] LoRA loading in model loader-- [ ] Frontend graph integration (`addLoRAs`)--**Scheduler:**-- [ ] Define scheduler constants-- [ ] Frontend UI component-- [ ] State management--**External Noise:**-- [ ] Add optional `noise: LatentsField` input to the denoise invocation-- [ ] Validate external noise shape against the architecture's expected- latent shape-- [ ] Preserve existing behavior when `noise` is not connected-- [ ] Extend the standard `noise` invocation when the architecture's latent- noise contract can be represented there-- [ ] Add a dedicated architecture-compatible noise invocation only when- the standard `noise` invocation cannot support the architecture cleanly--If your model supports external noise, the denoise invocation should accept-it as an optional input rather than replacing the existing seed-driven path.-When possible, wire the architecture into the standard `noise` invocation's-architecture selector instead of creating a separate noise node. Only create-a dedicated noise invocation if the architecture has a noise tensor contract-that the standard `noise` invocation cannot express cleanly. When external-noise is connected, validate rank, channel count, and spatial shape before-blending it with init latents or using it as the initial latent state.-------## Summary: Minimal Integration--For a **minimal txt2img integration**, the following files are required:--### Backend (Python):-1. `invokeai/backend/model_manager/taxonomy.py` - BaseModelType, Variant-2. `invokeai/backend/model_manager/configs/main.py` - Model configs-3. `invokeai/backend/model_manager/configs/factory.py` - AnyModelConfig-4. `invokeai/backend/model_manager/load/model_loaders/[newmodel].py` - Loader-5. `invokeai/app/invocations/[newmodel]_model_loader.py`-6. `invokeai/app/invocations/[newmodel]_text_encoder.py`-7. `invokeai/app/invocations/[newmodel]_denoise.py`-8. `invokeai/app/invocations/[newmodel]_vae_decode.py`-9. `invokeai/backend/[newmodel]/sampling_utils.py`-10. `invokeai/backend/[newmodel]/denoise.py`-11. `invokeai/app/invocations/metadata.py` - Generation modes--### Frontend (TypeScript):-1. `src/features/nodes/util/graph/generation/buildNewModelGraph.ts`-2. `src/features/nodes/util/graph/types.ts`-3. `src/features/queue/hooks/useEnqueueCanvas.ts`-4. `src/features/controlLayers/store/paramsSlice.ts`--### Additional for img2img/inpaint/outpaint:-1. `invokeai/app/invocations/[newmodel]_vae_encode.py`-2. `src/features/nodes/util/graph/generation/addImageToImage.ts`-3. `src/features/nodes/util/graph/generation/addInpaint.ts`-4. `src/features/nodes/util/graph/generation/addOutpaint.ts`--If the architecture supports external noise, also extend-`invokeai/app/invocations/noise.py` when possible and keep the denoise-invocation's `noise` input optional so existing generated workflows continue-to work without modification.-------## Reference: Existing Implementations--| Feature | FLUX.1 | FLUX.2 Klein | SD3 | SDXL | Z-Image |-|---------|--------|--------------|-----|------|---------|-| Latent Channels | 16 | 32 | 16 | 4 | 32 |-| Text Encoder | CLIP + T5 | Qwen3 | CLIP×3 + T5 | CLIP×2 | Qwen3 |-| VAE | 16ch | 32ch+BN | 16ch | 4ch | 32ch |-| CFG | Optional | Optional | Yes | Yes | Optional |-| Guidance Embed | Dev only | No | No | No | No |-| Pack/Unpack | Yes | Yes | No | No | Yes |diff --git a/docs-old/contributing/PR-MERGE-POLICY.md b/docs-old/contributing/PR-MERGE-POLICY.mddeleted file mode 100644index 4aeb71429e..0000000000--- a/docs-old/contributing/PR-MERGE-POLICY.md+++ /dev/null@@ -1,64 +0,0 @@-# Pull Request Merge Policy--This document outlines the process for reviewing and merging pull requests (PRs) into the InvokeAI repository.--## Review Process--### 1. Assignment--One of the repository maintainers will assign collaborators to review a pull request. The assigned reviewer(s) will be responsible for conducting the code review.--### 2. Review and Iteration--The assignee is responsible for:-- Reviewing the PR thoroughly-- Providing constructive feedback-- Iterating with the PR author until the assignee is satisfied that the PR is fit to merge-- Ensuring the PR meets code quality standards, follows project conventions, and doesn't introduce bugs or regressions--### 3. Approval and Notification--Once the assignee is satisfied with the PR:-- The assignee approves the PR-- The assignee alerts one of the maintainers that the PR is ready for merge using the **#request-reviews Discord channel**--### 4. Final Merge--One of the maintainers is responsible for:-- Performing a final check of the PR-- Merging the PR into the appropriate branch--**Important:** Collaborators are strongly discouraged from merging PRs on their own, except in case of emergency (e.g., critical bug fix and no maintainer is available).--### 5. Release Policy--Once a feature release candidate is published, no feature PRs are to-be merged into main. Only bugfixes are allowed until the final-release.--## Best Practices--### Clean Commit History--To encourage a clean development log, PR authors are encouraged to use `git rebase -i` to suppress trivial commit messages (e.g., `ruff` and `prettier` formatting fixes) after the PR is accepted but before it is merged.--### Merge Strategy--The maintainer will perform either a **3-way merge** or **squash merge** when merging a PR into the `main` branch. This approach helps avoid rebase conflict hell and maintains a cleaner project history.--### Attribution--The PR author should reference any papers, source code or-documentation that they used while creating the code both in the PR-and as comments in the code itself. If there are any licensing-restrictions, these should be linked to and/or reproduced in the repo-root.---## Summary--This policy ensures that:-- All PRs receive proper review from assigned collaborators-- Maintainers have final oversight before code enters the main branch-- The commit history remains clean and meaningful-- Merge conflicts are minimized through appropriate merge strategiesdiff --git a/docs-old/contributing/TESTS.md b/docs-old/contributing/TESTS.mddeleted file mode 100644index 8fa3602dec..0000000000--- a/docs-old/contributing/TESTS.md+++ /dev/null@@ -1,89 +0,0 @@-# InvokeAI Backend Tests--We use `pytest` to run the backend python tests. (See [pyproject.toml](https://github.com/invoke-ai/InvokeAI/blob/main/pyproject.toml) for the default `pytest` options.)--## Fast vs. Slow-All tests are categorized as either 'fast' (no test annotation) or 'slow' (annotated with the `@pytest.mark.slow` decorator).--'Fast' tests are run to validate every PR, and are fast enough that they can be run routinely during development.--'Slow' tests are currently only run manually on an ad-hoc basis. In the future, they may be automated to run nightly. Most developers are only expected to run the 'slow' tests that directly relate to the feature(s) that they are working on.--As a rule of thumb, tests should be marked as 'slow' if there is a chance that they take >1s (e.g. on a CPU-only machine with slow internet connection). Common examples of slow tests are tests that depend on downloading a model, or running model inference.--## Running Tests--Below are some common test commands:-```bash-# Run the fast tests. (This implicitly uses the configured default option: `-m "not slow"`.)-pytest tests/--# Equivalent command to run the fast tests.-pytest tests/ -m "not slow"--# Run the slow tests.-pytest tests/ -m "slow"--# Run the slow tests from a specific file.-pytest tests/path/to/slow_test.py -m "slow"--# Run all tests (fast and slow).-pytest tests -m ""-```--## Test Organization--All backend tests are in the [`tests/`](https://github.com/invoke-ai/InvokeAI/tree/main/tests) directory. This directory mirrors the organization of the `invokeai/` directory. For example, tests for `invokeai/model_management/model_manager.py` would be found in `tests/model_management/test_model_manager.py`.--TODO: The above statement is aspirational. A re-organization of legacy tests is required to make it true.--## Tests that depend on models--There are a few things to keep in mind when adding tests that depend on models.--1. If a required model is not already present, it should automatically be downloaded as part of the test setup.-2. If a model is already downloaded, it should not be re-downloaded unnecessarily.-3. Take reasonable care to keep the total number of models required for the tests low. Whenever possible, re-use models that are already required for other tests. If you are adding a new model, consider including a comment to explain why it is required/unique.--There are several utilities to help with model setup for tests. Here is a sample test that depends on a model:-```python-import pytest-import torch--from invokeai.backend.model_management.models.base import BaseModelType, ModelType-from invokeai.backend.util.test_utils import install_and_load_model--def test_model(model_installer, torch_device):- model_info = install_and_load_model(- model_installer=model_installer,- model_path_id_or_url="HF/dummy_model_id",- model_name="dummy_model",- base_model=BaseModelType.StableDiffusion1,- model_type=ModelType.Dummy,- )-- dummy_input = build_dummy_input(torch_device)-- with torch.no_grad(), model_info as model:- model.to(torch_device, dtype=torch.float32)- output = model(dummy_input)-- # Validate output...--```--## Test Coverage--To review test coverage, append `--cov` to your pytest command:-```bash-pytest tests/ --cov-```--Test outcomes and coverage will be reported in the terminal. In addition, a more detailed report is created in both XML and HTML format in the `./coverage` folder. The HTML output is particularly helpful in identifying untested statements where coverage should be improved. The HTML report can be viewed by opening `./coverage/html/index.html`.--??? info "HTML coverage report output"-- -- diff --git a/docs-old/contributing/contribution_guides/development.md b/docs-old/contributing/contribution_guides/development.mddeleted file mode 100644index 80c3010064..0000000000--- a/docs-old/contributing/contribution_guides/development.md+++ /dev/null@@ -1,49 +0,0 @@-# Development--## **What do I need to know to help?**--If you are looking to help with a code contribution, InvokeAI uses several different technologies under the hood: Python (Pydantic, FastAPI, diffusers) and Typescript (React, Redux Toolkit, ChakraUI, Mantine, Konva). Familiarity with StableDiffusion and image generation concepts is helpful, but not essential.---## **Get Started**--To get started, take a look at our [new contributors checklist](newContributorChecklist.md)--Once you're setup, for more information, you can review the documentation specific to your area of interest:--* #### [InvokeAI Architecure](../ARCHITECTURE.md)-* #### [Frontend Documentation](../frontend/index.md)-* #### [Node Documentation](../INVOCATIONS.md)-* #### [Local Development](../LOCAL_DEVELOPMENT.md)----If you don't feel ready to make a code contribution yet, no problem! You can also help out in other ways, such as [documentation](documentation.md), [translation](translation.md) or helping support other users and triage issues as they're reported in GitHub.--There are two paths to making a development contribution:--1. Choosing an open issue to address. Open issues can be found in the [Issues](https://github.com/invoke-ai/InvokeAI/issues?q=is%3Aissue+is%3Aopen) section of the InvokeAI repository. These are tagged by the issue type (bug, enhancement, etc.) along with the “good first issues” tag denoting if they are suitable for first time contributors.- 1. Additional items can be found on our [roadmap](https://github.com/orgs/invoke-ai/projects/7). The roadmap is organized in terms of priority, and contains features of varying size and complexity. If there is an inflight item you’d like to help with, reach out to the contributor assigned to the item to see how you can help.-2. Opening a new issue or feature to add. **Please make sure you have searched through existing issues before creating new ones.**--*Regardless of what you choose, please post in the [#dev-chat](https://discord.com/channels/1020123559063990373/1049495067846524939) channel of the Discord before you start development in order to confirm that the issue or feature is aligned with the current direction of the project. We value our contributors time and effort and want to ensure that no one’s time is being misspent.*--## Best Practices:-* Keep your pull requests small. Smaller pull requests are more likely to be accepted and merged-* Comments! Commenting your code helps reviewers easily understand your contribution-* Use Python and Typescript’s typing systems, and consider using an editor with [LSP](https://microsoft.github.io/language-server-protocol/) support to streamline development-* Make all communications public. This ensure knowledge is shared with the whole community--## **Where can I go for help?**--If you need help, you can ask questions in the [#dev-chat](https://discord.com/channels/1020123559063990373/1049495067846524939) channel of the Discord.--For frontend related work, **@psychedelicious** is the best person to reach out to.--For backend related work, please reach out to **@blessedcoolant**, **@lstein**, **@StAlKeR7779** or **@psychedelicious**.---## **What does the Code of Conduct mean for me?**--Our [Code of Conduct](../../CODE_OF_CONDUCT.md) means that you are responsible for treating everyone on the project with respect and courtesy regardless of their identity. If you are the victim of any inappropriate behavior or comments as described in our Code of Conduct, we are here for you and will do the best to ensure that the abuser is reprimanded appropriately, per our code.-diff --git a/docs-old/contributing/contribution_guides/documentation.md b/docs-old/contributing/contribution_guides/documentation.mddeleted file mode 100644index 36720a8dfa..0000000000--- a/docs-old/contributing/contribution_guides/documentation.md+++ /dev/null@@ -1,13 +0,0 @@-# Documentation--Documentation is an important part of any open source project. It provides a clear and concise way to communicate how the software works, how to use it, and how to troubleshoot issues. Without proper documentation, it can be difficult for users to understand the purpose and functionality of the project.--## Contributing--All documentation is maintained in our [GitHub repository](https://github.com/invoke-ai/InvokeAI). If you come across documentation that is out of date or incorrect, please submit a pull request with the necessary changes.--When updating or creating documentation, please keep in mind Invoke is a tool for everyone, not just those who have familiarity with generative art.--## Help & Questions--Please ping @hipsterusername on [Discord](https://discord.gg/ZmtBAhwWhy) if you have any questions.diff --git a/docs-old/contributing/contribution_guides/newContributorChecklist.md b/docs-old/contributing/contribution_guides/newContributorChecklist.mddeleted file mode 100644index 623487dff6..0000000000--- a/docs-old/contributing/contribution_guides/newContributorChecklist.md+++ /dev/null@@ -1,77 +0,0 @@-# New Contributor Guide--If you're a new contributor to InvokeAI or Open Source Projects, this is the guide for you.--## New Contributor Checklist--- [x] Set up your local development environment & fork of InvokAI by following [the steps outlined here](../dev-environment.md)-- [x] Set up your local tooling with [this guide](../LOCAL_DEVELOPMENT.md). Feel free to skip this step if you already have tooling you're comfortable with.-- [x] Familiarize yourself with [Git](https://www.atlassian.com/git) & our project structure by reading through the [development documentation](development.md)-- [x] Join the [#dev-chat](https://discord.com/channels/1020123559063990373/1049495067846524939) channel of the Discord-- [x] Choose an issue to work on! This can be achieved by asking in the #dev-chat channel, tackling a [good first issue](https://github.com/invoke-ai/InvokeAI/contribute) or finding an item on the [roadmap](https://github.com/orgs/invoke-ai/projects/7). If nothing in any of those places catches your eye, feel free to work on something of interest to you!-- [x] Make your first Pull Request with the guide below-- [x] Happy development! Don't be afraid to ask for help - we're happy to help you contribute!--## How do I make a contribution?--Never made an open source contribution before? Wondering how contributions work in our project? Here's a quick rundown!--Before starting these steps, ensure you have your local environment [configured for development](../LOCAL_DEVELOPMENT.md).--1. Find a [good first issue](https://github.com/invoke-ai/InvokeAI/contribute) that you are interested in addressing or a feature that you would like to add. Then, reach out to our team in the [#dev-chat](https://discord.com/channels/1020123559063990373/1049495067846524939) channel of the Discord to ensure you are setup for success.-2. Fork the [InvokeAI](https://github.com/invoke-ai/InvokeAI) repository to your GitHub profile. This means that you will have a copy of the repository under **your-GitHub-username/InvokeAI**.-3. Clone the repository to your local machine using:-- ```bash- git clone https://github.com/your-GitHub-username/InvokeAI.git- ```--If you're unfamiliar with using Git through the commandline, [GitHub Desktop](https://desktop.github.com) is a easy-to-use alternative with a UI. You can do all the same steps listed here, but through the interface. 4. Create a new branch for your fix using:-- ```bash- git checkout -b branch-name-here- ```--5. Make the appropriate changes for the issue you are trying to address or the feature that you want to add.-6. Add the file contents of the changed files to the "snapshot" git uses to manage the state of the project, also known as the index:-- ```bash- git add -A- ```--7. Store the contents of the index with a descriptive message.-- ```bash- git commit -m "Insert a short message of the changes made here"- ```--8. Push the changes to the remote repository using-- ```bash- git push origin branch-name-here- ```--9. Submit a pull request to the **main** branch of the InvokeAI repository. If you're not sure how to, [follow this guide](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request)-10. Title the pull request with a short description of the changes made and the issue or bug number associated with your change. For example, you can title an issue like so "Added more log outputting to resolve #1234".-11. In the description of the pull request, explain the changes that you made, any issues you think exist with the pull request you made, and any questions you have for the maintainer. It's OK if your pull request is not perfect (no pull request is), the reviewer will be able to help you fix any problems and improve it!-12. Wait for the pull request to be reviewed by other collaborators.-13. Make changes to the pull request if the reviewer(s) recommend them.-14. Celebrate your success after your pull request is merged!--If you’d like to learn more about contributing to Open Source projects, here is a [Getting Started Guide](https://opensource.com/article/19/7/create-pull-request-github).--## Best Practices--- Keep your pull requests small. Smaller pull requests are more likely to be accepted and merged--- Comments! Commenting your code helps reviewers easily understand your contribution-- Use Python and Typescript’s typing systems, and consider using an editor with [LSP](https://microsoft.github.io/language-server-protocol/) support to streamline development-- Make all communications public. This ensure knowledge is shared with the whole community--## **Where can I go for help?**--If you need help, you can ask questions in the [#dev-chat](https://discord.com/channels/1020123559063990373/1049495067846524939) channel of the Discord.--For frontend related work, **@pyschedelicious** is the best person to reach out to.--For backend related work, please reach out to **@blessedcoolant**, **@lstein**, **@StAlKeR7779** or **@pyschedelicious**.diff --git a/docs-old/contributing/contribution_guides/translation.md b/docs-old/contributing/contribution_guides/translation.mddeleted file mode 100644index 5fe60f7af7..0000000000--- a/docs-old/contributing/contribution_guides/translation.md+++ /dev/null@@ -1,19 +0,0 @@-# Translation--InvokeAI uses [Weblate](https://weblate.org/) for translation. Weblate is a FOSS project providing a scalable translation service. Weblate automates the tedious parts of managing translation of a growing project, and the service is generously provided at no cost to FOSS projects like InvokeAI.--## Contributing--If you'd like to contribute by adding or updating a translation, please visit our [Weblate project](https://hosted.weblate.org/engage/invokeai/). You'll need to sign in with your GitHub account (a number of other accounts are supported, including Google).--Once signed in, select a language and then the Web UI component. From here you can Browse and Translate strings from English to your chosen language. Zen mode offers a simpler translation experience.--Your changes will be attributed to you in the automated PR process; you don't need to do anything else.--## Help & Questions--Please check Weblate's [documentation](https://docs.weblate.org/en/latest/index.html) or ping @Harvestor on [Discord](https://discord.com/channels/1020123559063990373/1049495067846524939) if you have any questions.--## Thanks--Thanks to the InvokeAI community for their efforts to translate the project!diff --git a/docs-old/contributing/contribution_guides/tutorials.md b/docs-old/contributing/contribution_guides/tutorials.mddeleted file mode 100644index c51aa09b7e..0000000000--- a/docs-old/contributing/contribution_guides/tutorials.md+++ /dev/null@@ -1,11 +0,0 @@-# Tutorials--Tutorials help new & existing users expand their ability to use InvokeAI to the full extent of our features and services.--Currently, we have a set of tutorials available on our [YouTube channel](https://www.youtube.com/@invokeai), but as InvokeAI continues to evolve with new updates, we want to ensure that we are giving our users the resources they need to succeed.--Tutorials can be in the form of videos or article walkthroughs on a subject of your choice. We recommend focusing tutorials on the key image generation methods, or on a specific component within one of the image generation methods.--## Contributing--Please reach out to @imic or @hipsterusername on [Discord](https://discord.gg/ZmtBAhwWhy) to help create tutorials for InvokeAI.diff --git a/docs-old/contributing/contributors.md b/docs-old/contributing/contributors.mddeleted file mode 100644index d5691a9064..0000000000--- a/docs-old/contributing/contributors.md+++ /dev/null@@ -1,54 +0,0 @@-----title: Contributors------We thank [all contributors](https://github.com/invoke-ai/InvokeAI/graphs/contributors) for their time and hard work!--## **Original Author**--- [Lincoln D. Stein](mailto:[email protected])--## **Current Core Team**--- @lstein (Lincoln Stein) - Co-maintainer-- @blessedcoolant - Co-maintainer-- @hipsterusername (Kent Keirsey) - Co-maintainer, CEO, Positive Vibes-- @psychedelicious (Spencer Mabrito) - Web Team Leader-- @joshistoast (Josh Corbett) - Web Development-- @cheerio (Mary Rogers) - Lead Engineer & Web App Development-- @ebr (Eugene Brodsky) - Cloud/DevOps/Software engineer; your friendly neighbourhood cluster-autoscaler-- @sunija - Standalone version-- @brandon (Brandon Rising) - Platform, Infrastructure, Backend Systems-- @ryanjdick (Ryan Dick) - Machine Learning & Training-- @JPPhoto - Core image generation nodes-- @dunkeroni - Image generation backend-- @SkunkWorxDark - Image generation backend-- @glimmerleaf (Devon Hopkins) - Community Wizard-- @gogurt enjoyer - Discord moderator and end user support-- @whosawhatsis - Discord moderator and end user support-- @dwringer - Discord moderator and end user support-- @526christian - Discord moderator and end user support-- @harvester62 - Discord moderator and end user support--## **Honored Team Alumni**--- @StAlKeR7779 (Sergey Borisov) - Torch stack, ONNX, model management, optimization-- @damian0815 - Attention Systems and Compel Maintainer-- @netsvetaev (Artur) - Localization support-- @Kyle0654 (Kyle Schouviller) - Node Architect and General Backend Wizard-- @tildebyte - Installation and configuration-- @mauwii (Matthias Wilde) - Installation, release, continuous integration-- @chainchompa (Jennifer Player) - Web Development & Chain-Chomping-- @millu (Millun Atluri) - Community Wizard, Documentation, Node-wrangler,-- @genomancer (Gregg Helt) - Controlnet support-- @keturn (Kevin Turner) - Diffusers--## **Original CompVis (Stable Diffusion) Authors**--- [Robin Rombach](https://github.com/rromb)-- [Patrick von Platen](https://github.com/patrickvonplaten)-- [ablattmann](https://github.com/ablattmann)-- [Patrick Esser](https://github.com/pesser)-- [owenvincent](https://github.com/owenvincent)-- [apolinario](https://github.com/apolinario)-- [Charles Packer](https://github.com/cpacker)diff --git a/docs-old/contributing/dev-environment.md b/docs-old/contributing/dev-environment.mddeleted file mode 100644index 2f467e0daa..0000000000--- a/docs-old/contributing/dev-environment.md+++ /dev/null@@ -1,92 +0,0 @@-# Dev Environment--To make changes to Invoke's backend, frontend or documentation, you'll need to set up a dev environment.--If you only want to make changes to the docs site, you can skip the frontend dev environment setup as described in the below guide.--If you just want to use Invoke, you should use the [launcher][launcher link].--!!! warning-- Invoke uses a SQLite database. When you run the application as a dev install, you accept responsibility for your database. This means making regular backups (especially before pulling) and/or fixing it yourself in the event that a PR introduces a schema change.-- If you don't need to persist your db, you can use an ephemeral in-memory database by setting `use_memory_db: true` in your `invokeai.yaml` file. You'll also want to set `scan_models_on_startup: true` so that your models are registered on startup.--## Setup--1. Run through the [requirements][requirements link].--2. [Fork and clone][forking link] the [InvokeAI repo][repo link].--3. This repository uses Git LFS to manage large files. To ensure all assets are downloaded:- - Install git-lfs → [Download here](https://git-lfs.com/)- - Enable automatic LFS fetching for this repository:- ```shell- git config lfs.fetchinclude "*"- ```- - Fetch files from LFS (only needs to be done once; subsequent `git pull` will fetch changes automatically):- ```- git lfs pull- ```-4. Create an directory for user data (images, models, db, etc). This is typically at `~/invokeai`, but if you already have a non-dev install, you may want to create a separate directory for the dev install.--5. Follow the [manual install][manual install link] guide, with some modifications to the install command:-- - Use `.` instead of `invokeai` to install from the current directory. You don't need to specify the version.-- - Add `-e` after the `install` operation to make this an [editable install][editable install link]. That means your changes to the python code will be reflected when you restart the Invoke server.-- - When installing the `invokeai` package, add the `dev`, `test` and `docs` package options to the package specifier. You may or may not need the `xformers` option - follow the manual install guide to figure that out. So, your package specifier will be either `".[dev,test,docs]"` or `".[dev,test,docs,xformers]"`. Note the quotes!-- With the modifications made, the install command should look something like this:-- ```sh- uv pip install -e ".[dev,test,docs,xformers]" --python 3.12 --python-preference only-managed --index=https://download.pytorch.org/whl/cu128 --reinstall- ```--6. At this point, you should have Invoke installed, a venv set up and activated, and the server running. But you will see a warning in the terminal that no UI was found. If you go to the URL for the server, you won't get a UI.-- This is because the UI build is not distributed with the source code. You need to build it manually. End the running server instance.-- If you only want to edit the docs, you can stop here and skip to the **Documentation** section below.--7. Install the frontend dev toolchain, paying attention to versions:-- - [`nodejs`](https://nodejs.org/) (tested on LTS, v22)-- - [`pnpm`](https://pnpm.io/installation) (tested on v10)--8. Do a production build of the frontend:-- ```sh- cd <PATH_TO_INVOKEAI_REPO>/invokeai/frontend/web- pnpm i- pnpm build- ```--9. Restart the server and navigate to the URL. You should get a UI. After making changes to the python code, restart the server to see those changes.--## Updating the UI--You'll need to run `pnpm build` every time you pull in new changes.--Another option is to skip the build and instead run the UI in dev mode:--```sh-pnpm dev-```--This starts a vite dev server for the UI at `127.0.0.1:5173`, which you will use instead of `127.0.0.1:9090`.--The dev mode is substantially slower than the production build but may be more convenient if you just need to test things out. It will hot-reload the UI as you make changes to the frontend code. Sometimes the hot-reload doesn't work, and you need to manually refresh the browser tab.--## Documentation--The documentation is built with `mkdocs`. It provides a hot-reload dev server for the docs. Start it with `mkdocs serve`.--[launcher link]: ../installation/quick_start.md-[forking link]: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo-[requirements link]: ../installation/requirements.md-[repo link]: https://github.com/invoke-ai/InvokeAI-[manual install link]: ../installation/manual.md-[editable install link]: https://pip.pypa.io/en/latest/cli/pip_install/#cmdoption-ediff --git a/docs-old/contributing/frontend/index.md b/docs-old/contributing/frontend/index.mddeleted file mode 100644index 0e0ff55f3d..0000000000--- a/docs-old/contributing/frontend/index.md+++ /dev/null@@ -1,128 +0,0 @@-# Invoke UI--Invoke's UI is made possible by many contributors and open-source libraries. Thank you!--## Dev environment--Follow the [dev environment](../dev-environment.md) guide to get set up. Run the UI using `pnpm dev`.--## Package scripts--- `dev`: run the frontend in dev mode, enabling hot reloading-- `build`: run all checks (dpdm, eslint, prettier, tsc, knip) and then build the frontend-- `lint:dpdm`: check circular dependencies-- `lint:eslint`: check code quality-- `lint:prettier`: check code formatting-- `lint:tsc`: check type issues-- `lint:knip`: check for unused exports or objects-- `lint`: run all checks concurrently-- `fix`: run `eslint` and `prettier`, fixing fixable issues-- `test:ui`: run `vitest` with the fancy web UI--## Type generation--We use [openapi-typescript] to generate types from the app's OpenAPI schema. The generated types are committed to the repo in [schema.ts].--If you make backend changes, it's important to regenerate the frontend types:--```sh-cd invokeai/frontend/web && python ../../../scripts/generate_openapi_schema.py | pnpm typegen-```--On macOS and Linux, you can run `make frontend-typegen` as a shortcut for the above snippet.--## Localization--We use [i18next] for localization, but translation to languages other than English happens on our [Weblate] project.--Only the English source strings (i.e. `en.json`) should be changed on this repo.--## VSCode--### Example debugger config--```jsonc-{- "version": "0.2.0",- "configurations": [- {- "type": "chrome",- "request": "launch",- "name": "Invoke UI",- "url": "http://localhost:5173",- "webRoot": "${workspaceFolder}/invokeai/frontend/web"- }- ]-}-```--### Remote dev--We've noticed an intermittent timeout issue with the VSCode remote dev port forwarding.--We suggest disabling the editor's port forwarding feature and doing it manually via SSH:--```sh-ssh -L 9090:localhost:9090 -L 5173:localhost:5173 user@host-```--## Contributing Guidelines--Thanks for your interest in contributing to the Invoke Web UI!--Please follow these guidelines when contributing.--## Check in before investing your time--Please check in before you invest your time on anything besides a trivial fix, in case it conflicts with ongoing work or isn't aligned with the vision for the app.--If a feature request or issue doesn't already exist for the thing you want to work on, please create one.--Ping `@psychedelicious` on [discord] in the `#frontend-dev` channel or in the feature request / issue you want to work on - we're happy to chat.--## Code conventions--- This is a fairly complex app with a deep component tree. Please use memoization (`useCallback`, `useMemo`, `memo`) with enthusiasm.-- If you need to add some global, ephemeral state, please use [nanostores] if possible.-- Be careful with your redux selectors. If they need to be parameterized, consider creating them inside a `useMemo`.-- Feel free to use `lodash` (via `lodash-es`) to make the intent of your code clear.-- Please add comments describing the "why", not the "how" (unless it is really arcane).--## Commit format--Please use the [conventional commits] spec for the web UI, with a scope of "ui":--- `chore(ui): bump deps`-- `chore(ui): lint`-- `feat(ui): add some cool new feature`-- `fix(ui): fix some bug`--## Tests--We don't do any UI testing at this time, but consider adding tests for sensitive logic.--We use `vitest`, and tests should be next to the file they are testing. If the logic is in `something.ts`, the tests should be in `something.test.ts`.--In some situations, we may want to test types. For example, if you use `zod` to create a schema that should match a generated type, it's best to add a test to confirm that the types match. Use `tsafe`'s assert for this.--## Submitting a PR--- Ensure your branch is tidy. Use an interactive rebase to clean up the commit history and reword the commit messages if they are not descriptive.-- Run `pnpm lint`. Some issues are auto-fixable with `pnpm fix`.-- Fill out the PR form when creating the PR.- - It doesn't need to be super detailed, but a screenshot or video is nice if you changed something visually.- - If a section isn't relevant, delete it.--## Other docs--- [Workflows - Design and Implementation]-- [State Management]--[discord]: https://discord.gg/ZmtBAhwWhy-[i18next]: https://github.com/i18next/react-i18next-[Weblate]: https://hosted.weblate.org/engage/invokeai/-[openapi-typescript]: https://github.com/openapi-ts/openapi-typescript-[schema.ts]: https://github.com/invoke-ai/InvokeAI/blob/main/invokeai/frontend/web/src/services/api/schema.ts-[conventional commits]: https://www.conventionalcommits.org/en/v1.0.0/-[Workflows - Design and Implementation]: ./workflows.md-[State Management]: ./state-management.mddiff --git a/docs-old/contributing/frontend/state-management.md b/docs-old/contributing/frontend/state-management.mddeleted file mode 100644index 0990a0489f..0000000000--- a/docs-old/contributing/frontend/state-management.md+++ /dev/null@@ -1,38 +0,0 @@-# State Management--The app makes heavy use of Redux Toolkit, its Query library, and `nanostores`.--## Redux--We use RTK extensively - slices, entity adapters, queries, reselect, the whole 9 yards. Their [docs](https://redux-toolkit.js.org/) are excellent.--## `nanostores`--[nanostores] is a tiny state management library. It provides both imperative and declarative APIs.--### Example--```ts-export const $myStringOption = atom<string | null>(null);--// Outside a component, or within a callback for performance-critical logic-$myStringOption.get();-$myStringOption.set('new value');--// Inside a component-const myStringOption = useStore($myStringOption);-```--### Where to put nanostores--- For global application state, export your stores from `invokeai/frontend/web/src/app/store/nanostores/`.-- For feature state, create a file for the stores next to the redux slice definition (e.g. `invokeai/frontend/web/src/features/myFeature/myFeatureNanostores.ts`).-- For hooks with global state, export the store from the same file the hook is in, or put it next to the hook.--### When to use nanostores--- For non-serializable data that needs to be available throughout the app, use `nanostores` instead of a global.-- For ephemeral global state (i.e. state that does not need to be persisted), use `nanostores` instead of redux.-- For performance-critical code and in callbacks, redux selectors can be problematic due to the declarative reactivity system. Consider refactoring to use `nanostores` if there's a **measurable** performance issue.--[nanostores]: https://github.com/nanostores/nanostores/diff --git a/docs-old/contributing/frontend/workflows.md b/docs-old/contributing/frontend/workflows.mddeleted file mode 100644index 533419e070..0000000000--- a/docs-old/contributing/frontend/workflows.md+++ /dev/null@@ -1,314 +0,0 @@-# Workflows - Design and Implementation--> This document describes, at a high level, the design and implementation of workflows in the InvokeAI frontend. There are a substantial number of implementation details not included, but which are hopefully clear from the code.--InvokeAI's backend uses graphs, composed of **nodes** and **edges**, to process data and generate images.--Nodes have any number of **input fields** and **output fields**. Edges connect nodes together via their inputs and outputs. Fields have data types which dictate how they may be connected.--During execution, a nodes' outputs may be passed along to any number of other nodes' inputs.--Workflows are an enriched abstraction over a graph.--## Design--InvokeAI provide two ways to build graphs in the frontend: the [Linear UI](#linear-ui) and [Workflow Editor](#workflow-editor).--To better understand the use case and challenges related to workflows, we will review both of these modes.--### Linear UI--This includes the **Text to Image**, **Image to Image** and **Unified Canvas** tabs.--The user-managed parameters on these tabs are stored as simple objects in the application state. When the user invokes, adding a generation to the queue, we internally build a graph from these parameters.--This logic can be fairly complex due to the range of features available and their interactions. Depending on the parameters selected, the graph may be very different. Building graphs in code can be challenging - you are trying to construct a non-linear structure in a linear context.--The simplest graph building logic is for **Text to Image** with a SD1.5 model: [buildLinearTextToImageGraph.ts]--There are many other graph builders in the same directory for different tabs or base models (e.g. SDXL). Some are pretty hairy.--In the Linear UI, we go straight from **simple application state** to **graph** via these builders.--### Workflow Editor--The Workflow Editor is a visual graph editor, allowing users to draw edges from node to node to construct a graph. This _far_ more approachable way to create complex graphs.--InvokeAI uses the [reactflow] library to power the Workflow Editor. It provides both a graph editor UI and manages its own internal graph state.--#### Workflows--A workflow is a representation of a graph plus additional metadata:--- Name-- Description-- Version-- Notes-- [Exposed fields](#workflow-linear-view)-- Author, tags, category, etc.--Workflows should have other qualities:--- Portable: you should be able to load a workflow created by another person.-- Resilient: you should be able to "upgrade" a workflow as the application changes.-- Abstract: as much as is possible, workflows should not be married to the specific implementation details of the application.--To support these qualities, workflows are serializable, have a versioned schemas, and represent graphs as minimally as possible. Fortunately, the reactflow state for nodes and edges works perfectly for this.--##### Workflow -> reactflow state -> InvokeAI graph--Given a workflow, we need to be able to derive reactflow state and/or an InvokeAI graph from it.--The first step - workflow to reactflow state - is very simple. The logic is in [nodesSlice.ts], in the `workflowLoaded` reducer.--The reactflow state is, however, structurally incompatible with our backend's graph structure. When a user invokes on a Workflow, we need to convert the reactflow state into an InvokeAI graph. This is far simpler than the graph building logic from the Linear UI:-[buildNodesGraph.ts]--##### Nodes vs Invocations--We often use the terms "node" and "invocation" interchangeably, but they may refer to different things in the frontend.--reactflow [has its own definitions][reactflow-concepts] of "node", "edge" and "handle" which are closely related to InvokeAI graph concepts.--- A reactflow node is related to an InvokeAI invocation. It has a "data" property, which holds the InvokeAI-specific invocation data.-- A reactflow edge is roughly equivalent to an InvokeAI edge.-- A reactflow handle is roughly equivalent to an InvokeAI input or output field.--##### Workflow Linear View--Graphs are very capable data structures, but not everyone wants to work with them all the time.--To allow less technical users - or anyone who wants a less visually noisy workspace - to benefit from the power of nodes, InvokeAI has a workflow feature called the Linear View.--A workflow input field can be added to this Linear View, and its input component can be presented similarly to the Linear UI tabs. Internally, we add the field to the workflow's list of exposed fields.--#### OpenAPI Schema--OpenAPI is a schema specification that can represent complex data structures and relationships. The backend is capable of generating an OpenAPI schema for all invocations.--When the UI connects, it requests this schema and parses each invocation into an **invocation template**. Invocation templates have a number of properties, like title, description and type, but the most important ones are their input and output **field templates**.--Invocation and field templates are the "source of truth" for graphs, because they indicate what the backend is able to process.--When a user adds a new node to their workflow, these templates are used to instantiate a node with fields instantiated from the input and output field templates.--##### Field Instances and Templates--Field templates consist of:--- Name: the identifier of the field, its variable name in python-- Type: derived from the field's type annotation in python (e.g. IntegerField, ImageField, MainModelField)-- Constraints: derived from the field's creation args in python (e.g. minimum value for an integer)-- Default value: optionally provided in the field's creation args (e.g. 42 for an integer)--Field instances are created from the templates and have name, type and optionally a value.--The type of the field determines the UI components that are rendered for it.--A field instance's name associates it with its template.--##### Stateful vs Stateless Fields--**Stateful** fields store their value in the frontend graph. Think primitives, model identifiers, images, etc. Fields are only stateful if the frontend allows the user to directly input a value for them.--Many field types, however, are **stateless**. An example is a `UNetField`, which contains some data describing a UNet. Users cannot directly provide this data - it is created and consumed in the backend.--Stateless fields do not store their value in the node, so their field instances do not have values.--"Custom" fields will always be treated as stateless fields.--##### Single and Collection Fields--Field types have a name and cardinality property which may identify it as a **SINGLE**, **COLLECTION** or **SINGLE_OR_COLLECTION** field.--- If a field is annotated in python as a singular value or class, its field type is parsed as a **SINGLE** type (e.g. `int`, `ImageField`, `str`).-- If a field is annotated in python as a list, its field type is parsed as a **COLLECTION** type (e.g. `list[int]`).-- If it is annotated as a union of a type and list, the type will be parsed as a **SINGLE_OR_COLLECTION** type (e.g. `Union[int, list[int]]`). Fields may not be unions of different types (e.g. `Union[int, list[str]]` and `Union[int, str]` are not allowed).--## Implementation--The majority of data structures in the backend are [pydantic] models. Pydantic provides OpenAPI schemas for all models and we then generate TypeScript types from those.--The OpenAPI schema is parsed at runtime into our invocation templates.--Workflows and all related data are modeled in the frontend using [zod]. Related types are inferred from the zod schemas.--> In python, invocations are pydantic models with fields. These fields become node inputs. The invocation's `invoke()` function returns a pydantic model - its output. Like the invocation itself, the output model has any number of fields, which become node outputs.--### zod Schemas and Types--The zod schemas, inferred types, and type guards are in [types/].--Roughly order from lowest-level to highest:--- `common.ts`: stateful field data, and couple other misc types-- `field.ts`: fields - types, values, instances, templates-- `invocation.ts`: invocations and other node types-- `workflow.ts`: workflows and constituents--We customize the OpenAPI schema to include additional properties on invocation and field schemas. To facilitate parsing this schema into templates, we modify/wrap the types from [openapi-types] in `openapi.ts`.--### OpenAPI Schema Parsing--The entrypoint for OpenAPI schema parsing is [parseSchema.ts].--General logic flow:--- Iterate over all invocation schema objects- - Extract relevant invocation-level attributes (e.g. title, type, version, etc)- - Iterate over the invocation's input fields- - [Parse each field's type](#parsing-field-types)- - [Build a field input template](#building-field-input-templates) from the type - either a stateful template or "generic" stateless template- - Iterate over the invocation's output fields- - Parse the field's type (same as inputs)- - [Build a field output template](#building-field-output-templates)- - Assemble the attributes and fields into an invocation template--Most of these involve very straightforward `reduce`s, but the less intuitive steps are detailed below.--#### Parsing Field Types--Field types are represented as structured objects:--```ts-type FieldType = {- name: string;- cardinality: 'SINGLE' | 'COLLECTION' | 'SINGLE_OR_COLLECTION';-};-```--The parsing logic is in `parseFieldType.ts`.--There are 4 general cases for field type parsing.--##### Primitive Types--When a field is annotated as a primitive values (e.g. `int`, `str`, `float`), the field type parsing is fairly straightforward. The field is represented by a simple OpenAPI **schema object**, which has a `type` property.--We create a field type name from this `type` string (e.g. `string` -> `StringField`). The cardinality is `"SINGLE"`.--##### Complex Types--When a field is annotated as a pydantic model (e.g. `ImageField`, `MainModelField`, `ControlField`), it is represented as a **reference object**. Reference objects are pointers to another schema or reference object within the schema.--We need to **dereference** the schema to pull these out. Dereferencing may require recursion. We use the reference object's name directly for the field type name.--> Unfortunately, at this time, we've had limited success using external libraries to deference at runtime, so we do this ourselves.--##### Collection Types--When a field is annotated as a list of a single type, the schema object has an `items` property. They may be a schema object or reference object and must be parsed to determine the item type.--We use the item type for field type name. The cardinality is `"COLLECTION"`.--##### Single or Collection Types--When a field is annotated as a union of a type and list of that type, the schema object has an `anyOf` property, which holds a list of valid types for the union.--After verifying that the union has two members (a type and list of the same type), we use the type for field type name, with cardinality `"SINGLE_OR_COLLECTION"`.--##### Optional Fields--In OpenAPI v3.1, when an object is optional, it is put into an `anyOf` along with a primitive schema object with `type: 'null'`.--Handling this adds a fair bit of complexity, as we now must filter out the `'null'` types and work with the remaining types as described above.--If there is a single remaining schema object, we must recursively call to `parseFieldType()` to get parse it.--#### Building Field Input Templates--Now that we have a field type, we can build an input template for the field.--Stateful fields all get a function to build their template, while stateless fields are constructed directly. This is possible because stateless fields have no default value or constraints.--See [buildFieldInputTemplate.ts].--#### Building Field Output Templates--Field outputs are similar to stateless fields - they do not have any value in the frontend. When building their templates, we don't need a special function for each field type.--See [buildFieldOutputTemplate.ts].--### Managing reactflow State--As described above, the workflow editor state is the essentially the reactflow state, plus some extra metadata.--We provide reactflow with an array of nodes and edges via redux, and a number of [event handlers][reactflow-events]. These handlers dispatch redux actions, managing nodes and edges.--The pieces of redux state relevant to workflows are:--- `state.nodes.nodes`: the reactflow nodes state-- `state.nodes.edges`: the reactflow edges state-- `state.nodes.workflow`: the workflow metadata--#### Building Nodes and Edges--A reactflow node has a few important top-level properties:--- `id`: unique identifier-- `type`: a string that maps to a react component to render the node-- `position`: XY coordinates-- `data`: arbitrary data--When the user adds a node, we build **invocation node data**, storing it in `data`. Invocation properties (e.g. type, version, label, etc.) are copied from the invocation template. Inputs and outputs are built from the invocation template's field templates.--See [buildInvocationNode.ts].--Edges are managed by reactflow, but briefly, they consist of:--- `source`: id of the source node-- `sourceHandle`: id of the source node handle (output field)-- `target`: id of the target node-- `targetHandle`: id of the target node handle (input field)--> Edge creation is gated behind validation logic. This validation compares the input and output field types and overall graph state.--#### Building a Workflow--Building a workflow entity is as simple as dropping the nodes, edges and metadata into an object.--Each node and edge is parsed with a zod schema, which serves to strip out any unneeded data.--See [buildWorkflow.ts].--#### Loading a Workflow--Workflows may be loaded from external sources or the user's local instance. In all cases, the workflow needs to be handled with care, as an untrusted object.--Loading has a few stages which may throw or warn if there are problems:--- Parsing the workflow data structure itself, [migrating](#workflow-migrations) it if necessary (throws)-- Check for a template for each node (warns)-- Check each node's version against its template (warns)-- Validate the source and target of each edge (warns)--This validation occurs in [validateWorkflow.ts].--If there are no fatal errors, the workflow is then stored in redux state.--### Workflow Migrations--When the workflow schema changes, we may need to perform some data migrations. This occurs as workflows are loaded. zod schemas for each workflow schema version is retained to facilitate migrations.--Previous schemas are in folders in `invokeai/frontend/web/src/features/nodes/types/`, eg `v1/`.--Migration logic is in [migrations.ts].--<!-- links -->--[pydantic]: https://github.com/pydantic/pydantic 'pydantic'-[zod]: https://github.com/colinhacks/zod 'zod'-[openapi-types]: https://github.com/kogosoftwarellc/open-api/tree/main/packages/openapi-types 'openapi-types'-[reactflow]: https://github.com/xyflow/xyflow 'reactflow'-[reactflow-concepts]: https://reactflow.dev/learn/concepts/terms-and-definitions-[reactflow-events]: https://reactflow.dev/api-reference/react-flow#event-handlers-[buildWorkflow.ts]: https://github.com/invoke-ai/InvokeAI/blob/main/invokeai/frontend/web/src/features/nodes/util/workflow/buildWorkflow.ts-[nodesSlice.ts]: https://github.com/invoke-ai/InvokeAI/blob/main/invokeai/frontend/web/src/features/nodes/store/nodesSlice.ts-[buildLinearTextToImageGraph.ts]: https://github.com/invoke-ai/InvokeAI/blob/main/invokeai/frontend/web/src/features/nodes/util/graph/buildLinearTextToImageGraph.ts-[buildNodesGraph.ts]: https://github.com/invoke-ai/InvokeAI/blob/main/invokeai/frontend/web/src/features/nodes/util/graph/buildNodesGraph.ts-[buildInvocationNode.ts]: https://github.com/invoke-ai/InvokeAI/blob/main/invokeai/frontend/web/src/features/nodes/util/node/buildInvocationNode.ts-[validateWorkflow.ts]: https://github.com/invoke-ai/InvokeAI/blob/main/invokeai/frontend/web/src/features/nodes/util/workflow/validateWorkflow.ts-[migrations.ts]: https://github.com/invoke-ai/InvokeAI/blob/main/invokeai/frontend/web/src/features/nodes/util/workflow/migrations.ts-[parseSchema.ts]: https://github.com/invoke-ai/InvokeAI/blob/main/invokeai/frontend/web/src/features/nodes/util/schema/parseSchema.ts-[buildFieldInputTemplate.ts]: https://github.com/invoke-ai/InvokeAI/blob/main/invokeai/frontend/web/src/features/nodes/util/schema/buildFieldInputTemplate.ts-[buildFieldOutputTemplate.ts]: https://github.com/invoke-ai/InvokeAI/blob/main/invokeai/frontend/web/src/features/nodes/util/schema/buildFieldOutputTemplate.tsdiff --git a/docs-old/contributing/index.md b/docs-old/contributing/index.mddeleted file mode 100644index 15a4357a87..0000000000--- a/docs-old/contributing/index.md+++ /dev/null@@ -1,56 +0,0 @@-# Contributing--Invoke originated as a project built by the community, and that vision carries forward today as we aim to build the best pro-grade tools available. We work together to incorporate the latest in AI/ML research, making these tools available in over 20 languages to artists and creatives around the world as part of our fully permissive OSS project designed for individual users to self-host and use.--We welcome contributions, whether features, bug fixes, code cleanup, testing, code reviews, documentation or translation. Please check in with us before diving in to code to ensure your work aligns with our vision.--## Development--If you’d like to help with development, please see our [development guide](contribution_guides/development.md).--## External Providers--If you are adding external image generation providers or configs, see our [external provider integration guide](EXTERNAL_PROVIDERS.md).--**New Contributors:** If you’re unfamiliar with contributing to open source projects, take a look at our [new contributor guide](contribution_guides/newContributorChecklist.md).--## Nodes--If you’d like to add a Node, please see our [nodes contribution guide](../nodes/contributingNodes.md).--## Support and Triaging--Helping support other users in [Discord](https://discord.gg/ZmtBAhwWhy) and on Github are valuable forms of contribution that we greatly appreciate.--We receive many issues and requests for help from users. We're limited in bandwidth relative to our user base, so providing answers to questions or helping identify causes of issues is very helpful. By doing this, you enable us to spend time on the highest priority work.--## Documentation--If you’d like to help with documentation, please see our [documentation guide](contribution_guides/documentation.md).--## Translation--If you'd like to help with translation, please see our [translation guide](contribution_guides/translation.md).--## Tutorials--Please reach out to @hipsterusername on [Discord](https://discord.gg/ZmtBAhwWhy) to help create tutorials for InvokeAI.--## Contributors--This project is a combined effort of dedicated people from across the world. [Check out the list of all these amazing people](contributors.md). We thank them for their time, hard work and effort.--## Code of Conduct--The InvokeAI community is a welcoming place, and we want your help in maintaining that. Please review our [Code of Conduct](../CODE_OF_CONDUCT.md) to learn more - it's essential to maintaining a respectful and inclusive environment.--By making a contribution to this project, you certify that:--1. The contribution was created in whole or in part by you and you have the right to submit it under the open-source license indicated in this project’s GitHub repository; or-2. The contribution is based upon previous work that, to the best of your knowledge, is covered under an appropriate open-source license and you have the right under that license to submit that work with modifications, whether created in whole or in part by you, under the same open-source license (unless you are permitted to submit under a different license); or-3. The contribution was provided directly to you by some other person who certified (1) or (2) and you have not modified it; or-4. You understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information you submit with it, including your sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open-source license(s) involved.--This disclaimer is not a license and does not grant any rights or permissions. You must obtain necessary permissions and licenses, including from third parties, before contributing to this project.--This disclaimer is provided "as is" without warranty of any kind, whether expressed or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, or non-infringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the contribution or the use or other dealings in the contribution.diff --git a/docs-old/faq.md b/docs-old/faq.mddeleted file mode 100644index feb92f54f6..0000000000--- a/docs-old/faq.md+++ /dev/null@@ -1,107 +0,0 @@-# FAQ--If the troubleshooting steps on this page don't get you up and running, please either [create an issue] or hop on [discord] for help.--## How to Install--Follow the [Quick Start guide](./installation/quick_start.md) to install Invoke.--## Downloading models and using existing models--The Model Manager tab in the UI provides a few ways to install models, including using your already-downloaded models. You'll see a popup directing you there on first startup. For more information, see the [model install docs].--## Missing models after updating from v3--If you find some models are missing after updating from v3, it's likely they weren't correctly registered before the update and didn't get picked up in the migration.--You can use the `Scan Folder` tab in the Model Manager UI to fix this. The models will either be in the old, now-unused `autoimport` folder, or your `models` folder.--- Find and copy your install's old `autoimport` folder path, install the main install folder.-- Go to the Model Manager and click `Scan Folder`.-- Paste the path and scan.-- IMPORTANT: Uncheck `Inplace install`.-- Click `Install All` to install all found models, or just install the models you want.--Next, find and copy your install's `models` folder path (this could be your custom models folder path, or the `models` folder inside the main install folder).--Follow the same steps to scan and import the missing models.--## Slow generation--- Check the [system requirements] to ensure that your system is capable of generating images.-- Follow the [Low-VRAM mode guide](./features/low-vram.md) to optimize performance.-- Check that your generations are happening on your GPU (if you have one). Invoke will log what is being used for generation upon startup. If your GPU isn't used, re-install to and ensure you select the appropriate GPU option.-- If you are on Windows with an Nvidia GPU, you may have exceeded your GPU's VRAM capacity and are triggering Nvidia's "sysmem fallback". There's a guide to opt out of this behaviour in the [Low-VRAM mode guide](./features/low-vram.md).--## Triton error on startup--This can be safely ignored. Invoke doesn't use Triton, but if you are on Linux and wish to dismiss the error, you can install Triton.--## Unable to Copy on Firefox--Firefox does not allow Invoke to directly access the clipboard by default. As a result, you may be unable to use certain copy functions. You can fix this by configuring Firefox to allow access to write to the clipboard:--- Go to `about:config` and click the Accept button-- Search for `dom.events.asyncClipboard.clipboardItem`-- Set it to `true` by clicking the toggle button-- Restart Firefox--## Replicate image found online--Most example images with prompts that you'll find on the internet have been generated using different software, so you can't expect to get identical results. In order to reproduce an image, you need to replicate the exact settings and processing steps, including (but not limited to) the model, the positive and negative prompts, the seed, the sampler, the exact image size, any upscaling steps, etc.--## Invalid configuration file--Everything seems to install ok, you get a `ValidationError` when starting up the app.--This is caused by an invalid setting in the `invokeai.yaml` configuration file. The error message should tell you what is wrong.--Check the [configuration docs] for more detail about the settings and how to specify them.--## Out of Memory Errors--The models are large, VRAM is expensive, and you may find yourself faced with Out of Memory errors when generating images. Follow our [Low-VRAM mode guide](./features/low-vram.md) to configure Invoke to prevent these.--## Memory Leak (Linux)--If you notice a memory leak, it could be caused to memory fragmentation as models are loaded and/or moved from CPU to GPU.--A workaround is to tune memory allocation with an environment variable:--```bash-# Force blocks >1MB to be allocated with `mmap` so that they are released to the system immediately when they are freed.-MALLOC_MMAP_THRESHOLD_=1048576-```--!!! warning "Speed vs Memory Tradeoff"-- Your generations may be slower overall when setting this environment variable.--!!! info "Possibly dependent on `libc` implementation"-- It's not known if this issue occurs with other `libc` implementations such as `musl`.-- If you encounter this issue and your system uses a different implementation, please try this environment variable and let us know if it fixes the issue.--<h3>Detailed Discussion</h3>--Python (and PyTorch) relies on the memory allocator from the C Standard Library (`libc`). On linux, with the GNU C Standard Library implementation (`glibc`), our memory access patterns have been observed to cause severe memory fragmentation.--This fragmentation results in large amounts of memory that has been freed but can't be released back to the OS. Loading models from disk and moving them between CPU/CUDA seem to be the operations that contribute most to the fragmentation.--This memory fragmentation issue can result in OOM crashes during frequent model switching, even if `ram` (the max RAM cache size) is set to a reasonable value (e.g. a OOM crash with `ram=16` on a system with 32GB of RAM).--This problem may also exist on other OSes, and other `libc` implementations. But, at the time of writing, it has only been investigated on linux with `glibc`.--To better understand how the `glibc` memory allocator works, see these references:--- Basics: <https://www.gnu.org/software/libc/manual/html_node/The-GNU-Allocator.html>-- Details: <https://sourceware.org/glibc/wiki/MallocInternals>--Note the differences between memory allocated as chunks in an arena vs. memory allocated with `mmap`. Under `glibc`'s default configuration, most model tensors get allocated as chunks in an arena making them vulnerable to the problem of fragmentation.--[model install docs]: ./installation/models.md-[system requirements]: ./installation/requirements.md-[create an issue]: https://github.com/invoke-ai/InvokeAI/issues-[discord]: https://discord.gg/ZmtBAhwWhy-[configuration docs]: ./configuration.mddiff --git a/docs-old/features/Lasso_tool.md b/docs-old/features/Lasso_tool.mddeleted file mode 100644index 8f7fc6d4ec..0000000000--- a/docs-old/features/Lasso_tool.md+++ /dev/null@@ -1,32 +0,0 @@-Lasso Tool-===========--- The Lasso tool creates selections and inpaint masks by drawing freehand or polygonal regions on the canvas.--How to open the Lasso tool----------------------------- Click the Lasso icon in the toolbar.-- Hotkey: press `L` (default). The hotkey is shown in the tool's tooltip and can be customized in Hotkeys settings.--Modes-------- Freehand (default)- - Hold the pointer and drag to draw a continuous contour.- - Long segments are broken into intermediate points to keep the line continuous.- - Very long strokes may be simplified after drawing to reduce point count for performance.--- Polygon- - Click to place points; click the first point (or a point near it) to close the polygon.- - The tool snaps the closing point to the start for precise closures.--Basic interactions--------------------- Switch modes with the mode toggle in the toolbar.-- To close a polygon: click the starting point again or click near it — the tool aligns the final point to the start to complete the shape.-- The selection will be added to the current Inpaint Mask layer. If no Inpaint Mask layer exists, a new one will be created automatically.--Tips & behavior------------------ Hold `Space` to temporarily switch to the View tool for panning and zooming; release `Space` to return to the Lasso tool and continue drawing.-- When using the Polygon mode, you can hold `Shift` to snap points to horizontal, vertical, or 45-degree angles for more precise shapes.-- Hold `Ctrl` (Windows/Linux) or `Command` (macOS) while drawing to subtract from the current selection instead of adding to it.diff --git a/docs-old/features/canvas_projects.md b/docs-old/features/canvas_projects.mddeleted file mode 100644index 8b161c6745..0000000000--- a/docs-old/features/canvas_projects.md+++ /dev/null@@ -1,56 +0,0 @@-----title: Canvas Projects------# :material-folder-zip: Canvas Projects--## Save and Restore Your Canvas Work--Canvas Projects let you save your entire canvas setup to a file and load it back later. This is useful when you want to:--- **Switch between tasks** without losing your current canvas arrangement-- **Back up complex setups** with multiple layers, masks, and reference images-- **Share canvas layouts** with others or transfer them between machines-- **Recover from deleted images** — all images are embedded in the project file--## What Gets Saved--A canvas project file (`.invk`) captures everything about your current canvas session:--- **All layers** — raster layers, control layers, inpaint masks, regional guidance-- **All drawn content** — brush strokes, pasted images, eraser marks-- **Reference images** — global IP-Adapter / FLUX Redux images with crop settings-- **Regional guidance** — per-region prompts and reference images-- **Bounding box** — position, size, aspect ratio, and scale settings-- **All generation parameters** — prompts, seed, steps, CFG scale, guidance, scheduler, model, VAE, dimensions, img2img strength, infill settings, canvas coherence, refiner settings, FLUX/Z-Image specific parameters, and more-- **LoRAs** — all added LoRA models with their weights and enabled/disabled state--## How to Save a Project--You can save from two places:--1. **Toolbar** — Click the **Archive icon** in the canvas toolbar, then select **Save Canvas Project**-2. **Context menu** — Right-click the canvas, open the **Project** submenu, then select **Save Canvas Project**--A dialog will ask you to enter a **project name**. This name is used as the filename (e.g., entering "My Portrait" saves as `My Portrait.invk`) and is stored inside the project file.--## How to Load a Project--1. **Toolbar** — Click the **Archive icon**, then select **Load Canvas Project**-2. **Context menu** — Right-click the canvas, open the **Project** submenu, then select **Load Canvas Project**--A file dialog will open. Select your `.invk` file. You will see a confirmation dialog warning that loading will replace your current canvas. Click **Load** to proceed.--### What Happens on Load--- Your current canvas is **completely replaced** — all existing layers, masks, reference images, and parameters are overwritten-- Images that are already present on your InvokeAI server are reused automatically (no duplicate uploads)-- Images that were deleted from the server are re-uploaded from the project file-- If the saved model is not installed on your system, the model identifier is still restored — you will need to select an available model manually--## Good to Know--- **No undo** — Loading a project replaces your canvas entirely. There is no way to undo this action, so save your current project first if you want to keep it.-- **Image deduplication** — When loading, images already on your server are not re-uploaded. Only missing images are uploaded from the project file.-- **File size** — The `.invk` file size depends on the number and resolution of images in your canvas. A project with many high-resolution layers can be large.-- **Model availability** — The project saves which model was selected, but does not include the model itself. If the model is not installed when you load the project, you will need to select a different one.diff --git a/docs-old/features/cuda-sysmem-fallback.png b/docs-old/features/cuda-sysmem-fallback.pngdeleted file mode 100755index f79e007f87..0000000000Binary files a/docs-old/features/cuda-sysmem-fallback.png and /dev/null differdiff --git a/docs-old/features/database.md b/docs-old/features/database.mddeleted file mode 100644index ad2f0e105c..0000000000--- a/docs-old/features/database.md+++ /dev/null@@ -1,31 +0,0 @@-----title: Database------Invoke uses a SQLite database to store image, workflow, model, and execution data.--We take great care to ensure your data is safe, by utilizing transactions and a database migration system.--Even so, when testing a prerelease version of the app, we strongly suggest either backing up your database or using an in-memory database. This ensures any prelease hiccups or databases schema changes will not cause problems for your data.--## Database Backup--Backing up your database is very simple. Invoke's data is stored in an `$INVOKEAI_ROOT` directory - where your `invoke.sh`/`invoke.bat` and `invokeai.yaml` files live.--To back up your database, copy the `invokeai.db` file from `$INVOKEAI_ROOT/databases/invokeai.db` to somewhere safe.--If anything comes up during prelease testing, you can simply copy your backup back into `$INVOKEAI_ROOT/databases/`.--## In-Memory Database--SQLite can run on an in-memory database. Your existing database is untouched when this mode is enabled, but your existing data won't be accessible.--This is very useful for testing, as there is no chance of a database change modifying your "physical" database.--To run Invoke with a memory database, edit your `invokeai.yaml` file and add `use_memory_db: true`:--```yaml-use_memory_db: true-```--Delete this line (or set it to `false`) to use your main database.diff --git a/docs-old/features/gallery.md b/docs-old/features/gallery.mddeleted file mode 100644index eb246b83b9..0000000000--- a/docs-old/features/gallery.md+++ /dev/null@@ -1,112 +0,0 @@-----title: InvokeAI Gallery Panel------# :material-web: InvokeAI Gallery Panel--## Quick guided walkthrough of the Gallery Panel's features--The Gallery Panel is a fast way to review, find, and make use of images you've-generated and loaded. The Gallery is divided into Boards. The Uncategorized board is always-present but you can create your own for better organization.----### Board Display and Settings--At the very top of the Gallery Panel are the boards disclosure and settings buttons.----The disclosure button shows the name of the currently selected board and allows you to show and hide the board thumbnails (shown in the image below).----The settings button opens a list of options.----- ***Image Size*** this slider lets you control the size of the image previews (images of three different sizes).-- ***Auto-Switch to New Images*** if you turn this on, whenever a new image is generated, it will automatically be loaded into the current image panel on the Text to Image tab and into the result panel on the [Image to Image](IMG2IMG.md) tab. This will happen invisibly if you are on any other tab when the image is generated.-- ***Auto-Assign Board on Click*** whenever an image is generated or saved, it always gets put in a board. The board it gets put into is marked with AUTO (image of board marked). Turning on Auto-Assign Board on Click will make whichever board you last selected be the destination when you click Invoke. That means you can click Invoke, select a different board, and then click Invoke again and the two images will be put in two different boards. (bold)It's the board selected when Invoke is clicked that's used, not the board that's selected when the image is finished generating.(bold) Turning this off, enables the Auto-Add Board drop down which lets you set one specific board to always put generated images into. This also enables and disables the Auto-add to this Board menu item described below.-- ***Always Show Image Size Badge*** this toggles whether to show image sizes for each image preview (show two images, one with sizes shown, one without)--Below these two buttons, you'll see the Search Boards text entry area. You use this to search for specific boards by the name of the board.-Next to it is the Add Board (+) button which lets you add new boards. Boards can be renamed by clicking on the name of the board under its thumbnail and typing in the new name.--### Virtual Boards by Date--In addition to the regular user-created boards, the Gallery can show **virtual boards** that group your images automatically by their creation date. Virtual boards are not stored in the database — they are computed on the fly from existing image metadata, so enabling or disabling them never moves or modifies your images.--#### Enabling Virtual Boards--Open the boards settings popover (the gear icon next to the boards search field) and toggle **Show Virtual Boards**. A new collapsible **By Date** section then appears in the boards list, with one entry per day on which images were generated (e.g. `2026-03-18`).--Each virtual board entry shows:--- a cover thumbnail (the most recent image of that day)-- the number of generated **images** on that date-- the number of uploaded **assets** on that date--Selecting a virtual board filters the gallery to show only the images from that day. Search, category filters (Images / Assets), starred-first sorting and sort direction all work the same way as on regular boards.--!!! note "Read-only"-- Virtual boards are a view over your existing images. You cannot rename, delete or auto-assign to them, and images cannot be "moved into" a virtual board — they appear there automatically based on their creation date. To organize images permanently, use regular boards.--### Board Thumbnail Menu--Each board has a context menu (ctrl+click / right-click).----- ***Auto-add to this Board*** if you've disabled Auto-Assign Board on Click in the board settings, you can use this option to set this board to be where new images are put.-- ***Download Board*** this will add all the images in the board into a zip file and provide a link to it in a notification (image of notification)-- ***Delete Board*** this will delete the board-> [!CAUTION]-> This will delete all the images in the board and the board itself.--### Board Contents--Every board is organized by two tabs, Images and Assets.----Images are the Invoke-generated images that are placed into the board. Assets are images that you upload into Invoke to be used as an [Image Prompt](https://support.invoke.ai/support/solutions/articles/151000159340-using-the-image-prompt-adapter-ip-adapter-) or in the [Image to Image](IMG2IMG.md) tab.--### Image Thumbnail Menu--Every image generated by Invoke has its generation information stored as text inside the image file itself. This can be read directly by selecting the image and clicking on the Info button  in any of the image result panels.--Each image also has a context menu (ctrl+click / right-click).---- The options are (items marked with an * will not work with images that lack generation information):-- ***Open in New Tab*** this will open the image alone in a new browser tab, separate from the Invoke interface.-- ***Download Image*** this will trigger your browser to download the image.-- ***Load Workflow **** this will load any workflow settings into the Workflow tab and automatically open it.-- ***Remix Image **** this will load all of the image's generation information, (bold)excluding its Seed, into the left hand control panel-- ***Use Prompt **** this will load only the image's text prompts into the left-hand control panel-- ***Use Seed **** this will load only the image's Seed into the left-hand control panel-- ***Use All **** this will load all of the image's generation information into the left-hand control panel-- ***Send to Image to Image*** this will put the image into the left-hand panel in the Image to Image tab and automatically open it-- ***Send to Unified Canvas*** This will (bold)replace whatever is already present(bold) in the Unified Canvas tab with the image and automatically open the tab-- ***Change Board*** this will oipen a small window that will let you move the image to a different board. This is the same as dragging the image to that board's thumbnail.-- ***Star Image*** this will add the image to the board's list of starred images that are always kept at the top of the gallery. This is the same as clicking on the star on the top right-hand side of the image that appears when you hover over the image with the mouse-- ***Delete Image*** this will delete the image from the board-> [!CAUTION]-> This will delete the image entirely from Invoke.--## Summary--This walkthrough only covers the Gallery interface and Boards. Actually generating images is handled by [Prompts](PROMPTS.md), the [Image to Image](IMG2IMG.md) tab, and the [Unified Canvas](UNIFIED_CANVAS.md).--## Acknowledgements--A huge shout-out to the core team working to make the Web GUI a reality,-including [psychedelicious](https://github.com/psychedelicious),-[Kyle0654](https://github.com/Kyle0654) and-[blessedcoolant](https://github.com/blessedcoolant).-[hipsterusername](https://github.com/hipsterusername) was the team's unofficial-cheerleader and added tooltips/docs.diff --git a/docs-old/features/hotkeys.md b/docs-old/features/hotkeys.mddeleted file mode 100644index 4998eb95ca..0000000000--- a/docs-old/features/hotkeys.md+++ /dev/null@@ -1,80 +0,0 @@-# Customizable Hotkeys--InvokeAI allows you to customize all keyboard shortcuts (hotkeys) to match your workflow preferences.--## Features--- **View All Hotkeys**: See all available keyboard shortcuts in one place-- **Customize Any Hotkey**: Change any shortcut to your preference-- **Multiple Bindings**: Assign multiple key combinations to the same action-- **Smart Validation**: Built-in validation prevents invalid combinations-- **Persistent Settings**: Your custom hotkeys are saved and restored across sessions-- **Easy Reset**: Reset individual hotkeys or all hotkeys back to defaults--## How to Use--### Opening the Hotkeys Modal--Press `Shift+?` or click the keyboard icon in the application to open the Hotkeys Modal.--### Viewing Hotkeys--In **View Mode** (default), you can:-- Browse all available hotkeys organized by category (App, Canvas, Gallery, Workflows, etc.)-- Search for specific hotkeys using the search bar-- See the current key combination for each action--### Customizing Hotkeys--1. Click the **Edit Mode** button at the bottom of the Hotkeys Modal-2. Find the hotkey you want to change-3. Click the **pencil icon** next to it-4. The editor will appear with:- - **Input field**: Enter your new hotkey combination- - **Modifier buttons**: Quick-insert Mod, Ctrl, Shift, Alt keys- - **Help icon** (?): Shows syntax examples and valid keys- - **Live preview**: See how your hotkey will look--5. Enter your new hotkey using the format:- - `mod+a` - Mod key + A (Mod = Ctrl on Windows/Linux, Cmd on Mac)- - `ctrl+shift+k` - Multiple modifiers- - `f1` - Function keys- - `mod+enter, ctrl+enter` - Multiple alternatives (separated by comma)--6. Click the **checkmark** or press Enter to save-7. Click the **X** or press Escape to cancel--### Resetting Hotkeys--**Reset a single hotkey:**-- Click the counter-clockwise arrow icon that appears next to customized hotkeys--**Reset all hotkeys:**-- In Edit Mode, click the **Reset All to Default** button at the bottom--### Hotkey Format Reference--**Valid Modifiers:**-- `mod` - Context-aware: Ctrl (Windows/Linux) or Cmd (Mac)-- `ctrl` - Control key-- `shift` - Shift key-- `alt` - Alt key (Option on Mac)--**Valid Keys:**-- Letters: `a-z`-- Numbers: `0-9`-- Function keys: `f1-f12`-- Special keys: `enter`, `space`, `tab`, `backspace`, `delete`, `escape`-- Arrow keys: `up`, `down`, `left`, `right`-- And more...--**Examples:**-- ✅ `mod+s` - Save action-- ✅ `ctrl+shift+p` - Command palette-- ✅ `f5, mod+r` - Two alternatives for refresh-- ❌ `mod+` - Invalid (no key after modifier)-- ❌ `shift+ctrl+` - Invalid (ends with modifier)--## For Developers--For technical implementation details, architecture, and how to add new hotkeys to the system, see the [Hotkeys Developer Documentation](../contributing/HOTKEYS.md).diff --git a/docs-old/features/low-vram.md b/docs-old/features/low-vram.mddeleted file mode 100644index b1d5389ed6..0000000000--- a/docs-old/features/low-vram.md+++ /dev/null@@ -1,176 +0,0 @@-----title: Low-VRAM mode------As of v5.6.0, Invoke has a low-VRAM mode. It works on systems with dedicated GPUs (Nvidia GPUs on Windows/Linux and AMD GPUs on Linux).--This allows you to generate even if your GPU doesn't have enough VRAM to hold full models. Most users should be able to run even the beefiest models - like the ~24GB unquantised FLUX dev model.--## Enabling Low-VRAM mode--To enable Low-VRAM mode, add this line to your `invokeai.yaml` configuration file, then restart Invoke:--```yaml-enable_partial_loading: true-```--**Windows users should also [disable the Nvidia sysmem fallback](#disabling-nvidia-sysmem-fallback-windows-only)**.--It is possible to fine-tune the settings for best performance or if you still get out-of-memory errors (OOMs).--!!! tip "How to find `invokeai.yaml`"-- The `invokeai.yaml` configuration file lives in your install directory. To access it, run the **Invoke Community Edition** launcher and click the install location. This will open your install directory in a file explorer window.-- You'll see `invokeai.yaml` there and can edit it with any text editor. After making changes, restart Invoke.-- If you don't see `invokeai.yaml`, launch Invoke once. It will create the file on its first startup.--## Details and fine-tuning--Low-VRAM mode involves 4 features, each of which can be configured or fine-tuned:--- Partial model loading (`enable_partial_loading`)-- PyTorch CUDA allocator config (`pytorch_cuda_alloc_conf`)-- Dynamic RAM and VRAM cache sizes (`max_cache_ram_gb`, `max_cache_vram_gb`)-- Working memory (`device_working_mem_gb`)-- Keeping a RAM weight copy (`keep_ram_copy_of_weights`)--Read on to learn about these features and understand how to fine-tune them for your system and use-cases.--### Partial model loading--Invoke's partial model loading works by streaming model "layers" between RAM and VRAM as they are needed.--When an operation needs layers that are not in VRAM, but there isn't enough room to load them, inactive layers are offloaded to RAM to make room.--#### Enabling partial model loading--As described above, you can enable partial model loading by adding this line to `invokeai.yaml`:--```yaml-enable_partial_loading: true-```--### PyTorch CUDA allocator config--The PyTorch CUDA allocator's behavior can be configured using the `pytorch_cuda_alloc_conf` config. Tuning the allocator configuration can help to reduce the peak reserved VRAM. The optimal configuration is dependent on many factors (e.g. device type, VRAM, CUDA driver version, etc.), but switching from PyTorch's native allocator to using CUDA's built-in allocator works well on many systems. To try this, add the following line to your `invokeai.yaml` file:--```yaml-pytorch_cuda_alloc_conf: "backend:cudaMallocAsync"-```--A more complete explanation of the available configuration options is [here](https://pytorch.org/docs/stable/notes/cuda.html#optimizing-memory-usage-with-pytorch-cuda-alloc-conf).--### Dynamic RAM and VRAM cache sizes--Loading models from disk is slow and can be a major bottleneck for performance. Invoke uses two model caches - RAM and VRAM - to reduce loading from disk to a minimum.--By default, Invoke manages these caches' sizes dynamically for best performance.--#### Fine-tuning cache sizes--Prior to v5.6.0, the cache sizes were static, and for best performance, many users needed to manually fine-tune the `ram` and `vram` settings in `invokeai.yaml`.--As of v5.6.0, the caches are dynamically sized. The `ram` and `vram` settings are no longer used, and new settings are added to configure the cache.--**Most users will not need to fine-tune the cache sizes.**--But, if your GPU has enough VRAM to hold models fully, you might get a perf boost by manually setting the cache sizes in `invokeai.yaml`:--```yaml-# The default max cache RAM size is logged on InvokeAI startup. It is determined based on your system RAM / VRAM.-# You can override the default value by setting `max_cache_ram_gb`.-# Increasing `max_cache_ram_gb` will increase the amount of RAM used to cache inactive models, resulting in faster model-# reloads for the cached models.-# As an example, if your system has 32GB of RAM and no other heavy processes, setting the `max_cache_ram_gb` to 28GB-# might be a good value to achieve aggressive model caching.-max_cache_ram_gb: 28--# The default max cache VRAM size is adjusted dynamically based on the amount of available VRAM (taking into-# consideration the VRAM used by other processes).-# You can override the default value by setting `max_cache_vram_gb`.-# CAUTION: Most users should not manually set this value. See warning below.-max_cache_vram_gb: 16-```--!!! warning "Max safe value for `max_cache_vram_gb`"-- Most users should not manually configure the `max_cache_vram_gb`. This configuration value takes precedence over the `device_working_mem_gb` and any operations that explicitly reserve additional working memory (e.g. VAE decode). As such, manually configuring it increases the likelihood of encountering out-of-memory errors.-- For users who wish to configure `max_cache_vram_gb`, the max safe value can be determined by subtracting `device_working_mem_gb` from your GPU's VRAM. As described below, the default for `device_working_mem_gb` is 3GB.-- For example, if you have a 12GB GPU, the max safe value for `max_cache_vram_gb` is `12GB - 3GB = 9GB`.-- If you had increased `device_working_mem_gb` to 4GB, then the max safe value for `max_cache_vram_gb` is `12GB - 4GB = 8GB`.-- Most users who override `max_cache_vram_gb` are doing so because they wish to use significantly less VRAM, and should be setting `max_cache_vram_gb` to a value significantly less than the 'max safe value'.--### Working memory--Invoke cannot use _all_ of your VRAM for model caching and loading. It requires some VRAM to use as working memory for various operations.--Invoke reserves 3GB VRAM as working memory by default, which is enough for most use-cases. However, it is possible to fine-tune this setting if you still get OOMs.--#### Fine-tuning working memory--You can increase the working memory size in `invokeai.yaml` to prevent OOMs:--```yaml-# The default is 3GB - bump it up to 4GB to prevent OOMs.-device_working_mem_gb: 4-```--!!! tip "Operations may request more working memory"-- For some operations, we can determine VRAM requirements in advance and allocate additional working memory to prevent OOMs.-- VAE decoding is one such operation. This operation converts the generation process's output into an image. For large image outputs, this might use more than the default working memory size of 3GB.-- During this decoding step, Invoke calculates how much VRAM will be required to decode and requests that much VRAM from the model manager. If the amount exceeds the working memory size, the model manager will offload cached model layers from VRAM until there's enough VRAM to decode.-- Once decoding completes, the model manager "reclaims" the extra VRAM allocated as working memory for future model loading operations.--### Keeping a RAM weight copy--Invoke has the option of keeping a RAM copy of all model weights, even when they are loaded onto the GPU. This optimization is _on_ by default, and enables faster model switching and LoRA patching. Disabling this feature will reduce the average RAM load while running Invoke (peak RAM likely won't change), at the cost of slower model switching and LoRA patching. If you have limited RAM, you can disable this optimization:--```yaml-# Set to false to reduce the average RAM usage at the cost of slower model switching and LoRA patching.-keep_ram_copy_of_weights: false-```--### Disabling Nvidia sysmem fallback (Windows only)--On Windows, Nvidia GPUs are able to use system RAM when their VRAM fills up via **sysmem fallback**. While it sounds like a good idea on the surface, in practice it causes massive slowdowns during generation.--It is strongly suggested to disable this feature:--- Open the **NVIDIA Control Panel** app.-- Expand **3D Settings** on the left panel.-- Click **Manage 3D Settings** in the left panel.-- Find **CUDA - Sysmem Fallback Policy** in the right panel and set it to **Prefer No Sysmem Fallback**.----!!! tip "Invoke does the same thing, but better"-- If the sysmem fallback feature sounds familiar, that's because Invoke's partial model loading strategy is conceptually very similar - use VRAM when there's room, else fall back to RAM.-- Unfortunately, the Nvidia implementation is not optimized for applications like Invoke and does more harm than good.--## Troubleshooting--### Windows page file--Invoke has high virtual memory (a.k.a. 'committed memory') requirements. This can cause issues on Windows if the page file size limits are hit. (See this issue for the technical details on why this happens: https://github.com/invoke-ai/InvokeAI/issues/7563).--If you run out of page file space, InvokeAI may crash. Often, these crashes will happen with one of the following errors:--- InvokeAI exits with Windows error code `3221225477`-- InvokeAI crashes without an error, but `eventvwr.msc` reveals an error with code `0xc0000005` (the hex equivalent of `3221225477`)--If you are running out of page file space, try the following solutions:--- Make sure that you have sufficient disk space for the page file to grow. Watch your disk usage as Invoke runs. If it climbs near 100% leading up to the crash, then this is very likely the source of the issue. Clear out some disk space to resolve the issue.-- Make sure that your page file is set to "System managed size" (this is the default) rather than a custom size. Under the "System managed size" policy, the page file will grow dynamically as needed.diff --git a/docs-old/features/orphaned_model_removal.md b/docs-old/features/orphaned_model_removal.mddeleted file mode 100644index 9696b6e7ae..0000000000--- a/docs-old/features/orphaned_model_removal.md+++ /dev/null@@ -1,152 +0,0 @@-# Orphaned Models Synchronization Feature--## Overview-This feature adds a UI for synchronizing the models directory by finding and removing orphaned model files. Orphaned models are directories that contain model files but are not referenced in the InvokeAI database.--## Implementation Summary--### Backend (Python)--#### New Service: `OrphanedModelsService`-- Location: `invokeai/app/services/orphaned_models/`-- Implements the core logic from the CLI script-- Methods:- - `find_orphaned_models()`: Scans the models directory and database to find orphaned models- - `delete_orphaned_models(paths)`: Safely deletes specified orphaned model directories--#### API Routes-Added to `invokeai/app/api/routers/model_manager.py`:-- `GET /api/v2/models/sync/orphaned`: Returns list of orphaned models with metadata-- `DELETE /api/v2/models/sync/orphaned`: Deletes selected orphaned models--#### Data Models-- `OrphanedModelInfo`: Contains path, absolute_path, files list, and size_bytes-- `DeleteOrphanedModelsRequest`: Contains list of paths to delete-- `DeleteOrphanedModelsResponse`: Contains deleted paths and errors--### Frontend (TypeScript/React)--#### New Components--1. **SyncModelsButton.tsx**- - Red button styled with `colorScheme="error"` for visual prominence- - Labeled "Sync Models"- - Opens the SyncModelsDialog when clicked- - Located next to the "+ Add Models" button--2. **SyncModelsDialog.tsx**- - Modal dialog that displays orphaned models- - Features:- - List of orphaned models with checkboxes (default: all checked)- - "Select All" / "Deselect All" toggle- - Shows file count and total size for each model- - "Delete" and "Cancel" buttons- - Loading spinner while fetching data- - Error handling with user-friendly messages- - Automatically shows toast if no orphaned models found- - Shows success/error toasts after deletion--#### API Integration-- Added `useGetOrphanedModelsQuery` and `useDeleteOrphanedModelsMutation` hooks to `services/api/endpoints/models.ts`-- Integrated with RTK Query for efficient data fetching and caching--#### Translation Strings-Added to `public/locales/en.json`:-- syncModels, noOrphanedModels, orphanedModelsFound-- orphanedModelsDescription, foundOrphanedModels (with pluralization)-- filesCount, deleteSelected, deselectAll-- Success/error messages for deletion operations--## User Experience Flow--1. User clicks the red "Sync Models" button in the Model Manager-2. System queries the backend for orphaned models-3. If no orphaned models:- - Toast message: "The models directory is synchronized. No orphaned files found."- - Dialog closes automatically-4. If orphaned models found:- - Dialog shows list with checkboxes (all selected by default)- - User can toggle individual models or use "Select All" / "Deselect All"- - Each model shows:- - Directory path- - File count- - Total size (formatted: B, KB, MB, GB)-5. User clicks "Delete {{count}} selected"-6. System deletes selected models-7. Success/error toasts appear-8. Dialog closes--## Safety Features--1. **Database Backup**: The service creates a backup before any deletion-2. **Selective Deletion**: Users choose which models to delete-3. **Path Validation**: Ensures paths are within the models directory-4. **Error Handling**: Reports which models failed to delete and why-5. **Default Selected**: All models are selected by default for convenience-6. **Confirmation Required**: User must explicitly click Delete--## Technical Details--### Directory-Based Detection-The system treats model paths as directories:-- If database has `model-id/file.safetensors`, the entire `model-id/` directory belongs to that model-- All files and subdirectories within a registered model directory are protected-- Only directories with NO registered models are flagged as orphaned--### Supported File Extensions-- .safetensors-- .ckpt-- .pt-- .pth-- .bin-- .onnx--### Skipped Directories-- .download_cache-- .convert_cache-- \_\_pycache\_\_-- .git--## Testing Recommendations--1. **Test with orphaned models**:- - Manually copy a model directory to models folder- - Verify it appears in the dialog- - Delete it and verify removal--2. **Test with no orphaned models**:- - Clean install- - Verify toast message appears--3. **Test partial selection**:- - Select only some models- - Verify only selected ones are deleted--4. **Test error scenarios**:- - Invalid paths- - Permission issues- - Verify error messages are clear--## Files Changed--### Backend-- `invokeai/app/services/orphaned_models/__init__.py` (new)-- `invokeai/app/services/orphaned_models/orphaned_models_service.py` (new)-- `invokeai/app/api/routers/model_manager.py` (modified)--### Frontend-- `invokeai/frontend/web/src/services/api/endpoints/models.ts` (modified)-- `invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelManager.tsx` (modified)-- `invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelManagerPanel/SyncModelsButton.tsx` (new)-- `invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelManagerPanel/SyncModelsDialog.tsx` (new)-- `invokeai/frontend/web/public/locales/en.json` (modified)--## Future Enhancements--Potential improvements for future versions:-1. Show preview of what will be deleted before deletion-2. Add option to move orphaned models to archive instead of deleting-3. Show disk space that will be freed-4. Add filter/search in orphaned models list-5. Support for undo operation-6. Scheduled automatic cleanupdiff --git a/docs-old/help/SAMPLER_CONVERGENCE.md b/docs-old/help/SAMPLER_CONVERGENCE.mddeleted file mode 100644index 61fdca7b9c..0000000000--- a/docs-old/help/SAMPLER_CONVERGENCE.md+++ /dev/null@@ -1,151 +0,0 @@-----title: Sampler Convergence------# :material-palette-advanced: *Sampler Convergence*--As features keep increasing, making the right choices for your needs can become increasingly difficult. What sampler to use? And for how many steps? Do you change the CFG value? Do you use prompt weighting? Do you allow variations?--Even once you have a result, do you blend it with other images? Pass it through `img2img`? With what strength? Do you use inpainting to correct small details? Outpainting to extend cropped sections?--The purpose of this series of documents is to help you better understand these tools, so you can make the best out of them. Feel free to contribute with your own findings!--In this document, we will talk about sampler convergence.--Looking for a short version? Here's a TL;DR in 3 tables.--!!! note "Remember"-- - Results converge as steps (`-s`) are increased (except for `K_DPM_2_A` and `K_EULER_A`). Often at ≥ `-s100`, but may require ≥ `-s700`).- - Producing a batch of candidate images at low (`-s8` to `-s30`) step counts can save you hours of computation.- - `K_HEUN` and `K_DPM_2` converge in less steps (but are slower).- - `K_DPM_2_A` and `K_EULER_A` incorporate a lot of creativity/variability.--<div align="center" markdown>--| Sampler | (3 sample avg) it/s (M1 Max 64GB, 512x512) |-|---|---|-| `DDIM` | 1.89 |-| `PLMS` | 1.86 |-| `K_EULER` | 1.86 |-| `K_LMS` | 1.91 |-| `K_HEUN` | 0.95 (slower) |-| `K_DPM_2` | 0.95 (slower) |-| `K_DPM_2_A` | 0.95 (slower) |-| `K_EULER_A` | 1.86 |--</div>--!!! tip "suggestions"-- For most use cases, `K_LMS`, `K_HEUN` and `K_DPM_2` are the best choices (the latter 2 run 0.5x as quick, but tend to converge 2x as quick as `K_LMS`). At very low steps (≤ `-s8`), `K_HEUN` and `K_DPM_2` are not recommended. Use `K_LMS` instead.-- For variability, use `K_EULER_A` (runs 2x as quick as `K_DPM_2_A`).-------### *Sampler results*--Let's start by choosing a prompt and using it with each of our 8 samplers, running it for 10, 20, 30, 40, 50 and 100 steps.--Anime. `"an anime girl" -W512 -H512 -C7.5 -S3031912972`----### *Sampler convergence*--Immediately, you can notice results tend to converge -that is, as `-s` (step) values increase, images look more and more similar until there comes a point where the image no longer changes.--You can also notice how `DDIM` and `PLMS` eventually tend to converge to K-sampler results as steps are increased.-Among K-samplers, `K_HEUN` and `K_DPM_2` seem to require the fewest steps to converge, and even at low step counts they are good indicators of the final result. And finally, `K_DPM_2_A` and `K_EULER_A` seem to do a bit of their own thing and don't keep much similarity with the rest of the samplers.--### *Batch generation speedup*--This realization is very useful because it means you don't need to create a batch of 100 images (`-n100`) at `-s100` to choose your favorite 2 or 3 images.-You can produce the same 100 images at `-s10` to `-s30` using a K-sampler (since they converge faster), get a rough idea of the final result, choose your 2 or 3 favorite ones, and then run `-s100` on those images to polish some details.-The latter technique is 3-8x as quick.--!!! example-- At 60s per 100 steps.-- A) 60s * 100 images = 6000s (100 images at `-s100`, manually picking 3 favorites)-- B) 6s *100 images + 60s* 3 images = 780s (100 images at `-s10`, manually picking 3 favorites, and running those 3 at `-s100` to polish details)-- The result is __1 hour and 40 minutes__ for Variant A, vs __13 minutes__ for Variant B.--### *Topic convergance*--Now, these results seem interesting, but do they hold for other topics? How about nature? Food? People? Animals? Let's try!--Nature. `"valley landscape wallpaper, d&d art, fantasy, painted, 4k, high detail, sharp focus, washed colors, elaborate excellent painted illustration" -W512 -H512 -C7.5 -S1458228930`----With nature, you can see how initial results are even more indicative of final result -more so than with characters/people. `K_HEUN` and `K_DPM_2` are again the quickest indicators, almost right from the start. Results also converge faster (e.g. `K_HEUN` converged at `-s21`).--Food. `"a hamburger with a bowl of french fries" -W512 -H512 -C7.5 -S4053222918`----Again, `K_HEUN` and `K_DPM_2` take the fewest number of steps to be good indicators of the final result. `K_DPM_2_A` and `K_EULER_A` seem to incorporate a lot of creativity/variability, capable of producing rotten hamburgers, but also of adding lettuce to the mix. And they're the only samplers that produced an actual 'bowl of fries'!--Animals. `"grown tiger, full body" -W512 -H512 -C7.5 -S3721629802`----`K_HEUN` and `K_DPM_2` once again require the least number of steps to be indicative of the final result (around `-s30`), while other samplers are still struggling with several tails or malformed back legs.--It also takes longer to converge (for comparison, `K_HEUN` required around 150 steps to converge). This is normal, as producing human/animal faces/bodies is one of the things the model struggles the most with. For these topics, running for more steps will often increase coherence within the composition.--People. `"Ultra realistic photo, (Miranda Bloom-Kerr), young, stunning model, blue eyes, blond hair, beautiful face, intricate, highly detailed, smooth, art by artgerm and greg rutkowski and alphonse mucha, stained glass" -W512 -H512 -C7.5 -S2131956332`. This time, we will go up to 300 steps.----Observing the results, it again takes longer for all samplers to converge (`K_HEUN` took around 150 steps), but we can observe good indicative results much earlier (see: `K_HEUN`). Conversely, `DDIM` and `PLMS` are still undergoing moderate changes (see: lace around her neck), even at `-s300`.--In fact, as we can see in this other experiment, some samplers can take 700+ steps to converge when generating people.----Note also the point of convergence may not be the most desirable state (e.g. I prefer an earlier version of the face, more rounded), but it will probably be the most coherent arms/hands/face attributes-wise. You can always merge different images with a photo editing tool and pass it through `img2img` to smoothen the composition.--### *Sampler generation times*--Once we understand the concept of sampler convergence, we must look into the performance of each sampler in terms of steps (iterations) per second, as not all samplers run at the same speed.--<div align="center" markdown>--On my M1 Max with 64GB of RAM, for a 512x512 image--| Sampler | (3 sample average) it/s |-| :--- | :--- |-| `DDIM` | 1.89 |-| `PLMS` | 1.86 |-| `K_EULER` | 1.86 |-| `K_LMS` | 1.91 |-| `K_HEUN` | 0.95 (slower) |-| `K_DPM_2` | 0.95 (slower) |-| `K_DPM_2_A` | 0.95 (slower) |-| `K_EULER_A` | 1.86 |--</div>--Combining our results with the steps per second of each sampler, three choices come out on top: `K_LMS`, `K_HEUN` and `K_DPM_2` (where the latter two run 0.5x as quick but tend to converge 2x as quick as `K_LMS`). For creativity and a lot of variation between iterations, `K_EULER_A` can be a good choice (which runs 2x as quick as `K_DPM_2_A`).--Additionally, image generation at very low steps (≤ `-s8`) is not recommended for `K_HEUN` and `K_DPM_2`. Use `K_LMS` instead.--{ width=600}--### *Three key points*--Finally, it is relevant to mention that, in general, there are 3 important moments in the process of image formation as steps increase:--* The (earliest) point at which an image becomes a good indicator of the final result (useful for batch generation at low step values, to then improve the quality/coherence of the chosen images via running the same prompt and seed for more steps).--* The (earliest) point at which an image becomes coherent, even if different from the result if steps are increased (useful for batch generation at low step values, where quality/coherence is improved via techniques other than increasing the steps -e.g. via inpainting).--* The point at which an image fully converges.--Hence, remember that your workflow/strategy should define your optimal number of steps, even for the same prompt and seed (for example, if you seek full convergence, you may run `K_LMS` for `-s200` in the case of the red-haired girl, but `K_LMS` and `-s20`-taking one tenth the time- may do as well if your workflow includes adding small details, such as the missing shoulder strap, via `img2img`).diff --git a/docs-old/help/diffusion.md b/docs-old/help/diffusion.mddeleted file mode 100644index 7182a51d67..0000000000--- a/docs-old/help/diffusion.md+++ /dev/null@@ -1,27 +0,0 @@-Taking the time to understand the diffusion process will help you to understand how to more effectively use InvokeAI.--There are two main ways Stable Diffusion works - with images, and latents.--Image space represents images in pixel form that you look at. Latent space represents compressed inputs. It’s in latent space that Stable Diffusion processes images. A VAE (Variational Auto Encoder) is responsible for compressing and encoding inputs into latent space, as well as decoding outputs back into image space.--To fully understand the diffusion process, we need to understand a few more terms: UNet, CLIP, and conditioning.--A U-Net is a model trained on a large number of latent images with with known amounts of random noise added. This means that the U-Net can be given a slightly noisy image and it will predict the pattern of noise needed to subtract from the image in order to recover the original.--CLIP is a model that tokenizes and encodes text into conditioning. This conditioning guides the model during the denoising steps to produce a new image.--The U-Net and CLIP work together during the image generation process at each denoising step, with the U-Net removing noise in such a way that the result is similar to images in the U-Net’s training set, while CLIP guides the U-Net towards creating images that are most similar to the prompt.---When you generate an image using text-to-image, multiple steps occur in latent space:-1. Random noise is generated at the chosen height and width. The noise’s characteristics are dictated by seed. This noise tensor is passed into latent space. We’ll call this noise A.-2. Using a model’s U-Net, a noise predictor examines noise A, and the words tokenized by CLIP from your prompt (conditioning). It generates its own noise tensor to predict what the final image might look like in latent space. We’ll call this noise B.-3. Noise B is subtracted from noise A in an attempt to create a latent image consistent with the prompt. This step is repeated for the number of sampler steps chosen.-4. The VAE decodes the final latent image from latent space into image space.--Image-to-image is a similar process, with only step 1 being different:-1. The input image is encoded from image space into latent space by the VAE. Noise is then added to the input latent image. Denoising Strength dictates how many noise steps are added, and the amount of noise added at each step. A Denoising Strength of 0 means there are 0 steps and no noise added, resulting in an unchanged image, while a Denoising Strength of 1 results in the image being completely replaced with noise and a full set of denoising steps are performance. The process is then the same as steps 2-4 in the text-to-image process.--Furthermore, a model provides the CLIP prompt tokenizer, the VAE, and a U-Net (where noise prediction occurs given a prompt and initial noise tensor).--A noise scheduler (eg. DPM++ 2M Karras) schedules the subtraction of noise from the latent image across the sampler steps chosen (step 3 above). Less noise is usually subtracted at higher sampler steps.diff --git a/docs-old/help/gettingStartedWithAI.md b/docs-old/help/gettingStartedWithAI.mddeleted file mode 100644index 617bd60401..0000000000--- a/docs-old/help/gettingStartedWithAI.md+++ /dev/null@@ -1,97 +0,0 @@-# Getting Started with AI Image Generation--New to image generation with AI? You’re in the right place!--This is a high level walkthrough of some of the concepts and terms you’ll see as you start using InvokeAI. Please note, this is not an exhaustive guide and may be out of date due to the rapidly changing nature of the space.--## Using InvokeAI--### **Prompt Crafting**--- Prompts are the basis of using InvokeAI, providing the models directions on what to generate. As a general rule of thumb, the more detailed your prompt is, the better your result will be.-- *To get started, here’s an easy template to use for structuring your prompts:*--- Subject, Style, Quality, Aesthetic- - **Subject:** What your image will be about. E.g. “a futuristic city with trains”, “penguins floating on icebergs”, “friends sharing beers”- - **Style:** The style or medium in which your image will be in. E.g. “photograph”, “pencil sketch”, “oil paints”, or “pop art”, “cubism”, “abstract”- - **Quality:** A particular aspect or trait that you would like to see emphasized in your image. E.g. "award-winning", "featured in {relevant set of high quality works}", "professionally acclaimed". Many people often use "masterpiece".- - **Aesthetics:** The visual impact and design of the artwork. This can be colors, mood, lighting, setting, etc.-- There are two prompt boxes: *Positive Prompt* & *Negative Prompt*.- - A **Positive** Prompt includes words you want the model to reference when creating an image.- - Negative Prompt is for anything you want the model to eliminate when creating an image. It doesn’t always interpret things exactly the way you would, but helps control the generation process. Always try to include a few terms - you can typically use lower quality image terms like “blurry” or “distorted” with good success.-- Some examples prompts you can try on your own:- - A detailed oil painting of a tranquil forest at sunset with vibrant+ colors and soft, golden light filtering through the trees- - friends sharing beers in a busy city, realistic colored pencil sketch, twilight, masterpiece, bright, lively--### Generation Workflows--- Invoke offers a number of different workflows for interacting with models to produce images. Each is extremely powerful on its own, but together provide you an unparalleled way of producing high quality creative outputs that align with your vision.- - **Text to Image:** The text to image tab focuses on the key workflow of using a prompt to generate a new image. It includes other features that help control the generation process as well.- - **Image to Image:** With image to image, you provide an image as a reference (called the “initial image”), which provides more guidance around color and structure to the AI as it generates a new image. This is provided alongside the same features as Text to Image.- - **Unified Canvas:** The Unified Canvas is an advanced AI-first image editing tool that is easy to use, but hard to master. Drag an image onto the canvas from your gallery in order to regenerate certain elements, edit content or colors (known as inpainting), or extend the image with an exceptional degree of consistency and clarity (called outpainting).--### Improving Image Quality--- Fine tuning your prompt - the more specific you are, the closer the image will turn out to what is in your head! Adding more details in the Positive Prompt or Negative Prompt can help add / remove pieces of your image to improve it - You can also use advanced techniques like upweighting and downweighting to control the influence of certain words. [Learn more here](https://invoke-ai.github.io/InvokeAI/features/PROMPTS/#prompt-syntax-features).- - **Tip: If you’re seeing poor results, try adding the things you don’t like about the image to your negative prompt may help. E.g. distorted, low quality, unrealistic, etc.**-- Explore different models - Other models can produce different results due to the data they’ve been trained on. Each model has specific language and settings it works best with; a model’s documentation is your friend here. Play around with some and see what works best for you!-- Increasing Steps - The number of steps used controls how much time the model is given to produce an image, and depends on the “Scheduler” used. The schedule controls how each step is processed by the model. More steps tends to mean better results, but will take longer - We recommend at least 30 steps for most-- Tweak and Iterate - Remember, it’s best to change one thing at a time so you know what is working and what isn't. Sometimes you just need to try a new image, and other times using a new prompt might be the ticket. For testing, consider turning off the “random” Seed - Using the same seed with the same settings will produce the same image, which makes it the perfect way to learn exactly what your changes are doing.-- Explore Advanced Settings - InvokeAI has a full suite of tools available to allow you complete control over your image creation process - Check out our [docs if you want to learn more](https://invoke-ai.github.io/InvokeAI/features/).---## Terms & Concepts--If you're interested in learning more, check out [this presentation](https://docs.google.com/presentation/d/1IO78i8oEXFTZ5peuHHYkVF-Y3e2M6iM5tCnc-YBfcCM/edit?usp=sharing) from one of our maintainers (@lstein).--### Stable Diffusion--Stable Diffusion is deep learning, text-to-image model that is the foundation of the capabilities found in InvokeAI. Since the release of Stable Diffusion, there have been many subsequent models created based on Stable Diffusion that are designed to generate specific types of images.--### Prompts--Prompts provide the models directions on what to generate. As a general rule of thumb, the more detailed your prompt is, the better your result will be.--### Models--Models are the magic that power InvokeAI. These files represent the output of training a machine on understanding massive amounts of images - providing them with the capability to generate new images using just a text description of what you’d like to see. (Like Stable Diffusion!)--Invoke offers a simple way to download several different models upon installation, but many more can be discovered online, including at https://models.invoke.ai--Each model can produce a unique style of output, based on the images it was trained on - Try out different models to see which best fits your creative vision!--- *Models that contain “inpainting” in the name are designed for use with the inpainting feature of the Unified Canvas*--### Scheduler--Schedulers guide the process of removing noise (de-noising) from data. They determine:--1. The number of steps to take to remove the noise.-2. Whether the steps are random (stochastic) or predictable (deterministic).-3. The specific method (algorithm) used for de-noising.--Experimenting with different schedulers is recommended as each will produce different outputs!--### Steps--The number of de-noising steps each generation through.--Schedulers can be intricate and there's often a balance to strike between how quickly they can de-noise data and how well they can do it. It's typically advised to experiment with different schedulers to see which one gives the best results. There has been a lot written on the internet about different schedulers, as well as exploring what the right level of "steps" are for each. You can save generation time by reducing the number of steps used, but you'll want to make sure that you are satisfied with the quality of images produced!--### Low-Rank Adaptations / LoRAs--Low-Rank Adaptations (LoRAs) are like a smaller, more focused version of models, intended to focus on training a better understanding of how a specific character, style, or concept looks.--### Textual Inversion Embeddings--Textual Inversion Embeddings, like LoRAs, assist with more easily prompting for certain characters, styles, or concepts. However, embeddings are trained to update the relationship between a specific word (known as the “trigger”) and the intended output.--### ControlNet--ControlNets are neural network models that are able to extract key features from an existing image and use these features to guide the output of the image generation model.--### VAE--Variational auto-encoder (VAE) is a encode/decode model that translates the "latents" image produced during the image generation procees to the large pixel images that we see.-diff --git a/docs-old/img/favicon.ico b/docs-old/img/favicon.icodeleted file mode 100644index 16a72bebcb..0000000000Binary files a/docs-old/img/favicon.ico and /dev/null differdiff --git a/docs-old/img/invoke-symbol-wht-lrg.svg b/docs-old/img/invoke-symbol-wht-lrg.svgdeleted file mode 100755index 17cfdc77da..0000000000--- a/docs-old/img/invoke-symbol-wht-lrg.svg+++ /dev/null@@ -1,3 +0,0 @@-<svg width="66" height="66" viewBox="0 0 66 66" fill="none" xmlns="http://www.w3.org/2000/svg">-<path d="M43.9137 16H63.1211V3H3.12109V16H22.3285L43.9137 50H63.1211V63H3.12109V50H22.3285" stroke="white" stroke-width="5"/>-</svg>diff --git a/docs-old/index.md b/docs-old/index.mddeleted file mode 100644index 10e32359f7..0000000000--- a/docs-old/index.md+++ /dev/null@@ -1,73 +0,0 @@-----title: Invoke------<!--- The docs are generated with using mkdocs: https://www.mkdocs.org/-- To preview the docs locally, first install the requirements:- ```sh- pip install -e ".[docs]"- ```-- Then run the mkdocs server with `mkdocs serve`, or, on Unix systems, `make docs`.--->--<!-- CSS styling -->--<div align="center" markdown>--[](https://github.com/invoke-ai/InvokeAI)--[![discord badge]][discord link]-[![latest release badge]][latest release link]-[![github stars badge]][github stars link]-[![github forks badge]][github forks link]-[![latest commit to main badge]][latest commit to main link]-[![github open issues badge]][github open issues link]-[![github open prs badge]][github open prs link]--[discord badge]: https://flat.badgen.net/discord/members/ZmtBAhwWhy?icon=discord-[discord link]: https://discord.gg/ZmtBAhwWhy-[github forks badge]: https://flat.badgen.net/github/forks/invoke-ai/InvokeAI?icon=github-[github forks link]: https://useful-forks.github.io/?repo=lstein%2Fstable-diffusion-[github open issues badge]: https://flat.badgen.net/github/open-issues/invoke-ai/InvokeAI?icon=github-[github open issues link]: https://github.com/invoke-ai/InvokeAI/issues?q=is%3Aissue+is%3Aopen-[github open prs badge]: https://flat.badgen.net/github/open-prs/invoke-ai/InvokeAI?icon=github-[github open prs link]: https://github.com/invoke-ai/InvokeAI/pulls?q=is%3Apr+is%3Aopen-[github stars badge]: https://flat.badgen.net/github/stars/invoke-ai/InvokeAI?icon=github-[github stars link]: https://github.com/invoke-ai/InvokeAI/stargazers-[latest commit to main badge]: https://flat.badgen.net/github/last-commit/invoke-ai/InvokeAI/main?icon=github&color=yellow&label=last%20commit&cache=900-[latest commit to main link]: https://github.com/invoke-ai/InvokeAI/commits/main-[latest release badge]: https://flat.badgen.net/github/release/invoke-ai/InvokeAI/development?icon=github-[latest release link]: https://github.com/invoke-ai/InvokeAI/releases--</div>--<a href="https://github.com/invoke-ai/InvokeAI">Invoke</a> is a leading creative engine built to empower professionals and enthusiasts alike. Generate and create stunning visual media using the latest AI-driven technologies. Invoke offers an industry leading web-based UI, and serves as the foundation for multiple commercial products.--<div align="center"><img src="assets/invoke-web-server-1.png" width=640></div>--## Installation--The [Invoke Launcher](installation/quick_start.md) is the easiest way to install, update and run Invoke on Windows, macOS and Linux.--You can also install Invoke as [python package](installation/manual.md) or with [docker](installation/docker.md).--## Help--Please first check the [FAQ](./faq.md) to see if there is a fix for your issue or answer to your question.--If you still have a problem, [create an issue](https://github.com/invoke-ai/InvokeAI/issues) or ask for help on [Discord](https://discord.gg/ZmtBAhwWhy).--## Training--Invoke Training has moved to its own repository, with a dedicated UI for accessing common scripts like Textual Inversion and LoRA training.--You can find more by visiting the repo at <https://github.com/invoke-ai/invoke-training>.--## Contributing--We welcome contributions, big and small. Please review our [contributing guide](contributing/index.md) if you'd like make a contribution.--This software is a combined effort of [people across the world](contributing/contributors.md). We thank them for their time, hard work and effort!diff --git a/docs-old/installation/docker.md b/docs-old/installation/docker.mddeleted file mode 100644index 2f3b7ce1f7..0000000000--- a/docs-old/installation/docker.md+++ /dev/null@@ -1,87 +0,0 @@-----title: Docker------!!! warning "macOS users"-- Docker can not access the GPU on macOS, so your generation speeds will be slow. Use the [launcher](./quick_start.md) instead.--!!! tip "Linux and Windows Users"-- Configure Docker to access your machine's GPU.- Docker Desktop on Windows [includes GPU support](https://www.docker.com/blog/wsl-2-gpu-support-for-docker-desktop-on-nvidia-gpus/).- Linux users should follow the [NVIDIA](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html) or [AMD](https://rocm.docs.amd.com/projects/install-on-linux/en/latest/how-to/docker.html) documentation.--## TL;DR--Ensure your Docker setup is able to use your GPU. Then:-- ```bash- docker run --runtime=nvidia --gpus=all --publish 9090:9090 ghcr.io/invoke-ai/invokeai- ```--Once the container starts up, open <http://localhost:9090> in your browser, install some models, and start generating.--## Build-It-Yourself--All the docker materials are located inside the [docker](https://github.com/invoke-ai/InvokeAI/tree/main/docker) directory in the Git repo.-- ```bash- cd docker- cp .env.sample .env- docker compose up- ```--We also ship the `run.sh` convenience script. See the `docker/README.md` file for detailed instructions on how to customize the docker setup to your needs.--### Prerequisites--#### Install [Docker](https://github.com/santisbon/guides#docker)--On the [Docker Desktop app](https://docs.docker.com/get-docker/), go to-Preferences, Resources, Advanced. Increase the CPUs and Memory to avoid this-[Issue](https://github.com/invoke-ai/InvokeAI/issues/342). You may need to-increase Swap and Disk image size too.--### Setup--Set up your environment variables. In the `docker` directory, make a copy of `.env.sample` and name it `.env`. Make changes as necessary.--Any environment variables supported by InvokeAI can be set here - please see the [CONFIGURATION](../configuration.md) for further detail.--At a minimum, you might want to set the `INVOKEAI_ROOT` environment variable-to point to the location where you wish to store your InvokeAI models, configuration, and outputs.--<figure markdown>--| Environment-Variable <img width="220" align="right"/> | Default value <img width="360" align="right"/> | Description |-| ----------------------------------------------------- | ---------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |-| `INVOKEAI_ROOT` | `~/invokeai` | **Required** - the location of your InvokeAI root directory. It will be created if it does not exist. |-| `HUGGING_FACE_HUB_TOKEN` | | InvokeAI will work without it, but some of the integrations with HuggingFace (like downloading from models from private repositories) may not work |-| `GPU_DRIVER` | `cuda` | Optionally change this to `rocm` to build the image for AMD GPUs. NOTE: Use the `build.sh` script to build the image for this to take effect. |--</figure>--#### Build the Image--Use the standard `docker compose build` command from within the `docker` directory.--If using an AMD GPU:-a: set the `GPU_DRIVER=rocm` environment variable in `docker-compose.yml` and continue using `docker compose build` as usual, or-b: set `GPU_DRIVER=rocm` in the `.env` file and use the `build.sh` script, provided for convenience--#### Run the Container--Use the standard `docker compose up` command, and generally the `docker compose` [CLI](https://docs.docker.com/compose/reference/) as usual.--Once the container starts up (and configures the InvokeAI root directory if this is a new installation), you can access InvokeAI at [http://localhost:9090](http://localhost:9090)--## Troubleshooting / FAQ--- Q: I am running on Windows under WSL2, and am seeing a "no such file or directory" error.-- A: Your `docker-entrypoint.sh` might have has Windows (CRLF) line endings, depending how you cloned the repository.- To solve this, change the line endings in the `docker-entrypoint.sh` file to `LF`. You can do this in VSCode- (`Ctrl+P` and search for "line endings"), or by using the `dos2unix` utility in WSL.- Finally, you may delete `docker-entrypoint.sh` followed by `git pull; git checkout docker/docker-entrypoint.sh`- to reset the file to its most recent version.- For more information on this issue, see [Docker Desktop documentation](https://docs.docker.com/desktop/troubleshoot/topics/#avoid-unexpected-syntax-errors-use-unix-style-line-endings-for-files-in-containers)diff --git a/docs-old/installation/manual.md b/docs-old/installation/manual.mddeleted file mode 100644index 205e492749..0000000000--- a/docs-old/installation/manual.md+++ /dev/null@@ -1,149 +0,0 @@-# Manual Install--!!! warning-- **Python experience is mandatory.**-- If you want to use Invoke locally, you should probably use the [launcher](./quick_start.md).-- If you want to contribute to Invoke or run the app on the latest dev branch, instead follow the [dev environment](../contributing/dev-environment.md) guide.--InvokeAI is distributed as a python package on PyPI, installable with `pip`. There are a few things that are handled by the launcher that you'll need to manage manually, described in this guide.--## Requirements--Before you start, go through the [installation requirements](./requirements.md).--## Walkthrough--We'll use [`uv`](https://github.com/astral-sh/uv) to install python and create a virtual environment, then install the `invokeai` package. `uv` is a modern, very fast alternative to `pip`.--The following commands vary depending on the version of Invoke being installed and the system onto which it is being installed.--1. Install `uv` as described in its [docs](https://docs.astral.sh/uv/getting-started/installation/#standalone-installer). We suggest using the standalone installer method.-- Run `uv --version` to confirm that `uv` is installed and working. After installation, you may need to restart your terminal to get access to `uv`.--2. Create a directory for your installation, typically in your home directory (e.g. `~/invokeai` or `$Home/invokeai`):-- === "Linux/macOS"-- ```bash- mkdir ~/invokeai- cd ~/invokeai- ```-- === "Windows (PowerShell)"-- ```bash- mkdir $Home/invokeai- cd $Home/invokeai- ```--3. Create a virtual environment in that directory:-- ```sh- uv venv --relocatable --prompt invoke --python 3.12 --python-preference only-managed .venv- ```-- This command creates a portable virtual environment at `.venv` complete with a portable python 3.12. It doesn't matter if your system has no python installed, or has a different version - `uv` will handle everything.--4. Activate the virtual environment:-- === "Linux/macOS"-- ```bash- source .venv/bin/activate- ```-- === "Windows (PowerShell)"-- ```ps- .venv\Scripts\activate- ```--5. Choose a version to install. Review the [GitHub releases page](https://github.com/invoke-ai/InvokeAI/releases).--6. Determine the package specifier to use when installing. This is a performance optimization.-- - If you have an Nvidia 20xx series GPU or older, use `invokeai[xformers]`.- - If you have an Nvidia 30xx series GPU or newer, or do not have an Nvidia GPU, use `invokeai`.--7. Determine the torch backend to use for installation, if any. This is necessary to get the right version of torch installed. This is acheived by using [UV's built in torch support.](https://docs.astral.sh/uv/guides/integration/pytorch/#automatic-backend-selection)-- === "Invoke v5.12 and later"-- - If you are on Windows or Linux with an Nvidia GPU, use `--torch-backend=cu128`.- - If you are on Linux with no GPU, use `--torch-backend=cpu`.- - If you are on Linux with an AMD GPU, use `--torch-backend=rocm6.3`.- - **In all other cases, do not use a torch backend.**-- === "Invoke v5.10.0 to v5.11.0"-- - If you are on Windows or Linux with an Nvidia GPU, use `--torch-backend=cu126`.- - If you are on Linux with no GPU, use `--torch-backend=cpu`.- - If you are on Linux with an AMD GPU, use `--torch-backend=rocm6.2.4`.- - **In all other cases, do not use an index.**-- === "Invoke v5.0.0 to v5.9.1"-- - If you are on Windows with an Nvidia GPU, use `--torch-backend=cu124`.- - If you are on Linux with no GPU, use `--torch-backend=cpu`.- - If you are on Linux with an AMD GPU, use `--torch-backend=rocm6.1`.- - **In all other cases, do not use an index.**-- === "Invoke v4"-- - If you are on Windows with an Nvidia GPU, use `--torch-backend=cu124`.- - If you are on Linux with no GPU, use `--torch-backend=cpu`.- - If you are on Linux with an AMD GPU, use `--torch-backend=rocm5.2`.- - **In all other cases, do not use an index.**--8. Install the `invokeai` package. Substitute the package specifier and version.-- ```sh- uv pip install <PACKAGE_SPECIFIER>==<VERSION> --python 3.12 --python-preference only-managed --force-reinstall- ```-- If you determined you needed to use a torch backend in the previous step, you'll need to set the backend like this:-- ```sh- uv pip install <PACKAGE_SPECIFIER>==<VERSION> --python 3.12 --python-preference only-managed --torch-backend=<VERSION> --force-reinstall- ```--9. Deactivate and reactivate your venv so that the invokeai-specific commands become available in the environment:-- === "Linux/macOS"-- ```bash- deactivate && source .venv/bin/activate- ```-- === "Windows (PowerShell)"-- ```ps- deactivate- .venv\Scripts\activate- ```--10. Run the application, specifying the directory you created earlier as the root directory:-- === "Linux/macOS"-- ```bash- invokeai-web --root ~/invokeai- ```-- === "Windows (PowerShell)"-- ```bash- invokeai-web --root $Home/invokeai- ```--## Headless Install and Launch Scripts--If you run Invoke on a headless server, you might want to install and run Invoke on the command line.--We do not plan to maintain scripts to do this moving forward, instead focusing our dev resources on the GUI [launcher](../installation/quick_start.md).--You can create your own scripts for this by copying the handful of commands in this guide. `uv`'s [`pip` interface docs](https://docs.astral.sh/uv/reference/cli/#uv-pip-install) may be useful.diff --git a/docs-old/installation/models.md b/docs-old/installation/models.mddeleted file mode 100644index 9f2bf52793..0000000000--- a/docs-old/installation/models.md+++ /dev/null@@ -1,52 +0,0 @@-# Models--## Checkpoint and Diffusers Models--The model checkpoint files (`*.ckpt`) are the Stable Diffusion "secret sauce". They are the product of training the AI on millions of captioned images gathered from multiple sources.--Originally there was only a single Stable Diffusion weights file, which many people named `model.ckpt`.--Today, there are thousands of models, fine tuned to excel at specific styles, genres, or themes.--!!! tip "Model Formats"-- We also have two more popular model formats, both created [HuggingFace](https://huggingface.co/):-- - `safetensors`: Single file, like `.ckpt` files. Prevents malware from lurking in a model.- - `diffusers`: Splits the model components into separate files, allowing very fast loading.-- InvokeAI supports all three formats.--## Starter Models--When you first start InvokeAI, you'll see a popup prompting you to install some starter models from the Model Manager. Click the `Starter Models` tab to see the list.--You'll find a collection of popular and high-quality models available for easy download.--Some models carry license terms that limit their use in commercial applications or on public servers. It's your responsibility to adhere to the license terms.--## Other Models--There are a few ways to install other models:--- **URL or Local Path**: Provide the path to a model on your computer, or a direct link to the model. Some sites require you to use an API token to download models, which you can [set up in the config file].-- **HuggingFace**: Paste a HF Repo ID to install it. If there are multiple models in the repo, you'll get a list to choose from. Repo IDs look like this: `XpucT/Deliberate`. There is a copy button on each repo to copy the ID.-- **Scan Folder**: Scan a local folder for models. You can install all of the detected models in one click.--!!! tip "Autoimport"-- The dedicated autoimport folder is removed as of v4.0.0. You can do the same thing on the **Scan Folder** tab - paste the folder you'd like to import from and then click `Install All`.--### Diffusers models in HF repo subfolders--HuggingFace repos can be structured in any way. Some model authors include multiple models within the same folder.--In this situation, you may need to provide some additional information to identify the model you want, by adding `:subfolder_name` to the repo ID.--!!! example-- Say you have a repo ID `monster-labs/control_v1p_sd15_qrcode_monster`, and the model you want is inside the `v2` subfolder.-- Add `:v2` to the repo ID and use that when installing the model: `monster-labs/control_v1p_sd15_qrcode_monster:v2`--[set up in the config file]: ../configuration.md#model-marketplace-api-keysdiff --git a/docs-old/installation/patchmatch.md b/docs-old/installation/patchmatch.mddeleted file mode 100644index cd456deeed..0000000000--- a/docs-old/installation/patchmatch.md+++ /dev/null@@ -1,121 +0,0 @@-----title: Installing PyPatchMatch------PatchMatch is an algorithm used to infill images. It can greatly improve outpainting results. PyPatchMatch is a python wrapper around a C++ implementation of the algorithm.--It uses the image data around the target area as a reference to generate new image data of a similar character and quality.--## Why Use PatchMatch--In the context of image generation, "outpainting" refers to filling in a transparent area using AI-generated image data. But the AI can't generate without some initial data. We need to first fill in the transparent area with _something_.--The first step in "outpainting" then, is to fill in the transparent area with something. Generally, you get better results when that initial infill resembles the rest of the image.--Because PatchMatch generates image data so similar to the rest of the image, it works very well as the first step in outpainting, typically producing better results than other infill methods supported by Invoke (e.g. LaMA, cv2 infill, random tiles).--### Performance Caveat--PatchMatch is CPU-bound, and the amount of time it takes increases proportionally as the infill area increases. While the numbers certainly vary depending on system specs, you can expect a noticeable slowdown once you start infilling areas around 512x512 pixels. 1024x1024 pixels can take several seconds to infill.--## Installation--Unfortunately, installation can be somewhat challenging, as it requires some things that `pip` cannot install for you.--## Windows--You're in luck! On Windows platforms PyPatchMatch will install automatically on-Windows systems with no extra intervention.--## Macintosh--You need to have opencv installed so that pypatchmatch can be built:--```bash-brew install opencv-```--The next time you start `invoke`, after successfully installing opencv, pypatchmatch will be built.--## Linux--Prior to installing PyPatchMatch, you need to take the following steps:--### Debian Based Distros--1. Install the `build-essential` tools:-- ```sh- sudo apt update- sudo apt install build-essential- ```--2. Install `opencv`:-- ```sh- sudo apt install python3-opencv libopencv-dev- ```--3. Activate the environment you use for invokeai, either with `conda` or with a- virtual environment.--4. Install pypatchmatch:-- ```sh- pip install pypatchmatch- ```--5. Confirm that pypatchmatch is installed. At the command-line prompt enter- `python`, and then at the `>>>` line type- `from patchmatch import patch_match`: It should look like the following:-- ```py- Python 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0] on linux- Type "help", "copyright", "credits" or "license" for more information.- >>> from patchmatch import patch_match- Compiling and loading c extensions from "/home/lstein/Projects/InvokeAI/.invokeai-env/src/pypatchmatch/patchmatch".- rm -rf build/obj libpatchmatch.so- mkdir: created directory 'build/obj'- mkdir: created directory 'build/obj/csrc/'- [dep] csrc/masked_image.cpp ...- [dep] csrc/nnf.cpp ...- [dep] csrc/inpaint.cpp ...- [dep] csrc/pyinterface.cpp ...- [CC] csrc/pyinterface.cpp ...- [CC] csrc/inpaint.cpp ...- [CC] csrc/nnf.cpp ...- [CC] csrc/masked_image.cpp ...- [link] libpatchmatch.so ...- ```--### Arch Based Distros--1. Install the `base-devel` package:-- ```sh- sudo pacman -Syu- sudo pacman -S --needed base-devel- ```--2. Install `opencv`, `blas`, and required dependencies:-- ```sh- sudo pacman -S opencv blas fmt glew vtk hdf5- ```-- or for CUDA support-- ```sh- sudo pacman -S opencv-cuda blas fmt glew vtk hdf5- ```--3. Fix the naming of the `opencv` package configuration file:-- ```sh- cd /usr/lib/pkgconfig/- ln -sf opencv4.pc opencv.pc- ```--[**Next, Follow Steps 4-6 from the Debian Section above**](#linux)--If you see no errors you're ready to go!diff --git a/docs-old/installation/quick_start.md b/docs-old/installation/quick_start.mddeleted file mode 100644index 6482374180..0000000000--- a/docs-old/installation/quick_start.md+++ /dev/null@@ -1,154 +0,0 @@-# Invoke Community Edition Quick Start--Welcome to Invoke! Follow these steps to install, update, and get started creating.--## Step 1: System Requirements--Invoke runs on Windows 10+, macOS 14+ and Linux (Ubuntu 20.04+ is well-tested).--Hardware requirements vary significantly depending on model and image output size. The requirements below are rough guidelines.--- All Apple Silicon (M1, M2, etc) Macs work, but 16GB+ memory is recommended.-- AMD GPUs are supported on Linux only. The VRAM requirements are the same as Nvidia GPUs.--!!! info "Hardware Requirements (Windows/Linux)"-- === "SD1.5 - 512×512"-- - GPU: Nvidia 10xx series or later, 4GB+ VRAM.- - Memory: At least 8GB RAM.- - Disk: 10GB for base installation plus 30GB for models.-- === "SDXL - 1024×1024"-- - GPU: Nvidia 20xx series or later, 8GB+ VRAM.- - Memory: At least 16GB RAM.- - Disk: 10GB for base installation plus 100GB for models.-- === "FLUX.1 - 1024×1024"-- - GPU: Nvidia 20xx series or later, 10GB+ VRAM.- - Memory: At least 32GB RAM.- - Disk: 10GB for base installation plus 200GB for models.-- === "FLUX.2 Klein - 1024×1024"-- - GPU: Nvidia 20xx series or later, 6GB+ VRAM for GGUF Q4 quantized models, 12GB+ for full precision.- - Memory: At least 16GB RAM.- - Disk: 10GB for base installation plus 20GB for models.-- === "Z-Image Turbo - 1024x1024"- - GPU: Nvidia 20xx series or later, 8GB+ VRAM for the Q4_K quantized model. 16GB+ needed for the Q8 or BF16 models.- - Memory: At least 16GB RAM.- - Disk: 10GB for base installation plus 35GB for models.---More detail on system requirements can be found [here](./requirements.md).--## Step 2: Download and Set Up the Launcher--The Launcher manages your Invoke install. Follow these instructions to download and set up the Launcher.--!!! info "Instructions for each OS"-- === "Windows"-- - [Download for Windows](https://github.com/invoke-ai/launcher/releases/latest/download/Invoke.Community.Edition.Setup.latest.exe)- - Run the `EXE` to install the Launcher and start it.- - A desktop shortcut will be created; use this to run the Launcher in the future.- - You can delete the `EXE` file you downloaded.-- === "macOS"-- - [Download for macOS](https://github.com/invoke-ai/launcher/releases/latest/download/Invoke.Community.Edition-latest-arm64.dmg)- - Open the `DMG` and drag the app into `Applications`.- - Run the Launcher using its entry in `Applications`.- - You can delete the `DMG` file you downloaded.-- === "Linux"-- - [Download for Linux](https://github.com/invoke-ai/launcher/releases/latest/download/Invoke.Community.Edition-latest.AppImage)- - You may need to edit the `AppImage` file properties and make it executable.- - Optionally move the file to a location that does not require admin privileges and add a desktop shortcut for it.- - Run the Launcher by double-clicking the `AppImage` or the shortcut you made.--## Step 3: Install Invoke--Run the Launcher you just set up if you haven't already. Click **Install** and follow the instructions to install (or update) Invoke.--If you have an existing Invoke installation, you can select it and let the launcher manage the install. You'll be able to update or launch the installation.--!!! tip "Updating"-- The Launcher will check for updates for itself _and_ Invoke.-- - When the Launcher detects an update is available for itself, you'll get a small popup window. Click through this and the Launcher will update itself.- - When the Launcher detects an update for Invoke, you'll see a small green alert in the Launcher. Click that and follow the instructions to update Invoke.--## Step 4: Launch--Once installed, click **Finish**, then **Launch** to start Invoke.--The very first run after an installation or update will take a few extra moments to get ready.--!!! tip "Server Mode"-- The launcher runs Invoke as a desktop application. You can enable **Server Mode** in the launcher's settings to disable this and instead access the UI through your web browser.--## Step 5: Install Models--With Invoke started up, you'll need to install some models.--The quickest way to get started is to install a **Starter Model** bundle. If you already have a model collection, Invoke can use it.--!!! info "Install Models"-- === "Install a Starter Model bundle"-- 1. Go to the **Models** tab.- 2. Click **Starter Models** on the right.- 3. Click one of the bundles to install its models. Refer to the [system requirements](#step-1-confirm-system-requirements) if you're unsure which model architecture will work for your system.-- === "Use my model collection"-- 4. Go to the **Models** tab.- 5. Click **Scan Folder** on the right.- 6. Paste the path to your models collection and click **Scan Folder**.- 7. With **In-place install** enabled, Invoke will leave the model files where they are. If you disable this, **Invoke will move the models into its own folders**.--You’re now ready to start creating!--## Step 6: Learn the Basics--We recommend watching our [Getting Started Playlist](https://www.youtube.com/playlist?list=PLvWK1Kc8iXGrQy8r9TYg6QdUuJ5MMx-ZO). It covers essential features and workflows, including:--- Generating your first image.-- Using control layers and reference guides.-- Refining images with advanced workflows.--## Troubleshooting--If installation fails, retrying the install in Repair Mode may fix it. There's a checkbox to enable this on the Review step of the install flow.--If that doesn't fix it, [clearing the `uv` cache](https://docs.astral.sh/uv/reference/cli/#uv-cache-clean) might do the trick:--- Open and start the dev console (button at the bottom-left of the launcher).-- Run `uv cache clean`.-- Retry the installation. Enable Repair Mode for good measure.--If you are still unable to install, try installing to a different location and see if that works.--If you still have problems, ask for help on the Invoke [discord](https://discord.gg/ZmtBAhwWhy).--## Other Installation Methods--- You can install the Invoke application as a python package. See our [manual install](./manual.md) docs.-- You can run Invoke with docker. See our [docker install](./docker.md) docs.--## Need Help?--- Visit our [Support Portal](https://support.invoke.ai).-- Watch the [Getting Started Playlist](https://www.youtube.com/playlist?list=PLvWK1Kc8iXGrQy8r9TYg6QdUuJ5MMx-ZO).-- Join the conversation on [Discord][discord link].--[discord link]: https://discord.gg/ZmtBAhwWhydiff --git a/docs-old/installation/requirements.md b/docs-old/installation/requirements.mddeleted file mode 100644index b120eeadbc..0000000000--- a/docs-old/installation/requirements.md+++ /dev/null@@ -1,148 +0,0 @@-# Requirements--Invoke runs on Windows 10+, macOS 14+ and Linux (Ubuntu 20.04+ is well-tested).--## Hardware--Hardware requirements vary significantly depending on model and image output size.--The requirements below are rough guidelines for best performance. GPUs-with less VRAM typically still work, if a bit slower. Follow the-[Low-VRAM mode guide](../features/low-vram.md) to optimize performance.--- All Apple Silicon (M1, M2, etc) Macs work, but 16GB+ memory is recommended.-- AMD GPUs are supported on Linux only. The VRAM requirements are the same as Nvidia GPUs.--!!! info "Hardware Requirements (Windows/Linux)"-- === "SD1.5 - 512×512"-- - GPU: Nvidia 10xx series or later, 4GB+ VRAM.- - Memory: At least 8GB RAM.- - Disk: 10GB for base installation plus 30GB for models.-- === "SDXL - 1024×1024"-- - GPU: Nvidia 20xx series or later, 8GB+ VRAM.- - Memory: At least 16GB RAM.- - Disk: 10GB for base installation plus 100GB for models.-- === "FLUX.1 - 1024×1024"-- - GPU: Nvidia 20xx series or later, 10GB+ VRAM.- - Memory: At least 32GB RAM.- - Disk: 10GB for base installation plus 200GB for models.-- === "FLUX.2 Klein 4B - 1024×1024"-- - GPU: Nvidia 30xx series or later, 12GB+ VRAM (e.g. RTX 3090, RTX 4070). FP8 version works with 8GB+ VRAM.- - Memory: At least 16GB RAM.- - Disk: 10GB for base installation plus 20GB for models (Diffusers format with encoder).-- === "FLUX.2 Klein 9B - 1024×1024"-- - GPU: Nvidia 40xx series, 24GB+ VRAM (e.g. RTX 4090). FP8 version works with 12GB+ VRAM.- - Memory: At least 32GB RAM.- - Disk: 10GB for base installation plus 40GB for models (Diffusers format with encoder).-- === "Z-Image Turbo - 1024x1024"- - GPU: Nvidia 20xx series or later, 8GB+ VRAM for the Q4_K quantized model. 16GB+ needed for the Q8 or BF16 models.- - Memory: At least 16GB RAM.- - Disk: 10GB for base installation plus 35GB for models.--!!! info "`tmpfs` on Linux"-- If your temporary directory is mounted as a `tmpfs`, ensure it has sufficient space.--## Python--!!! tip "The launcher installs python for you"-- You don't need to do this if you are installing with the [Invoke Launcher](./quick_start.md).--Invoke requires python 3.11 through 3.12. If you don't already have one of these versions installed, we suggest installing 3.12, as it will be supported for longer.--Check that your system has an up-to-date Python installed by running `python3 --version` in the terminal (Linux, macOS) or cmd/powershell (Windows).--!!! info "Installing Python"-- === "Windows"-- - Install python with [an official installer].- - The installer includes an option to add python to your PATH. Be sure to enable this. If you missed it, re-run the installer, choose to modify an existing installation, and tick that checkbox.- - You may need to install [Microsoft Visual C++ Redistributable].-- === "macOS"-- - Install python with [an official installer].- - If model installs fail with a certificate error, you may need to run this command (changing the python version to match what you have installed): `/Applications/Python\ 3.11/Install\ Certificates.command`- - If you haven't already, you will need to install the XCode CLI Tools by running `xcode-select --install` in a terminal.-- === "Linux"-- - Installing python varies depending on your system. We recommend [using `uv` to manage your python installation](https://docs.astral.sh/uv/concepts/python-versions/#installing-a-python-version).- - You'll need to install `libglib2.0-0` and `libgl1-mesa-glx` for OpenCV to work. For example, on a Debian system: `sudo apt update && sudo apt install -y libglib2.0-0 libgl1-mesa-glx`--## Drivers--If you have an Nvidia or AMD GPU, you may need to manually install drivers or other support packages for things to work well or at all.--### Nvidia--Run `nvidia-smi` on your system's command line to verify that drivers and CUDA are installed. If this command fails, or doesn't report versions, you will need to install drivers.--Go to the [CUDA Toolkit Downloads] and carefully follow the instructions for your system to get everything installed.--Confirm that `nvidia-smi` displays driver and CUDA versions after installation.--#### Linux - via Nvidia Container Runtime--An alternative to installing CUDA locally is to use the [Nvidia Container Runtime] to run the application in a container.--#### Windows - Nvidia cuDNN DLLs--An out-of-date cuDNN library can greatly hamper performance on 30-series and 40-series cards. Check with the community on discord to compare your `it/s` if you think you may need this fix.--First, locate the destination for the DLL files and make a quick back up:--1. Find your InvokeAI installation folder, e.g. `C:\Users\Username\InvokeAI\`.-1. Open the `.venv` folder, e.g. `C:\Users\Username\InvokeAI\.venv` (you may need to show hidden files to see it).-1. Navigate deeper to the `torch` package, e.g. `C:\Users\Username\InvokeAI\.venv\Lib\site-packages\torch`.-1. Copy the `lib` folder inside `torch` and back it up somewhere.--Next, download and copy the updated cuDNN DLLs:--1. Go to <https://developer.nvidia.com/cudnn>.-1. Create an account if needed and log in.-1. Choose the newest version of cuDNN that works with your GPU architecture. Consult the [cuDNN support matrix] to determine the correct version for your GPU.-1. Download the latest version and extract it.-1. Find the `bin` folder, e.g. `cudnn-windows-x86_64-SOME_VERSION\bin`.-1. Copy and paste the `.dll` files into the `lib` folder you located earlier. Replace files when prompted.--If, after restarting the app, this doesn't improve your performance, either restore your back up or re-run the installer to reset `torch` back to its original state.--### AMD--!!! info "Linux Only"-- AMD GPUs are supported on Linux only, due to ROCm (the AMD equivalent of CUDA) support being Linux only.--!!! warning "Bumps Ahead"-- While the application does run on AMD GPUs, there are occasional bumps related to spotty torch support.--Run `rocm-smi` on your system's command line verify that drivers and ROCm are installed. If this command fails, or doesn't report versions, you will need to install them.--Go to the [ROCm Documentation] and carefully follow the instructions for your system to get everything installed.--Confirm that `rocm-smi` displays driver and CUDA versions after installation.--#### Linux - via Docker Container--An alternative to installing ROCm locally is to use a [ROCm docker container] to run the application in a container.--[ROCm docker container]: https://github.com/ROCm/ROCm-docker-[ROCm Documentation]: https://rocm.docs.amd.com/projects/install-on-linux/en/latest/tutorial/quick-start.html-[cuDNN support matrix]: https://docs.nvidia.com/deeplearning/cudnn/support-matrix/index.html-[Nvidia Container Runtime]: https://developer.nvidia.com/container-runtime-[CUDA Toolkit Downloads]: https://developer.nvidia.com/cuda-downloadsdiff --git a/docs-old/multiuser/admin_guide.md b/docs-old/multiuser/admin_guide.mddeleted file mode 100644index d0f797feab..0000000000--- a/docs-old/multiuser/admin_guide.md+++ /dev/null@@ -1,876 +0,0 @@-# InvokeAI Multi-User Administrator Guide--## Overview--This guide is for administrators managing a multi-user InvokeAI installation. It covers initial setup, user management, security best practices, and troubleshooting.--## Prerequisites--Before enabling multi-user support, ensure you have:--- InvokeAI installed and running-- Access to the server filesystem (for initial setup)-- Understanding of your deployment environment-- Backup of your existing data (recommended)--## Initial Setup--### Activating Multiuser Mode--To put InvokeAI into multiuser mode, you will need to add the option-`multiuser: true` to its configuration file. This file is located at-`INVOKEAI_ROOT/invokeai.yaml` With the InvokeAI backend halted, add-the new configuration option to the end of the file with a text editor-so that it looks like this:--```yaml-# Internal metadata - do not edit:-schema_version: 4.0.2--# Enable/disable multi-user mode-multiuser: true-```--Then restart the InvokeAI server backend from the command line or-using the launcher.--!!! note "Reverting to single-user mode"- If at any time you wish to revert to single-user mode, simply comment- out the `multiuser` line, or change "true" to "false". Then- restart the server. Because of the way that browsers cache pages,- users with open InvokeAI sessions may need to force-refresh their- browsers.---### First Administrator Account--When InvokeAI starts for the first time in multi-user mode, you'll see the **Administrator Setup** dialog.--**Setup Steps:**--1. **Email Address**: Enter a valid email address (this becomes your username)-- * Example: `[email protected]` or `admin@localhost` for testing- * Must be a valid email format- * Cannot be changed later without database access--2. **Display Name**: Enter a friendly name-- * Example: "System Administrator" or your real name- * Can be changed later in your profile- * Visible to other users in shared contexts--3. **Password**: Create a strong administrator password-- * **Minimum requirements:**-- * At least 8 characters long- * Contains uppercase letters (A-Z)- * Contains lowercase letters (a-z)- * Contains numbers (0-9)-- * **Recommended:**-- * Use 12+ characters- * Include special characters (!@#$%^&*)- * Use a password manager to generate and store- * Don't reuse passwords from other services--4. **Confirm Password**: Re-enter the password--5. Click **Create Administrator Account**--!!! warning "Important"- Store these credentials securely! The- first administrator account can reset- the password to something new, but cannot- retrieve a lost one.--### Configuration--InvokeAI can run in single-user or multi-user mode, controlled by the `multiuser` configuration option in `invokeai.yaml`:--```yaml-# Enable/disable multi-user mode-multiuser: true # Enable multi-user mode (requires authentication)-# multiuser: false # Single-user mode (no authentication required)-# If the multiuser option is absent, single-user mode is used--# Database configuration-use_memory_db: false # Use persistent database-db_path: databases/invokeai.db # Database location--# Session configuration (multi-user mode only)-jwt_secret_key: "your-secret-key-here" # Auto-generated if not specified-jwt_token_expiry_hours: 24 # Default session timeout-jwt_remember_me_days: 7 # "Remember me" duration-```--**Single-User Mode** (`multiuser: false` or option absent):-- No authentication required-- All functionality enabled by default-- All boards and images visible in unified view-- Ideal for personal use or trusted environments--**Multi-User Mode** (`multiuser: true`):-- Authentication required for access-- User isolation for boards, images, and workflows-- Role-based permissions enforced-- Ideal for shared servers or team environments--!!! warning "Mode Switching Behavior"- **Switching to Single-User Mode:** If boards or images were created in multi-user mode, they will all be combined into a single unified view when switching to single-user mode.-- **Switching to Multi-User Mode:** Legacy boards and images created under single-user mode will be owned by an internal user named "system." Only the Administrator will have access to these legacy assets. A utility to migrate these legacy assets to another user will be part of a future release.--### Migration from Single-User--When upgrading from a single-user installation or switching modes:--1. **Automatic Migration**: The database will automatically migrate to multi-user schema when multi-user mode is first enabled-2. **Legacy Data Ownership**: Existing data (boards, images, workflows) created in single-user mode is assigned to an internal user named "system"-3. **Administrator Access**: Only administrators will have access to legacy "system"-owned assets when in multi-user mode-4. **No Data Loss**: All existing content is preserved--**Migration Process:**--```bash-# Backup your database first-cp databases/invokeai.db databases/invokeai.db.backup--# Enable multi-user mode in invokeai.yaml-# multiuser: true--# Start InvokeAI (migration happens automatically)-invokeai-web--# Complete the administrator setup dialog-# Legacy data will be owned by "system" user-```--!!! note "Legacy Asset Migration"- A utility to migrate legacy "system"-owned assets to specific user accounts will be available in a future release. Until then, administrators can access and manage all legacy content.--## User Management--### Creating Users--**Via Web Interface (Coming Soon):**--!!! info "Web UI for User Management"- A web-based user interface that allows administrators to manage users is coming in a future release. Until then, use the command-line scripts described below.--**Via Command Line Scripts:**--InvokeAI provides several command-line scripts in the `scripts/` directory for user management:--**useradd.py** - Add a new user:--```bash-# Interactive mode (prompts for details)-python scripts/useradd.py--# Create a regular user-python scripts/useradd.py \- --email [email protected] \- --password TempPass123 \- --name "User Name"--# Create an administrator-python scripts/useradd.py \- --email [email protected] \- --password AdminPass123 \- --name "Admin Name" \- --admin-```--**userlist.py** - List all users:--```bash-# List all users-python scripts/userlist.py--# Show detailed information-python scripts/userlist.py --verbose-```--**usermod.py** - Modify an existing user:--```bash-# Change display name-python scripts/usermod.py --email [email protected] --name "New Name"--# Promote to administrator-python scripts/usermod.py --email [email protected] --admin--# Demote from administrator-python scripts/usermod.py --email [email protected] --no-admin--# Deactivate account-python scripts/usermod.py --email [email protected] --deactivate--# Reactivate account-python scripts/usermod.py --email [email protected] --activate--# Change password-python scripts/usermod.py --email [email protected] --password NewPassword123-```--**userdel.py** - Delete a user:--```bash-# Delete a user (prompts for confirmation)-python scripts/userdel.py --email [email protected]--# Delete without confirmation-python scripts/userdel.py --email [email protected] --force-```--!!! tip "Script Usage"- Run any script with `--help` to see all available options:- ```bash- python scripts/useradd.py --help- ```--!!! warning "Command Line Management"- - These scripts directly modify the database- - Always backup your database before making changes- - Changes take effect immediately (users may need to log in again)- - Deleting a user permanently removes all their content--### Editing Users--**Via Command Line:**--Use `usermod.py` as described above to modify user properties.--!!! warning "Last Administrator"- You cannot remove admin privileges from the last remaining administrator account.--### Resetting User Passwords--**Via Web Interface (Coming Soon):**--Web-based password reset functionality for administrators is coming in a future release.--**Via Command Line:**--```bash-# Reset a user's password-python scripts/usermod.py --email [email protected] --password NewTempPassword123-```--**Security Note:** Never send passwords via email or unsecured channels. Use secure communication methods.--### Deactivating Users--**Via Command Line:**--```bash-# Deactivate a user account-python scripts/usermod.py --email [email protected] --deactivate--# Reactivate a user account-python scripts/usermod.py --email [email protected] --activate-```--**Effects:**--- User cannot log in when deactivated-- Existing sessions are immediately invalidated-- User's data is preserved-- Can be reactivated at any time--### Deleting Users--**Via Command Line:**--```bash-# Delete a user (prompts for confirmation)-python scripts/userdel.py --email [email protected]--# Delete without confirmation prompt-python scripts/userdel.py --email [email protected] --force-```--**Important:**--- ⚠️ This action is **permanent**-- User's boards, images, and workflows are deleted-- Cannot be undone-- Consider deactivating instead of deleting--!!! warning "Data Loss"- Deleting a user permanently removes all their content. Back up the database first if recovery might be needed.--### Viewing User Activity--**Queue Management:**--1. Navigate to **Admin** → **Queue Overview**-2. View all users' active and pending generations-3. Filter by user-4. Cancel stuck or problematic tasks--**User Statistics:**--- Number of boards created-- Number of images generated-- Storage usage (if enabled)-- Last login time--## Model Management--As an administrator, you have full access to model management.--### Adding Models--**Via Model Manager UI:**--1. Go to **Models** tab-2. Click **Add Model**-3. Choose installation method:- - **From URL**: Provide HuggingFace repo or download URL- - **From Local Path**: Scan local directories- - **Import**: Import model from filesystem--**Supported Model Types:**--- Main models (Stable Diffusion, SDXL, FLUX)-- LoRA models-- ControlNet models-- VAE models-- Textual Inversions-- IP-Adapters--### Configuring Models--**Model Settings:**--- Display name-- Description-- Default generation settings (CFG, steps, scheduler)-- Variant selection (fp16/fp32)-- Model thumbnail image--**Default Settings:**--Set default parameters that users will start with:--1. Select a model-2. Go to **Default Settings** tab-3. Configure:- - CFG Scale- - Steps- - Scheduler- - VAE selection-4. Save settings--### Removing Models--1. Go to **Models** tab-2. Select model(s) to remove-3. Click **Delete**-4. Confirm deletion--!!! warning "Impact"- Removing a model affects all users who may be using it in workflows or saved settings.--## Shared Boards--Shared boards enable collaboration between users while maintaining control.--!!! note "Future Feature"- Board sharing will be implemented in a future release.--### Creating Shared Boards--1. Log in as administrator-2. Create a new board (or use existing board)-3. Right-click the board → **Share Board**-4. Add users and set permissions-5. Click **Save Sharing Settings**--### Permission Levels--| Level | View | Add Images | Edit/Delete | Manage Sharing |-|-------|------|------------|-------------|----------------|-| **Read** | ✅ | ❌ | ❌ | ❌ |-| **Write** | ✅ | ✅ | ✅ | ❌ |-| **Admin** | ✅ | ✅ | ✅ | ✅ |--**Permission Recommendations:**--- **Read**: For viewers who should see but not modify content-- **Write**: For active collaborators who add and organize images-- **Admin**: For trusted users who help manage the shared board--### Managing Shared Boards--**Add Users to Shared Board:**--1. Right-click shared board → **Manage Sharing**-2. Click **Add User**-3. Select user from dropdown-4. Choose permission level-5. Save changes--**Remove Users from Shared Board:**--1. Right-click shared board → **Manage Sharing**-2. Find user in list-3. Click **Remove**-4. Confirm removal--**Change User Permissions:**--1. Right-click shared board → **Manage Sharing**-2. Find user in list-3. Change permission dropdown-4. Save changes--### Shared Board Best Practices--- Give meaningful names to shared boards-- Document the board's purpose in the description-- Assign minimum necessary permissions-- Regularly audit access lists-- Remove users who no longer need access--## Security--### Password Policies--**Enforced Requirements:**--- Minimum 8 characters-- Must contain uppercase letters-- Must contain lowercase letters-- Must contain numbers--**Recommended Policies:**--- Require 12+ character passwords-- Include special characters-- Implement password rotation every 90 days-- Prevent password reuse-- Use multi-factor authentication (when available)--### Session Management--**Session Security and Token Management:**--This system uses stateless JWT tokens with HMAC signatures to-identify users after they provide their initial credentials. The-tokens will persist for 24 hours by default, or for 7 days if the user-clicks the "Remember me" checkbox at login. Expired tokens are-automatically rejected and the user will have to log in again.--At the client side, tokens are stored in browser localStorage. Logging-out clears them. No server-side session storage is required.--The tokens include the user's ID, email, and admin status, along with-an HMAC signature.--### Secret Key Management--**Important:** The JWT secret key must be kept confidential.--To generate tokens, each InvokeAI instance has a distinct secret JWT key that must be-kept confidential. The key is stored in the `app_settings` table of-the InvokeAI database with in a field value named `jwt_secret`.--The secret key is automatically generated during database creation or-migration. If you wish to change the key, you may generate a-replacement using either of these commands:---```bash-# Python-python -c "import secrets; print(secrets.token_urlsafe(32))"--# OpenSSL-openssl rand -base64 32-```--Then cut and paste the printed secret into this Sqlite3 command:--```bash-sqlite3 INVOKE_ROOT/databases/invokeai.db 'update app_settings set value="THE_SECRET" where key="jwt_secret"'-```--(replace INVOKE_ROOT with your InvokeAI root directory and THE_SECRET-with the new secret).--After this, restart the server. All logged in users will be logged out-and will need to provide their usernames and passwords again.--### Hosting a Shared InvokeAI Instance--The multiuser feature allows you to run an InvokeAI backend that can-be accessed by your friends and family across your home network. It is-also possible to host a backend that is accessible over the Internet.--By default, InvokeAI runs on `localhost`, IP address `127.0.0.1`,-which is only accessible to browsers running on the same machine as-the backend. To make the backend accessible to any machine on your-home or work LAN, add the line `host: 0.0.0.0` to the InvokeAI-configuration file, usually stored at `INVOKE_ROOT/invokeai.yaml`.--Here is a minimal example.--```yaml-# Internal metadata - do not edit:-schema_version: 4.0.2--# Put user settings here - see https://invoke-ai.github.io/InvokeAI/configuration/:-multiuser: true-host: 0.0.0.0-```--After relaunching the backend you will be able to reach the server-from other machines on the LAN using the server machine's IP address-or hostname and port 9090.--#### Connecting to the Internet--!!! warning "Use at your own risk"- The InvokeAI team has done its best to make the software free of- exploitable bugs, but the software has not undergone a rigorous security- audit or intrusion testing. Use at your own risk--It is also possible to create a (semi) public server accessible from-the Internet. The details of how to do this depend very much on your-home or corporate router/firewall system and are beyond the scope of-this document.--If you expose InvokeAI to the Internet, there are a number of-precautions to take. Here is a brief list of recommended network-security practices.--**HTTPS Configuration:**--For internet deployments, always use HTTPS:--```yaml-# Use a reverse proxy like nginx or Traefik-# Example nginx configuration:--server {- listen 443 ssl http2;- server_name invoke.example.com;-- ssl_certificate /path/to/cert.pem;- ssl_certificate_key /path/to/key.pem;-- location / {- proxy_pass http://localhost:9090;- proxy_set_header Host $host;- proxy_set_header X-Real-IP $remote_addr;- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;- proxy_set_header X-Forwarded-Proto $scheme;-- # WebSocket support- proxy_http_version 1.1;- proxy_set_header Upgrade $http_upgrade;- proxy_set_header Connection "upgrade";- }-}-```--**Firewall Rules:**--It is best to restrict access to trusted networks and remote IP-addresses, or use a VPN to connect to your home network. Rate limit-connections to InvokeAI's authentication endpoint-`http://your.host:9090/login`.--**Backup and Recovery:**--It is a good idea to periodically backup your InvokeAI database,-images, and possibly models in the event of unauthorized use of a-publicly-accessible server.--**Manual Backup:**--```bash-# Stop InvokeAI-# Copy database file-cd INVOKE_ROOT-cp databases/invokeai.db databases/invokeai.db.$(date +%Y%m%d)--# Or create compressed backup-tar -czf invokeai_backup_$(date +%Y%m%d).tar.gz databases/-```--**Automated Backup Script:**--```bash-#!/bin/bash-# backup_invokeai.sh--INVOKE_ROOT="/path/to/invoke_root"-BACKUP_DIR="/path/to/backups"-DB_PATH="$INVOKE_ROOT/databases/invokeai.db"-DATE=$(date +%Y%m%d_%H%M%S)--# Create backup directory-mkdir -p "$BACKUP_DIR"--# Copy database-cp "$DB_PATH" "$BACKUP_DIR/invokeai_$DATE.db"--# Keep only last 30 days-find "$BACKUP_DIR" -name "invokeai_*.db" -mtime +30 -delete--echo "Backup completed: invokeai_$DATE.db"-```--**Schedule with cron:**--```bash-# Edit crontab-crontab -e--# Add daily backup at 2 AM-0 2 * * * /path/to/backup_invokeai.sh-```----```bash-# Stop InvokeAI-# Replace current database with backup-cd INVOKE_ROOT-cp databases/invokeai.db databases/invokeai.db.old # Save current-cp databases/invokeai_backup.db databases/invokeai.db--# Restart InvokeAI-invokeai-web-```--**Disaster Recover - Complete System Backup:**--Include these directories/files:--- `databases/` - All database files-- `models/` - Installed models (if locally stored)-- `outputs/` - Generated images-- `invokeai.yaml` - Configuration file-- Any custom scripts or modifications--**Recovery Process:**--1. Install InvokeAI on new system-2. Restore configuration file-3. Restore database directory-4. Restore models and outputs-5. Verify file permissions-6. Start InvokeAI and test--## Troubleshooting--### User Cannot Login--**Symptom:** User reports unable to log in--**Diagnosis:**--1. Verify account exists and is active- ```bash- sqlite3 databases/invokeai.db "SELECT * FROM users WHERE email = '[email protected]';"- ```--2. Check password (have user try resetting)-3. Verify account is active (`is_active = 1`)-4. Check for account lockout (if implemented)--**Solutions:**--- Reset user password-- Reactivate disabled account-- Verify email address is correct-- Check system logs for auth errors--### Database Locked Errors--**Symptom:** "Database is locked" errors--**Causes:**--- Concurrent write operations-- Long-running transactions-- Backup process accessing database-- File system issues--**Solutions:**--```bash-# Check for locks-fuser databases/invokeai.db--# Increase timeout (in config)-# Or switch to WAL mode:-sqlite3 databases/invokeai.db "PRAGMA journal_mode=WAL;"-```--### Forgotten Admin Password--**Recovery Process:**--1. Stop InvokeAI-2. Direct database access:- ```bash- sqlite3 databases/invokeai.db- ```--3. Reset admin password (requires password hash):- ```sql- -- Generate hash first using Python:- -- from passlib.context import CryptContext- -- pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")- -- print(pwd_context.hash("NewPassword123"))-- UPDATE users- SET password_hash = '$2b$12$...'- WHERE email = '[email protected]';- ```--4. Restart InvokeAI--**Alternative:** Remove `jwt_secret_key` from config to trigger setup wizard (will create new admin).--### Performance Issues--**Symptom:** Slow generation or UI--**Diagnosis:**--1. Check active generation count-2. Review resource usage (CPU/GPU/RAM)-3. Check database size and performance-4. Review network latency--**Solutions:**--- Limit concurrent generations-- Increase hardware resources-- Optimize database (`VACUUM`, `ANALYZE`)-- Add indexes for slow queries-- Consider load balancing--### Migration Failures--**Symptom:** Database migration fails on upgrade--**Prevention:**--- Always backup before upgrading-- Test migration on copy of database-- Review migration logs--**Recovery:**--```bash-# Restore backup-cp databases/invokeai.db.backup databases/invokeai.db--# Try migration again with verbose logging-invokeai-web --log-level DEBUG-```--## Configuration Reference--### Complete Configuration Example for a Public Site--```yaml-# invokeai.yaml - Multi-user configuration--# Internal metadata - do not edit:-schema_version: 4.0.2--# Put user settings here-multiuser: true--# Server-host: "0.0.0.0"-port: 9090--# Performance-enable_partial_loading: true-precision: float16-pytorch_cuda_alloc_conf: "backend:cudaMallocAsync"-hashing_algorithm: blake3_multi-```-## Frequently Asked Questions--### How many users can InvokeAI support?--The backend will support dozens of concurrent users. However, because-the image generation queue is single-threaded, image generation tasks-are processed on a first-come, first-serve basis. This means that a-user may have to wait for all the other users' image generation jobs-to complete before their generation job starts to execute.--A future version of InvokeAI may support concurrent execution on-systems with multiple GPUs/graphics cards.--### Can I integrate with existing authentication systems?--OAuth2/OpenID Connect support is planned for a future release. Currently, InvokeAI uses its own authentication system.--### How do I audit user actions?--Full audit logging is planned for a future release. Currently, you can:--- Monitor the generation queue-- Review database changes-- Check application logs--### Can users have different model access?--Not in the current release. All users can view and use all installed models. Per-user model access is a possible enhancement.--### How do I handle user data when they leave?--Best practice:--1. Deactivate the account first-2. Transfer ownership of shared boards-3. After transition period, delete the account-4. Or keep the account deactivated for audit purposes--### What's the licensing impact of multi-user mode?--InvokeAI remains under its existing license. Multi-user mode does not change licensing terms.--## Getting Help--### Support Resources--- **Documentation**: [InvokeAI Docs](https://invoke-ai.github.io/InvokeAI/)-- **Discord**: [Join Community](https://discord.gg/ZmtBAhwWhy)-- **GitHub Issues**: [Report Problems](https://github.com/invoke-ai/InvokeAI/issues)-- **User Guide**: [For Users](user_guide.md)-- **API Guide**: [For Developers](api_guide.md)--### Reporting Issues--When reporting administrator issues, include:--- InvokeAI version-- Operating system and version-- Database size and user count-- Relevant log excerpts-- Steps to reproduce-- Expected vs actual behavior--## Additional Resources--- [User Guide](user_guide.md) - For end users-- [API Guide](api_guide.md) - For API consumers-- [Multiuser Specification](specification.md) - Technical details-------**Need additional assistance?** Visit the [InvokeAI Discord](https://discord.gg/ZmtBAhwWhy) or file an issue on [GitHub](https://github.com/invoke-ai/InvokeAI/issues).diff --git a/docs-old/multiuser/api_guide.md b/docs-old/multiuser/api_guide.mddeleted file mode 100644index e521e881e7..0000000000--- a/docs-old/multiuser/api_guide.md+++ /dev/null@@ -1,1224 +0,0 @@-# InvokeAI Multi-User API Guide--## Overview--This guide explains how to interact with InvokeAI's API in both single-user and multi-user modes. The API behavior depends on the `multiuser` configuration setting.--### Single-User vs Multi-User Mode--**Single-User Mode** (`multiuser: false` or option absent):-- No authentication required-- All API endpoints accessible without tokens-- Direct API access like previous InvokeAI versions-- All content visible in unified view--**Multi-User Mode** (`multiuser: true`):-- JWT token authentication required-- User-scoped access to resources-- Role-based authorization (admin vs regular user)-- Data isolation between users--## Authentication (Multi-User Mode Only)--### Authentication Flow--When multi-user mode is enabled, all API endpoints (except `/api/v1/auth/setup` and `/api/v1/auth/login`) require authentication using JWT (JSON Web Token) bearer tokens.--**Authentication Process:**--1. **Obtain Token**: POST credentials to `/api/v1/auth/login`-2. **Store Token**: Save the JWT token securely-3. **Use Token**: Include token in `Authorization` header for all requests-4. **Refresh**: Re-authenticate when token expires--!!! note "Single-User Mode"- When running in single-user mode (`multiuser: false`), authentication endpoints are not available and authentication headers are not required.--### Login Endpoint--**Endpoint:** `POST /api/v1/auth/login`--**Request:**--```json-{- "email": "[email protected]",- "password": "SecurePassword123",- "remember_me": false-}-```--**Response (Success):**--```json-{- "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",- "user": {- "user_id": "abc123",- "email": "[email protected]",- "display_name": "John Doe",- "is_admin": false,- "is_active": true,- "created_at": "2024-01-15T10:00:00Z"- },- "expires_in": 86400-}-```--**Response (Error):**--```json-{- "detail": "Incorrect email or password"-}-```--**Status Codes:**--- `200 OK` - Authentication successful-- `401 Unauthorized` - Invalid credentials-- `403 Forbidden` - Account disabled-- `422 Unprocessable Entity` - Invalid request format--### Using the Token--Include the JWT token in the `Authorization` header with the `Bearer` scheme:--**HTTP Header:**--```-Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...-```--**Example HTTP Request:**--```http-GET /api/v1/boards HTTP/1.1-Host: localhost:9090-Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...-Content-Type: application/json-```--### Token Expiration--Tokens have a limited lifetime:--- **Default**: 24 hours (86400 seconds)-- **Remember Me**: 7 days (604800 seconds)--**Handling Expiration:**--```python-import requests-import time--def api_request(url, token, max_retries=1):- headers = {"Authorization": f"Bearer {token}"}- response = requests.get(url, headers=headers)-- if response.status_code == 401: # Token expired- # Re-authenticate and retry- new_token = login()- headers = {"Authorization": f"Bearer {new_token}"}- response = requests.get(url, headers=headers)-- return response-```--### Logout Endpoint--**Endpoint:** `POST /api/v1/auth/logout`--**Request:**--```http-POST /api/v1/auth/logout HTTP/1.1-Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...-```--**Response:**--```json-{- "success": true-}-```--**Note:** With JWT tokens, logout is primarily client-side (delete token). Server-side session invalidation may be added in future releases.--## Code Examples--### Python--**Using `requests` library:**--```python-import requests-import json--class InvokeAIClient:- def __init__(self, base_url="http://localhost:9090"):- self.base_url = base_url- self.token = None-- def login(self, email, password, remember_me=False):- """Authenticate and store token."""- url = f"{self.base_url}/api/v1/auth/login"- payload = {- "email": email,- "password": password,- "remember_me": remember_me- }-- response = requests.post(url, json=payload)- response.raise_for_status()-- data = response.json()- self.token = data["token"]- return data["user"]-- def _get_headers(self):- """Get headers with authentication token."""- if not self.token:- raise Exception("Not authenticated. Call login() first.")-- return {- "Authorization": f"Bearer {self.token}",- "Content-Type": "application/json"- }-- def get_boards(self):- """Get user's boards."""- url = f"{self.base_url}/api/v1/boards/"- response = requests.get(url, headers=self._get_headers())- response.raise_for_status()- return response.json()-- def create_board(self, board_name):- """Create a new board."""- url = f"{self.base_url}/api/v1/boards/"- payload = {"board_name": board_name}-- response = requests.post(- url,- json=payload,- headers=self._get_headers()- )- response.raise_for_status()- return response.json()-- def logout(self):- """Logout and clear token."""- url = f"{self.base_url}/api/v1/auth/logout"- response = requests.post(url, headers=self._get_headers())- self.token = None- return response.json()--# Usage-client = InvokeAIClient()-user = client.login("[email protected]", "SecurePassword123")-print(f"Logged in as: {user['display_name']}")--boards = client.get_boards()-print(f"User has {len(boards['items'])} boards")--new_board = client.create_board("My New Board")-print(f"Created board: {new_board['board_name']}")--client.logout()-```--**Error Handling:**--```python-import requests-from requests.exceptions import HTTPError--def safe_api_call(client, method, *args, **kwargs):- """Make API call with error handling."""- try:- func = getattr(client, method)- return func(*args, **kwargs)-- except HTTPError as e:- if e.response.status_code == 401:- print("Authentication failed or token expired")- # Re-authenticate- client.login(email, password)- # Retry- return func(*args, **kwargs)- elif e.response.status_code == 403:- print("Permission denied")- elif e.response.status_code == 404:- print("Resource not found")- else:- print(f"API error: {e.response.status_code}")- print(e.response.text)-- raise--# Usage-try:- boards = safe_api_call(client, "get_boards")-except Exception as e:- print(f"Failed to get boards: {e}")-```--### JavaScript/TypeScript--**Using `fetch` API:**--```javascript-class InvokeAIClient {- constructor(baseUrl = 'http://localhost:9090') {- this.baseUrl = baseUrl;- this.token = null;- }-- async login(email, password, rememberMe = false) {- const response = await fetch(`${this.baseUrl}/api/v1/auth/login`, {- method: 'POST',- headers: {- 'Content-Type': 'application/json',- },- body: JSON.stringify({- email,- password,- remember_me: rememberMe,- }),- });-- if (!response.ok) {- throw new Error(`Login failed: ${response.statusText}`);- }-- const data = await response.json();- this.token = data.token;-- // Store token in localStorage- localStorage.setItem('invokeai_token', data.token);-- return data.user;- }-- getHeaders() {- if (!this.token) {- throw new Error('Not authenticated. Call login() first.');- }-- return {- 'Authorization': `Bearer ${this.token}`,- 'Content-Type': 'application/json',- };- }-- async getBoards() {- const response = await fetch(`${this.baseUrl}/api/v1/boards/`, {- headers: this.getHeaders(),- });-- if (!response.ok) {- throw new Error(`Failed to get boards: ${response.statusText}`);- }-- return response.json();- }-- async createBoard(boardName) {- const response = await fetch(`${this.baseUrl}/api/v1/boards/`, {- method: 'POST',- headers: this.getHeaders(),- body: JSON.stringify({ board_name: boardName }),- });-- if (!response.ok) {- throw new Error(`Failed to create board: ${response.statusText}`);- }-- return response.json();- }-- async logout() {- const response = await fetch(`${this.baseUrl}/api/v1/auth/logout`, {- method: 'POST',- headers: this.getHeaders(),- });-- this.token = null;- localStorage.removeItem('invokeai_token');-- return response.json();- }-}--// Usage-(async () => {- const client = new InvokeAIClient();-- try {- const user = await client.login('[email protected]', 'SecurePassword123');- console.log(`Logged in as: ${user.display_name}`);-- const boards = await client.getBoards();- console.log(`User has ${boards.items.length} boards`);-- const newBoard = await client.createBoard('My New Board');- console.log(`Created board: ${newBoard.board_name}`);-- await client.logout();- } catch (error) {- console.error('Error:', error.message);- }-})();-```--**TypeScript with Types:**--```typescript-interface LoginRequest {- email: string;- password: string;- remember_me?: boolean;-}--interface User {- user_id: string;- email: string;- display_name: string;- is_admin: boolean;- is_active: boolean;- created_at: string;-}--interface LoginResponse {- token: string;- user: User;- expires_in: number;-}--interface Board {- board_id: string;- board_name: string;- created_at: string;- updated_at: string;- deleted_at?: string;- cover_image_name?: string;-}--class InvokeAIClient {- private baseUrl: string;- private token: string | null = null;-- constructor(baseUrl: string = 'http://localhost:9090') {- this.baseUrl = baseUrl;- }-- async login(- email: string,- password: string,- rememberMe: boolean = false- ): Promise<User> {- const response = await fetch(`${this.baseUrl}/api/v1/auth/login`, {- method: 'POST',- headers: { 'Content-Type': 'application/json' },- body: JSON.stringify({ email, password, remember_me: rememberMe }),- });-- if (!response.ok) {- const error = await response.json();- throw new Error(error.detail || 'Login failed');- }-- const data: LoginResponse = await response.json();- this.token = data.token;- return data.user;- }-- private getHeaders(): HeadersInit {- if (!this.token) {- throw new Error('Not authenticated');- }- return {- 'Authorization': `Bearer ${this.token}`,- 'Content-Type': 'application/json',- };- }-- async getBoards(): Promise<{ items: Board[] }> {- const response = await fetch(`${this.baseUrl}/api/v1/boards/`, {- headers: this.getHeaders(),- });-- if (!response.ok) {- throw new Error('Failed to get boards');- }-- return response.json();- }-}-```--### cURL--**Login:**--```bash-# Login and extract token-TOKEN=$(curl -X POST http://localhost:9090/api/v1/auth/login \- -H "Content-Type: application/json" \- -d '{- "email": "[email protected]",- "password": "SecurePassword123",- "remember_me": false- }' | jq -r '.token')--echo "Token: $TOKEN"-```--**Get Boards:**--```bash-curl -X GET http://localhost:9090/api/v1/boards/ \- -H "Authorization: Bearer $TOKEN" \- -H "Content-Type: application/json"-```--**Create Board:**--```bash-curl -X POST http://localhost:9090/api/v1/boards/ \- -H "Authorization: Bearer $TOKEN" \- -H "Content-Type: application/json" \- -d '{- "board_name": "My API Board"- }'-```--**Generate Image:**--```bash-curl -X POST http://localhost:9090/api/v1/sessions/ \- -H "Authorization: Bearer $TOKEN" \- -H "Content-Type: application/json" \- -d '{- "prompt": "A beautiful landscape",- "width": 512,- "height": 512,- "steps": 30- }'-```--## API Endpoint Changes--### Authentication Required--All endpoints now require authentication except:--- `POST /api/v1/auth/setup` - Initial admin setup-- `POST /api/v1/auth/login` - User login--### User-Scoped Resources--Resources are now filtered by the authenticated user:--**Boards:**--```python-# Before (single-user)-GET /api/v1/boards/ # Returns all boards--# After (multi-user)-GET /api/v1/boards/ # Returns only current user's boards-```--**Images:**--```python-# Images are filtered by board ownership-GET /api/v1/images/ # Only shows images on user's boards-```--**Workflows:**--```python-# Returns user's workflows + public workflows-GET /api/v1/workflows/-```--**Queue:**--```python-# Regular users see only their queue items-GET /api/v1/queue/ # User's queue items--# Administrators see all queue items-GET /api/v1/queue/ # All users' queue items-```--### Administrator Endpoints--Some endpoints require administrator privileges:--**User Management:**--```python-GET /api/v1/users # List users (admin only)-POST /api/v1/users # Create user (admin only)-GET /api/v1/users/{id} # Get user (admin only)-PATCH /api/v1/users/{id} # Update user (admin only)-DELETE /api/v1/users/{id} # Delete user (admin only)-```--**Model Management (Write Operations):**--```python-POST /api/v1/models/install # Install model (admin only)-DELETE /api/v1/models/i/{key} # Delete model (admin only)-PATCH /api/v1/models/i/{key} # Update model (admin only)-PUT /api/v1/models/convert/{key} # Convert model (admin only)-```--**Model Management (Read Operations):**--```python-GET /api/v1/models/ # List models (all users)-GET /api/v1/models/i/{key} # Get model details (all users)-```--### Error Responses--**401 Unauthorized:**--```json-{- "detail": "Invalid authentication credentials"-}-```--Occurs when:--- Token is missing-- Token is invalid-- Token is expired-- Token signature is invalid--**403 Forbidden:**--```json-{- "detail": "Admin privileges required"-}-```--Occurs when:--- User attempts admin-only operation-- Account is disabled-- Insufficient permissions--**404 Not Found:**--```json-{- "detail": "Resource not found"-}-```--Occurs when:--- Resource doesn't exist-- User doesn't have access to resource--## New API Endpoints--### Authentication Endpoints--#### Setup Administrator--**Endpoint:** `POST /api/v1/auth/setup`--**Description:** Create initial administrator account (only works if no admin exists)--**Request:**--```json-{- "email": "[email protected]",- "display_name": "Administrator",- "password": "SecureAdminPass123"-}-```--**Response:**--```json-{- "success": true,- "user": {- "user_id": "abc123",- "email": "[email protected]",- "display_name": "Administrator",- "is_admin": true,- "is_active": true- }-}-```--#### Get Current User--**Endpoint:** `GET /api/v1/auth/me`--**Description:** Get currently authenticated user's information--**Request:**--```http-GET /api/v1/auth/me-Authorization: Bearer <token>-```--**Response:**--```json-{- "user_id": "abc123",- "email": "[email protected]",- "display_name": "John Doe",- "is_admin": false,- "is_active": true,- "created_at": "2024-01-15T10:00:00Z",- "updated_at": "2024-01-15T10:00:00Z",- "last_login_at": "2024-01-15T15:30:00Z"-}-```--#### Change Password--**Endpoint:** `POST /api/v1/auth/change-password`--**Description:** Change current user's password--**Request:**--```json-{- "current_password": "OldPassword123",- "new_password": "NewPassword456"-}-```--**Response:**--```json-{- "success": true-}-```--### User Management Endpoints (Admin Only)--#### List Users--**Endpoint:** `GET /api/v1/users`--**Request:**--```http-GET /api/v1/users?page=1&per_page=20-Authorization: Bearer <admin_token>-```--**Response:**--```json-{- "items": [- {- "user_id": "abc123",- "email": "[email protected]",- "display_name": "John Doe",- "is_admin": false,- "is_active": true,- "created_at": "2024-01-15T10:00:00Z",- "last_login_at": "2024-01-15T15:30:00Z"- }- ],- "page": 1,- "pages": 1,- "per_page": 20,- "total": 5-}-```--#### Create User--**Endpoint:** `POST /api/v1/users`--**Request:**--```json-{- "email": "[email protected]",- "display_name": "New User",- "password": "TempPassword123",- "is_admin": false-}-```--**Response:**--```json-{- "user_id": "xyz789",- "email": "[email protected]",- "display_name": "New User",- "is_admin": false,- "is_active": true,- "created_at": "2024-01-15T16:00:00Z"-}-```--#### Update User--**Endpoint:** `PATCH /api/v1/users/{user_id}`--**Request:**--```json-{- "display_name": "Updated Name",- "is_active": true,- "is_admin": false-}-```--**Response:**--```json-{- "user_id": "xyz789",- "email": "[email protected]",- "display_name": "Updated Name",- "is_admin": false,- "is_active": true-}-```--#### Delete User--**Endpoint:** `DELETE /api/v1/users/{user_id}`--**Response:**--```json-{- "success": true-}-```--#### Reset User Password--**Endpoint:** `POST /api/v1/users/{user_id}/reset-password`--**Request:**--```json-{- "new_password": "NewTempPass123"-}-```--**Response:**--```json-{- "success": true-}-```--### Board Sharing Endpoints--#### Share Board--**Endpoint:** `POST /api/v1/boards/{board_id}/share`--**Request:**--```json-{- "user_id": "user123",- "permission": "write"-}-```--**Response:**--```json-{- "success": true,- "share": {- "board_id": "board456",- "user_id": "user123",- "permission": "write",- "shared_at": "2024-01-15T16:00:00Z"- }-}-```--#### List Board Shares--**Endpoint:** `GET /api/v1/boards/{board_id}/shares`--**Response:**--```json-{- "items": [- {- "user_id": "user123",- "display_name": "John Doe",- "permission": "write",- "shared_at": "2024-01-15T16:00:00Z"- }- ]-}-```--#### Remove Board Share--**Endpoint:** `DELETE /api/v1/boards/{board_id}/share/{user_id}`--**Response:**--```json-{- "success": true-}-```--## Best Practices--### Token Storage--**Do:**--- Store tokens securely (keychain, secure storage)-- Use HTTPS to transmit tokens-- Clear tokens on logout-- Handle token expiration gracefully--**Don't:**--- Store tokens in URL parameters-- Log tokens in plain text-- Share tokens between users-- Store tokens in version control--### Error Handling--Always handle authentication errors:--```python-def make_request(client, func, *args, **kwargs):- max_retries = 3- retry_count = 0-- while retry_count < max_retries:- try:- return func(*args, **kwargs)- except AuthenticationError:- if retry_count >= max_retries - 1:- raise- # Re-authenticate- client.login(email, password)- retry_count += 1- except Exception as e:- logger.error(f"Request failed: {e}")- raise-```--### Rate Limiting--Be mindful of API rate limits:--- Implement exponential backoff for retries-- Cache frequently accessed data-- Batch requests when possible-- Don't hammer the login endpoint--### Connection Management--```python-import requests-from requests.adapters import HTTPAdapter-from urllib3.util.retry import Retry--def create_session():- """Create session with retry logic."""- session = requests.Session()-- retry = Retry(- total=3,- backoff_factor=0.3,- status_forcelist=[500, 502, 503, 504],- )-- adapter = HTTPAdapter(max_retries=retry)- session.mount('http://', adapter)- session.mount('https://', adapter)-- return session-```--## Migration Guide--### Updating Existing Code--**Before (single-user mode):**--```python-import requests--def get_boards():- response = requests.get("http://localhost:9090/api/v1/boards/")- return response.json()-```--**After (multi-user mode):**--```python-import requests--class APIClient:- def __init__(self):- self.token = None-- def login(self, email, password):- response = requests.post(- "http://localhost:9090/api/v1/auth/login",- json={"email": email, "password": password}- )- self.token = response.json()["token"]-- def get_boards(self):- headers = {"Authorization": f"Bearer {self.token}"}- response = requests.get(- "http://localhost:9090/api/v1/boards/",- headers=headers- )- return response.json()--# Usage-client = APIClient()-client.login("[email protected]", "password")-boards = client.get_boards()-```--### Backward Compatibility--InvokeAI supports both single-user and multi-user modes via the `multiuser` configuration option.--**Configuration:**--```yaml-# invokeai.yaml--# Single-user mode (no authentication)-multiuser: false # or omit the option entirely--# Multi-user mode (authentication required)-multiuser: true-```--**Checking Mode Programmatically:**--```python-def is_multiuser_enabled(base_url):- """Check if multi-user mode is enabled (authentication required)."""- response = requests.get(f"{base_url}/api/v1/boards/")- return response.status_code == 401 # 401 = auth required--# Example usage-base_url = "http://localhost:9090"-if is_multiuser_enabled(base_url):- print("Multi-user mode: authentication required")- # Use authenticated API calls-else:- print("Single-user mode: no authentication needed")- # Use direct API calls-```--**Adaptive Client:**--```python-class AdaptiveInvokeAIClient:- def __init__(self, base_url="http://localhost:9090"):- self.base_url = base_url- self.token = None- self.multiuser_mode = self._check_multiuser_mode()-- def _check_multiuser_mode(self):- """Detect if multi-user mode is enabled."""- try:- response = requests.get(f"{self.base_url}/api/v1/boards/")- return response.status_code == 401- except:- return False-- def login(self, email, password):- """Login (only needed in multi-user mode)."""- if not self.multiuser_mode:- print("Single-user mode: login not required")- return-- response = requests.post(- f"{self.base_url}/api/v1/auth/login",- json={"email": email, "password": password}- )- self.token = response.json()["token"]-- def _get_headers(self):- """Get headers (with auth token if in multi-user mode)."""- if self.multiuser_mode and self.token:- return {"Authorization": f"Bearer {self.token}"}- return {}-- def get_boards(self):- """Get boards (works in both modes)."""- response = requests.get(- f"{self.base_url}/api/v1/boards/",- headers=self._get_headers()- )- return response.json()-```--## OpenAPI/Swagger Documentation--InvokeAI provides OpenAPI documentation for all endpoints.--**Access Swagger UI:**--```-http://localhost:9090/docs-```--**Download OpenAPI Schema:**--```bash-curl http://localhost:9090/openapi.json > invokeai_openapi.json-```--**Generate Client Code:**--Use tools like `openapi-generator` to generate client libraries:--```bash-# Generate Python client-openapi-generator generate \- -i http://localhost:9090/openapi.json \- -g python \- -o ./invokeai-client--# Generate TypeScript client-openapi-generator generate \- -i http://localhost:9090/openapi.json \- -g typescript-fetch \- -o ./invokeai-client-ts-```--## Security Considerations--### HTTPS--Always use HTTPS in production:--```python-# Development-client = InvokeAIClient("http://localhost:9090")--# Production-client = InvokeAIClient("https://invoke.example.com")-```--### Token Security--Protect JWT tokens:--```python-# Never log tokens-logger.info(f"User logged in") # Good-logger.info(f"Token: {token}") # Bad!--# Use environment variables for credentials-import os-email = os.environ.get("INVOKEAI_EMAIL")-password = os.environ.get("INVOKEAI_PASSWORD")-```--### Input Validation--Always validate user input:--```python-import re--def validate_email(email):- pattern = r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$'- return re.match(pattern, email) is not None--def validate_password(password):- """Check password meets requirements."""- if len(password) < 8:- return False, "Password must be at least 8 characters"- if not any(c.isupper() for c in password):- return False, "Password must contain uppercase letters"- if not any(c.islower() for c in password):- return False, "Password must contain lowercase letters"- if not any(c.isdigit() for c in password):- return False, "Password must contain numbers"- return True, ""-```--## Troubleshooting--### Common Issues--**Issue: "Invalid authentication credentials"**--- Token expired - re-authenticate-- Token malformed - check token string-- Token signature invalid - check secret key hasn't changed--**Issue: "Admin privileges required"**--- User is not an administrator-- Use admin account for this operation--**Issue: Token not being sent**--- Check `Authorization` header is present-- Verify `Bearer` prefix is included-- Check token isn't truncated--**Issue: CORS errors**--Configure CORS in InvokeAI:--```yaml-# invokeai.yaml-cors_origins:- - "http://localhost:3000"- - "https://myapp.example.com"-```--## Additional Resources--- [User Guide](user_guide.md) - For end users-- [Administrator Guide](admin_guide.md) - For administrators-- [Multiuser Specification](specification.md) - Technical details-- [OpenAPI Documentation](http://localhost:9090/docs) - Interactive API docs-- [GitHub Repository](https://github.com/invoke-ai/InvokeAI) - Source code-------**Questions?** Visit the [InvokeAI Discord](https://discord.gg/ZmtBAhwWhy) or check the [FAQ](../faq.md).diff --git a/docs-old/multiuser/specification.md b/docs-old/multiuser/specification.mddeleted file mode 100644index e3a8528a2b..0000000000--- a/docs-old/multiuser/specification.md+++ /dev/null@@ -1,870 +0,0 @@-# InvokeAI Multi-User Support - Detailed Specification--## 1. Executive Summary--This document provides a comprehensive specification for adding multi-user support to InvokeAI. The feature will enable a single InvokeAI instance to support multiple isolated users, each with their own generation settings, image boards, and workflows, while maintaining administrative controls for model management and system configuration.--## 2. Overview--### 2.1 Goals-- Enable multiple users to share a single InvokeAI instance-- Provide user isolation for personal content (boards, images, workflows, settings)-- Maintain centralized model management by administrators-- Support shared boards for collaboration-- Provide secure authentication and authorization-- Minimize impact on existing single-user installations--### 2.2 Non-Goals-- Real-time collaboration features (multiple users editing same workflow simultaneously)-- Advanced team management features (in initial release)-- Migration of existing multi-user enterprise edition data-- Support for external identity providers (in initial release, can be added later)--## 3. User Roles and Permissions--### 3.1 Administrator Role-**Capabilities:**--- Full access to all InvokeAI features-- Model management (add, delete, configure models)-- User management (create, edit, delete users)-- View and manage all users' queue sessions-- Access system configuration-- Create and manage shared boards-- Grant/revoke administrative privileges to other users--**Restrictions:**--- Cannot delete their own account if they are the last administrator-- Cannot revoke their own admin privileges if they are the last administrator--### 3.2 Regular User Role-**Capabilities:**--- Create, edit, and delete their own image boards-- Upload and manage their own assets-- Use all image generation tools (linear, canvas, upscale, workflow tabs)-- Create, edit, save, and load workflows-- Access public/shared workflows-- View and manage their own queue sessions-- Adjust personal UI preferences (theme, hotkeys, etc.)-- Access shared boards (read/write based on permissions)-- **View model configurations** (read-only access to model manager)-- **View model details, default settings, and metadata**--**Restrictions:**--- Cannot add, delete, or edit models-- **Can view but cannot modify model manager settings** (read-only access)-- Cannot reidentify, convert, or update model paths-- Cannot upload or change model thumbnail images-- Cannot save changes to model default settings-- Cannot perform bulk delete operations on models-- Cannot view or modify other users' boards, images, or workflows-- Cannot cancel or modify other users' queue sessions-- Cannot access system configuration-- Cannot manage users or permissions--### 3.3 Future Role Considerations-- **Viewer Role**: Read-only access (future enhancement)-- **Team/Group-based Permissions**: Organizational hierarchy (future enhancement)--## 4. Authentication System--### 4.1 Authentication Method-- **Primary Method**: Username and password authentication with secure password hashing-- **Password Hashing**: Use bcrypt or Argon2 for password storage-- **Session Management**: JWT tokens or secure session cookies-- **Token Expiration**: Configurable session timeout (default: 7 days for "remember me", 24 hours otherwise)--### 4.2 Initial Administrator Setup-**First-time Launch Flow:**--1. Application detects no administrator account exists-2. Displays mandatory setup dialog (cannot be skipped)-3. Prompts for:- - Administrator username (email format recommended)- - Administrator display name- - Strong password (minimum requirements enforced)- - Password confirmation-4. Stores hashed credentials in configuration-5. Creates administrator account in database-6. Proceeds to normal login screen--**Reset Capability:**--- Administrators can be reset by manually editing the config file-- Requires access to server filesystem (intentional security measure)-- Database maintains user records; config file contains root admin credentials--### 4.3 Password Requirements-- Minimum 8 characters-- At least one uppercase letter-- At least one lowercase letter-- At least one number-- At least one special character (optional but recommended)-- Not in common password list--### 4.4 Login Flow--1. User navigates to InvokeAI URL-2. If not authenticated, redirect to login page-3. User enters username/email and password-4. Optional "Remember me" checkbox for extended session-5. Backend validates credentials-6. On success: Generate session token, redirect to application-7. On failure: Display error, allow retry with rate limiting (prevent brute force)--### 4.5 Logout Flow-- User clicks logout button-- Frontend clears session token-- Backend invalidates session (if using server-side sessions)-- Redirect to login page--### 4.6 Future Authentication Enhancements-- OAuth2/OpenID Connect support-- Two-factor authentication (2FA)-- SSO integration-- API key authentication for programmatic access--## 5. User Management--### 5.1 User Creation (Administrator)-**Flow:**--1. Administrator navigates to user management interface-2. Clicks "Add User" button-3. Enters user information:- - Email address (required, used as username)- - Display name (optional, defaults to email)- - Role (User or Administrator)- - Initial password or "Send invitation email"-4. System validates email uniqueness-5. System creates user account-6. If invitation mode:- - Generate one-time secure token- - Send email with setup link- - Link expires after 7 days-7. If direct password mode:- - Administrator provides initial password- - User must change on first login--**Invitation Email Flow:**--1. User receives email with unique link-2. Link contains secure token-3. User clicks link, redirected to setup page-4. User enters desired password-5. Token validated and consumed (single-use)-6. Account activated-7. User redirected to login page--### 5.2 User Profile Management-**User Self-Service:**--- Update display name-- Change password (requires current password)-- Update email address (requires verification)-- Manage UI preferences-- View account creation date and last login--**Administrator Actions:**--- Edit user information (name, email)-- Reset user password (generates reset link)-- Toggle administrator privileges-- Assign to groups (future feature)-- Suspend/unsuspend account-- Delete account (with data retention options)--### 5.3 Password Reset Flow-**User-Initiated (Future Enhancement):**--1. User clicks "Forgot Password" on login page-2. Enters email address-3. System sends password reset link (if email exists)-4. User clicks link, enters new password-5. Password updated, user can login--**Administrator-Initiated:**--1. Administrator selects user-2. Clicks "Send Password Reset"-3. System generates reset token and link-4. Email sent to user-5. User follows same flow as user-initiated reset--## 6. Data Model and Database Schema--### 6.1 New Tables--#### 6.1.1 users-```sql-CREATE TABLE users (- user_id TEXT NOT NULL PRIMARY KEY,- email TEXT NOT NULL UNIQUE,- display_name TEXT,- password_hash TEXT NOT NULL,- is_admin BOOLEAN NOT NULL DEFAULT FALSE,- is_active BOOLEAN NOT NULL DEFAULT TRUE,- created_at DATETIME NOT NULL DEFAULT(STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW')),- updated_at DATETIME NOT NULL DEFAULT(STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW')),- last_login_at DATETIME-);-CREATE INDEX idx_users_email ON users(email);-CREATE INDEX idx_users_is_admin ON users(is_admin);-CREATE INDEX idx_users_is_active ON users(is_active);-```--#### 6.1.2 user_sessions-```sql-CREATE TABLE user_sessions (- session_id TEXT NOT NULL PRIMARY KEY,- user_id TEXT NOT NULL,- token_hash TEXT NOT NULL,- expires_at DATETIME NOT NULL,- created_at DATETIME NOT NULL DEFAULT(STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW')),- last_activity_at DATETIME NOT NULL DEFAULT(STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW')),- user_agent TEXT,- ip_address TEXT,- FOREIGN KEY (user_id) REFERENCES users(user_id) ON DELETE CASCADE-);-CREATE INDEX idx_user_sessions_user_id ON user_sessions(user_id);-CREATE INDEX idx_user_sessions_expires_at ON user_sessions(expires_at);-CREATE INDEX idx_user_sessions_token_hash ON user_sessions(token_hash);-```--#### 6.1.3 user_invitations-```sql-CREATE TABLE user_invitations (- invitation_id TEXT NOT NULL PRIMARY KEY,- email TEXT NOT NULL,- token_hash TEXT NOT NULL,- invited_by_user_id TEXT NOT NULL,- expires_at DATETIME NOT NULL,- used_at DATETIME,- created_at DATETIME NOT NULL DEFAULT(STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW')),- FOREIGN KEY (invited_by_user_id) REFERENCES users(user_id) ON DELETE CASCADE-);-CREATE INDEX idx_user_invitations_email ON user_invitations(email);-CREATE INDEX idx_user_invitations_token_hash ON user_invitations(token_hash);-CREATE INDEX idx_user_invitations_expires_at ON user_invitations(expires_at);-```--#### 6.1.4 shared_boards-```sql-CREATE TABLE shared_boards (- board_id TEXT NOT NULL,- user_id TEXT NOT NULL,- permission TEXT NOT NULL CHECK(permission IN ('read', 'write', 'admin')),- created_at DATETIME NOT NULL DEFAULT(STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW')),- PRIMARY KEY (board_id, user_id),- FOREIGN KEY (board_id) REFERENCES boards(board_id) ON DELETE CASCADE,- FOREIGN KEY (user_id) REFERENCES users(user_id) ON DELETE CASCADE-);-CREATE INDEX idx_shared_boards_user_id ON shared_boards(user_id);-CREATE INDEX idx_shared_boards_board_id ON shared_boards(board_id);-```--### 6.2 Modified Tables--#### 6.2.1 boards-```sql--- Add columns:-ALTER TABLE boards ADD COLUMN user_id TEXT NOT NULL DEFAULT 'system';-ALTER TABLE boards ADD COLUMN is_shared BOOLEAN NOT NULL DEFAULT FALSE;-ALTER TABLE boards ADD COLUMN created_by_user_id TEXT;---- Add foreign key (requires recreation in SQLite):-FOREIGN KEY (user_id) REFERENCES users(user_id) ON DELETE CASCADE-FOREIGN KEY (created_by_user_id) REFERENCES users(user_id) ON DELETE SET NULL---- Add indices:-CREATE INDEX idx_boards_user_id ON boards(user_id);-CREATE INDEX idx_boards_is_shared ON boards(is_shared);-```--#### 6.2.2 images-```sql--- Add column:-ALTER TABLE images ADD COLUMN user_id TEXT NOT NULL DEFAULT 'system';---- Add foreign key:-FOREIGN KEY (user_id) REFERENCES users(user_id) ON DELETE CASCADE---- Add index:-CREATE INDEX idx_images_user_id ON images(user_id);-```--#### 6.2.3 workflows-```sql--- Add columns:-ALTER TABLE workflows ADD COLUMN user_id TEXT NOT NULL DEFAULT 'system';-ALTER TABLE workflows ADD COLUMN is_public BOOLEAN NOT NULL DEFAULT FALSE;---- Add foreign key:-FOREIGN KEY (user_id) REFERENCES users(user_id) ON DELETE CASCADE---- Add indices:-CREATE INDEX idx_workflows_user_id ON workflows(user_id);-CREATE INDEX idx_workflows_is_public ON workflows(is_public);-```--#### 6.2.4 session_queue-```sql--- Add column:-ALTER TABLE session_queue ADD COLUMN user_id TEXT NOT NULL DEFAULT 'system';---- Add foreign key:-FOREIGN KEY (user_id) REFERENCES users(user_id) ON DELETE CASCADE---- Add index:-CREATE INDEX idx_session_queue_user_id ON session_queue(user_id);-```--#### 6.2.5 style_presets-```sql--- Add columns:-ALTER TABLE style_presets ADD COLUMN user_id TEXT NOT NULL DEFAULT 'system';-ALTER TABLE style_presets ADD COLUMN is_public BOOLEAN NOT NULL DEFAULT FALSE;---- Add foreign key:-FOREIGN KEY (user_id) REFERENCES users(user_id) ON DELETE CASCADE---- Add indices:-CREATE INDEX idx_style_presets_user_id ON style_presets(user_id);-CREATE INDEX idx_style_presets_is_public ON style_presets(is_public);-```--### 6.3 Migration Strategy--1. Create new user tables (users, user_sessions, user_invitations, shared_boards)-2. Create default 'system' user for backward compatibility-3. Update existing data to reference 'system' user-4. Add foreign key constraints-5. Version as database migration (e.g., migration_25.py)--### 6.4 Migration for Existing Installations-- Single-user installations: Prompt to create admin account on first launch after update-- Existing data migration: Administrator can specify an arbitrary user account to hold legacy data (can be the admin account or a separate user)-- System provides UI during migration to choose destination user for existing data--## 7. API Endpoints--### 7.1 Authentication Endpoints--#### POST /api/v1/auth/setup-- Initialize first administrator account-- Only works if no admin exists-- Body: `{ email, display_name, password }`-- Response: `{ success, user }`--#### POST /api/v1/auth/login-- Authenticate user-- Body: `{ email, password, remember_me? }`-- Response: `{ token, user, expires_at }`--#### POST /api/v1/auth/logout-- Invalidate current session-- Headers: `Authorization: Bearer <token>`-- Response: `{ success }`--#### GET /api/v1/auth/me-- Get current user information-- Headers: `Authorization: Bearer <token>`-- Response: `{ user }`--#### POST /api/v1/auth/change-password-- Change current user's password-- Body: `{ current_password, new_password }`-- Headers: `Authorization: Bearer <token>`-- Response: `{ success }`--### 7.2 User Management Endpoints (Admin Only)--#### GET /api/v1/users-- List all users (paginated)-- Query params: `offset`, `limit`, `search`, `role_filter`-- Response: `{ users[], total, offset, limit }`--#### POST /api/v1/users-- Create new user-- Body: `{ email, display_name, is_admin, send_invitation?, initial_password? }`-- Response: `{ user, invitation_link? }`--#### GET /api/v1/users/{user_id}-- Get user details-- Response: `{ user }`--#### PATCH /api/v1/users/{user_id}-- Update user-- Body: `{ display_name?, is_admin?, is_active? }`-- Response: `{ user }`--#### DELETE /api/v1/users/{user_id}-- Delete user-- Query params: `delete_data` (true/false)-- Response: `{ success }`--#### POST /api/v1/users/{user_id}/reset-password-- Send password reset email-- Response: `{ success, reset_link }`--### 7.3 Shared Boards Endpoints--#### POST /api/v1/boards/{board_id}/share-- Share board with users-- Body: `{ user_ids[], permission: 'read' | 'write' | 'admin' }`-- Response: `{ success, shared_with[] }`--#### GET /api/v1/boards/{board_id}/shares-- Get board sharing information-- Response: `{ shares[] }`--#### DELETE /api/v1/boards/{board_id}/share/{user_id}-- Remove board sharing-- Response: `{ success }`--### 7.4 Modified Endpoints--All existing endpoints will be modified to:--1. Require authentication (except setup/login)-2. Filter data by current user (unless admin viewing all)-3. Enforce permissions (e.g., model management requires admin)-4. Include user context in operations--Example modifications:-- `GET /api/v1/boards` → Returns only user's boards + shared boards-- `POST /api/v1/session/queue` → Associates queue item with current user-- `GET /api/v1/queue` → Returns all items for admin, only user's items for regular users--## 8. Frontend Changes--### 8.1 New Components--#### LoginPage-- Email/password form-- "Remember me" checkbox-- Login button-- Forgot password link (future)-- Branding and welcome message--#### AdministratorSetup-- Modal dialog (cannot be dismissed)-- Administrator account creation form-- Password strength indicator-- Terms/welcome message--#### UserManagementPage (Admin only)-- User list table-- Add user button-- User actions (edit, delete, reset password)-- Search and filter-- Role toggle--#### UserProfilePage-- Display user information-- Change password form-- UI preferences-- Account details--#### BoardSharingDialog-- User picker/search-- Permission selector-- Share button-- Current shares list--### 8.2 Modified Components--#### App Root-- Add authentication check-- Redirect to login if not authenticated-- Handle session expiration-- Add global error boundary for auth errors--#### Navigation/Header-- Add user menu with logout-- Display current user name-- Admin indicator badge--#### ModelManagerTab-- Hide/disable for non-admin users-- Show "Admin only" message--#### QueuePanel-- Filter by current user (for non-admin)-- Show all with user indicators (for admin)-- Disable actions on other users' items (for non-admin)--#### BoardsPanel-- Show personal boards section-- Show shared boards section-- Add sharing controls to board actions--### 8.3 State Management--New Redux slices/zustand stores:-- `authSlice`: Current user, authentication status, token-- `usersSlice`: User list for admin interface-- `sharingSlice`: Board sharing state--Updated slices:-- `boardsSlice`: Include shared boards, ownership info-- `queueSlice`: Include user filtering-- `workflowsSlice`: Include public/private status--## 9. Configuration--### 9.1 New Config Options--Add to `InvokeAIAppConfig`:--```python-# Authentication-auth_enabled: bool = True # Enable/disable multi-user auth-session_expiry_hours: int = 24 # Default session expiration-session_expiry_hours_remember: int = 168 # "Remember me" expiration (7 days)-password_min_length: int = 8 # Minimum password length-require_strong_passwords: bool = True # Enforce password complexity--# Session tracking-enable_server_side_sessions: bool = False # Optional server-side session tracking--# Audit logging-audit_log_auth_events: bool = True # Log authentication events-audit_log_admin_actions: bool = True # Log administrative actions--# Email (optional - for invitations and password reset)-email_enabled: bool = False-smtp_host: str = ""-smtp_port: int = 587-smtp_username: str = ""-smtp_password: str = ""-smtp_from_address: str = ""-smtp_from_name: str = "InvokeAI"--# Initial admin (stored as hash)-admin_email: Optional[str] = None-admin_password_hash: Optional[str] = None-```--### 9.2 Backward Compatibility--- If `auth_enabled = False`, system runs in legacy single-user mode-- All data belongs to implicit "system" user-- No authentication required-- Smooth upgrade path for existing installations--## 10. Security Considerations--### 10.1 Password Security-- Never store passwords in plain text-- Use bcrypt or Argon2id for password hashing-- Implement proper salt generation-- Enforce password complexity requirements-- Implement rate limiting on login attempts-- Consider password breach checking (Have I Been Pwned API)--### 10.2 Session Security-- Use cryptographically secure random tokens-- Implement token rotation-- Set appropriate cookie flags (HttpOnly, Secure, SameSite)-- Implement session timeout and renewal-- Invalidate sessions on logout-- Clean up expired sessions periodically--### 10.3 Authorization-- Always verify user identity from session token (never trust client)-- Check permissions on every API call-- Implement principle of least privilege-- Validate user ownership of resources before operations-- Implement proper error messages (avoid information leakage)--### 10.4 Data Isolation-- Strict separation of user data in database queries-- Prevent SQL injection via parameterized queries-- Validate all user inputs-- Implement proper access control checks-- Audit trail for sensitive operations--### 10.5 API Security-- Implement rate limiting on sensitive endpoints-- Use HTTPS in production (enforce via config)-- Implement CSRF protection-- Validate and sanitize all inputs-- Implement proper CORS configuration-- Add security headers (CSP, X-Frame-Options, etc.)--### 10.6 Deployment Security-- Document secure deployment practices-- Recommend reverse proxy configuration (nginx, Apache)-- Provide example configurations for HTTPS-- Document firewall requirements-- Recommend network isolation strategies--## 11. Email Integration (Optional)--**Note**: Email/SMTP configuration is optional. Many administrators will not have ready access to an outgoing SMTP server. When email is not configured, the system provides fallback mechanisms by displaying setup links directly in the admin UI.--### 11.1 Email Templates--#### User Invitation-```-Subject: You've been invited to InvokeAI--Hello,--You've been invited to join InvokeAI by [Administrator Name].--Click the link below to set up your account:-[Setup Link]--This link expires in 7 days.------InvokeAI-```--#### Password Reset-```-Subject: Reset your InvokeAI password--Hello [User Name],--A password reset was requested for your account.--Click the link below to reset your password:-[Reset Link]--This link expires in 24 hours.--If you didn't request this, please ignore this email.------InvokeAI-```--### 11.2 Email Service-- Support SMTP configuration-- Use secure connection (TLS)-- Handle email failures gracefully-- Implement email queue for reliability-- Log email activities (without sensitive data)-- Provide fallback for no-email deployments (show links in admin UI)--## 12. Testing Requirements--### 12.1 Unit Tests-- Authentication service (password hashing, validation)-- Authorization checks-- Token generation and validation-- User management operations-- Shared board permissions-- Data isolation queries--### 12.2 Integration Tests-- Complete authentication flows-- User creation and invitation-- Password reset flow-- Multi-user data isolation-- Shared board access-- Session management-- Admin operations--### 12.3 Security Tests-- SQL injection prevention-- XSS prevention-- CSRF protection-- Session hijacking prevention-- Brute force protection-- Authorization bypass attempts--### 12.4 Performance Tests-- Authentication overhead-- Query performance with user filters-- Concurrent user sessions-- Database scalability with many users--## 13. Documentation Requirements--### 13.1 User Documentation-- Getting started with multi-user InvokeAI-- Login and account management-- Using shared boards-- Understanding permissions-- Troubleshooting authentication issues--### 13.2 Administrator Documentation-- Setting up multi-user InvokeAI-- User management guide-- Creating and managing shared boards-- Email configuration-- Security best practices-- Backup and restore with user data--### 13.3 Developer Documentation-- Authentication architecture-- API authentication requirements-- Adding new multi-user features-- Database schema changes-- Testing multi-user features--### 13.4 Migration Documentation-- Upgrading from single-user to multi-user-- Data migration strategies-- Rollback procedures-- Common issues and solutions--## 14. Future Enhancements--### 14.1 Phase 2 Features-- **OAuth2/OpenID Connect integration** (deferred from initial release to keep scope manageable)-- Two-factor authentication-- API keys for programmatic access-- Enhanced team/group management-- Advanced permission system (roles and capabilities)--### 14.2 Phase 3 Features-- SSO integration (SAML, LDAP)-- User quotas and limits-- Resource usage tracking-- Advanced collaboration features-- Workflow template library with permissions-- Model access controls per user/group--## 15. Success Metrics--### 15.1 Functionality Metrics-- Successful user authentication rate-- Zero unauthorized data access incidents-- All tests passing (unit, integration, security)-- API response time within acceptable limits--### 15.2 Usability Metrics-- User setup completion time < 2 minutes-- Login time < 2 seconds-- Clear error messages for all auth failures-- Positive user feedback on multi-user features--### 15.3 Security Metrics-- No critical security vulnerabilities identified-- CodeQL scan passes-- Penetration testing completed-- Security best practices followed--## 16. Risks and Mitigations--### 16.1 Technical Risks-| Risk | Impact | Probability | Mitigation |-|------|--------|-------------|------------|-| Performance degradation with user filtering | Medium | Low | Index optimization, query caching |-| Database migration failures | High | Low | Thorough testing, rollback procedures |-| Session management complexity | Medium | Medium | Use proven libraries (PyJWT), extensive testing |-| Auth bypass vulnerabilities | High | Low | Security review, penetration testing |--### 16.2 UX Risks-| Risk | Impact | Probability | Mitigation |-|------|--------|-------------|------------|-| Confusion in migration for existing users | Medium | High | Clear documentation, migration wizard |-| Friction from additional login step | Low | High | Remember me option, long session timeout |-| Complexity of admin interface | Medium | Medium | Intuitive UI design, user testing |--### 16.3 Operational Risks-| Risk | Impact | Probability | Mitigation |-|------|--------|-------------|------------|-| Email delivery failures | Low | Medium | Show links in UI, document manual methods |-| Lost admin password | High | Low | Document recovery procedure, config reset |-| User data conflicts in migration | Medium | Low | Data validation, backup requirements |--## 17. Implementation Phases--### Phase 1: Foundation (Weeks 1-2)-- Database schema design and migration-- Basic authentication service-- Password hashing and validation-- Session management--### Phase 2: Backend API (Weeks 3-4)-- Authentication endpoints-- User management endpoints-- Authorization middleware-- Update existing endpoints with auth--### Phase 3: Frontend Auth (Weeks 5-6)-- Login page and flow-- Administrator setup-- Session management-- Auth state management--### Phase 4: Multi-tenancy (Weeks 7-9)-- User isolation in all services-- Shared boards implementation-- Queue permission filtering-- Workflow public/private--### Phase 5: Admin Interface (Weeks 10-11)-- User management UI-- Board sharing UI-- Admin-specific features-- User profile page--### Phase 6: Testing & Polish (Weeks 12-13)-- Comprehensive testing-- Security audit-- Performance optimization-- Documentation-- Bug fixes--### Phase 7: Beta & Release (Week 14+)-- Beta testing with selected users-- Feedback incorporation-- Final testing-- Release preparation-- Documentation finalization--## 18. Acceptance Criteria--- [ ] Administrator can set up initial account on first launch-- [ ] Users can log in with email and password-- [ ] Users can change their password-- [ ] Administrators can create, edit, and delete users-- [ ] User data is properly isolated (boards, images, workflows)-- [ ] Shared boards work correctly with permissions-- [ ] Non-admin users cannot access model management-- [ ] Queue filtering works correctly for users and admins-- [ ] Session management works correctly (expiry, renewal, logout)-- [ ] All security tests pass-- [ ] API documentation is updated-- [ ] User and admin documentation is complete-- [ ] Migration from single-user works smoothly-- [ ] Performance is acceptable with multiple concurrent users-- [ ] Backward compatibility mode works (auth disabled)--## 19. Design Decisions--The following design decisions have been approved for implementation:--1. **OAuth2 Priority**: OAuth2/OpenID Connect integration will be a **future enhancement**. The initial release will focus on username/password authentication to keep scope manageable.--2. **Email Requirement**: Email/SMTP configuration is **optional**. Many administrators will not have ready access to an outgoing SMTP server. The system will provide fallback mechanisms (showing setup links directly in the admin UI) when email is not configured.--3. **Data Migration**: During migration from single-user to multi-user mode, the administrator will be given the **option to specify an arbitrary user account** to hold legacy data. The admin account can be used for this purpose if the administrator wishes.--4. **API Compatibility**: Authentication will be **required on all APIs**, but authentication will not be required if multi-user support is disabled (backward compatibility mode with `auth_enabled: false`).--5. **Session Storage**: The system will use **JWT tokens with optional server-side session tracking**. This provides scalability while allowing administrators to enable server-side tracking if needed.--6. **Audit Logging**: The system will **log authentication events and admin actions**. This provides accountability and security monitoring for critical operations.--## 20. Conclusion--This specification provides a comprehensive blueprint for implementing multi-user support in InvokeAI. The design prioritizes:--- **Security**: Proper authentication, authorization, and data isolation-- **Usability**: Intuitive UI, smooth migration, minimal friction-- **Scalability**: Efficient database design, performant queries-- **Maintainability**: Clean architecture, comprehensive testing-- **Flexibility**: Future enhancement paths, optional features--The phased implementation approach allows for iterative development and testing, while the detailed specifications ensure all stakeholders have clear expectations of the final system.diff --git a/docs-old/multiuser/user_guide.md b/docs-old/multiuser/user_guide.mddeleted file mode 100644index 87587c599f..0000000000--- a/docs-old/multiuser/user_guide.md+++ /dev/null@@ -1,406 +0,0 @@-# InvokeAI Multi-User Guide--## Overview--Multi-User mode is a recent feature (introduced in version 6.12), which allows multiple individuals to share a single InvokeAI server while keeping their work separate and organized. Each user has their own username and login password, images, assets, image boards, customization settings and workflows.--Two types of users are recognized:--* A user with **Administrator** status can add, remove and modify other users, and can install models. They also have the ability to view the full session queue and pause or kill other users' jobs.-* **Non-administrator** users can modify their own profile but not others. They also do not have the ability to install or configure models, but must ask an Administrator to do this task.--Multiple users can be granted Administrator status.--***--## Getting Started--To activate Multi-User mode, open the `INVOKEAI_ROOT/invokeai.yaml` configuration file in a text editor. Add this line anywhere in the file:-```yaml-multiuser: true-```--You may also wish to make InvokeAI available to other machines on your local LAN. Add an additional line to `invokeai.yaml`:--```yaml-host: 0.0.0.0-```--Restart the server. It will now be in multi-user mode. If you enabled-the `host` option, other users on your home or office LAN will be able-to reach it by browsing to the IP address of the machine the backend-is running on (`http://host-ip-address:9090`).--!!! tip "Do not expose InvokeAI to the internet"- It is not recommended to expose the InvokeAI host to the internet- due to security concerns.--### Initial Setup (First Time in Multi-User Mode)--If you're the first person to access a fresh InvokeAI installation in multi-user mode, you'll see the **Administrator Setup** dialog:----Now--1. Enter your email address (this will be your login name)-2. Create a display name (this will be the name other users see)-3. Choose a strong password that meets the requirements:- - At least 8 characters long- - Contains uppercase letters- - Contains lowercase letters- - Contains numbers-4. Confirm your password-5. Click **Create Administrator Account**--You'll now be taken to a login screen and can enter the credentials-you just created.--### Adding and Modifying Users--If you are logged in as Administrator, you can add additional users. Click on the small "person silhouette" icon at the bottom left of the main Invoke screen and select "User Management:"----This will take you to the User Management screen...----...where you can click "Create User" to add a new user.----The User Management screen also allows you to:--1. Temporarily change a user's status to Inactive, preventing them from logging in to Invoke.-2. Edit a user (by clicking on the pencil icon) to change the user's display name or password.-3. Permanently delete a user.-4. Grant a user Administrator privileges.--### Command-line User Management Scripts--Administrators can also use a series of command-line scripts to add, modify, or delete users. If you use the launcher, click the ">" icon to enter the command-line interface. Otherwise, if you are a native command-line user, activate the InvokeAI environment from your terminal.--The commands are named:--* **invoke-useradd** -- add a user-* **invoke-usermod** -- modify a user-* **invoke-userdel** -- delete a user-* **invoke-userlist** -- list all users--Pass the `--help` argument to get the usage of each script. For example:--```bash-> invoke-useradd --help-usage: invoke-useradd [-h] [--root ROOT] [--email EMAIL] [--password PASSWORD] [--name NAME] [--admin]--Add a user to the InvokeAI database--options:- -h, --help show this help message and exit- --root ROOT, -r ROOT Path to the InvokeAI root directory. If omitted, the root is resolved in this order: the $INVOKEAI_ROOT environment- variable, the active virtual environment's parent directory, or $HOME/invokeai.- --email EMAIL, -e EMAIL- User email address- --password PASSWORD, -p PASSWORD- User password- --name NAME, -n NAME User display name (optional)- --admin, -a Make user an administrator--If no arguments are provided, the script will run in interactive mode.-```--***--## Logging in as a Non-Administrative User--If you are a registered user on the system, enter your email address and password to log in. The Administrator will be able to provide you with the values to use:----As an unprivileged user you can do pretty much anything that's allowed under single-user mode -- generating images, using LoRAs, creating and running workflows, creating image boards -- but you are restricted against installing new models, changing low-level server settings, or interfering with other users. More information on user roles is given below.--### Changing your Profile--To change your display name or profile, click on the person silhouette icon at the bottom left of the screen and choose "My Profile". This will take you to a screen that lets you change these values. At this time you can change your display name but not your login ID (ordinarily your contact email address).--***--## Understanding User Roles--In single-user mode, you have access to all features without restrictions. In multi-user mode, InvokeAI has two user roles:--### Regular User--As a regular user, you can:--- ✅ Create and manage your own image boards-- ✅ Generate images using all AI tools (Linear, Canvas, Upscale, Workflows)-- ✅ Create, save, and load your own workflows-- ✅ View your own generation queue-- ✅ Customize your UI preferences (theme, hotkeys, etc.)-- ✅ View available models (read-only access to Model Manager)-- ✅ View shared and public boards created by other users-- ✅ View and use workflows marked as shared by other users--You cannot:--- ❌ Add, delete, or modify models-- ❌ View or modify other users' private boards, images, or workflows-- ❌ Manage user accounts-- ❌ Access system configuration-- ❌ View or cancel other users' generation tasks--!!! tip "The generation queue"- When two or more users are accessing InvokeAI at the same time,- their image generation jobs will be placed on the session queue on- a first-come, first-serve basis. This means that you will have to- wait for other users' image rendering jobs to complete before- yours will start.-- When another user's job is running, you will see the image- generation progress bar and a queue badge that reads `X/Y`, where- "X" is the number of jobs you have queued and "Y" is the total- number of jobs queued, including your own and others.-- You can also pull up the Queue tab in order to see where your job- is in relationship to other queued tasks.--### Administrator--Administrators have all regular user capabilities, plus:--- ✅ Full model management (add, delete, configure models)-- ✅ Create and manage user accounts-- ✅ View and manage all users' generation queues-- ✅ View and manage all users' boards, images, and workflows (including system-owned legacy content)-- ✅ Access system configuration-- ✅ Grant or revoke admin privileges--***--## Working with Your Content in Multi-User Mode--### Image Boards--In multi-user mode, each user can create an unlimited number of boards and organize their images and assets as they see fit. Boards have three visibility levels:--- **Private** (default): Only you (and administrators) can see and modify the board.-- **Shared**: All users can view the board and its contents, but only you (and administrators) can modify it (rename, archive, delete, or add/remove images).-- **Public**: All users can view the board. Only you (and administrators) can modify the board's structure (rename, archive, delete).--To change a board's visibility, right-click on the board and select the desired visibility option.--Administrators can see and manage all users' image boards and their contents regardless of visibility settings.--### Going From Multi-User to Single-User Mode--If an InvokeAI instance was in multiuser mode and then restarted in single user mode (by setting `multiuser: false` in the configuration file), all users' boards will be consolidated in one place. Any images that were in "Uncategorized" will be merged together into a single Uncategorized board. If, at a later date, the server is restarted in multi-user mode, the boards and images will be separated and restored to their owners.--### Workflows--Each user has their own private workflow library. Workflows you create are visible only to you by default.--You can share a workflow with other users by marking it as **shared** (public). Shared workflows appear in all users' workflow libraries and can be opened by anyone, but only the owner (or an administrator) can modify or delete them.--To share a workflow, open it and use the sharing controls to toggle its public/shared status.--!!! warning "Preexisting workflows after enabling multi-user mode"- When you enable multi-user mode for the first time on an existing InvokeAI installation, all workflows that were created before multi-user mode was activated will appear in the **shared workflows** section. These preexisting workflows are owned by the internal "system" account and are visible to all users. Administrators can edit or delete these shared legacy workflows. Regular users can view and use them but cannot modify them.---### The Generation Queue--The queue shows your pending and running generation tasks.--**Queue Features:**--- View your current and completed generations-- Cancel pending tasks-- Re-run previous generations-- Monitor progress in real-time--**Queue Isolation:**--- You will see your own queue items, as well as the items generated by- either users, but the generation parameters (e.g. prompts) for other- users' are hidden for privacy reasons.-- Administrators can view all queues for troubleshooting-- Your generations won't interfere with other users' tasks--***--## Customizing Your Experience--### Personal Preferences--Your UI preferences are saved to your account and are restored when you log in:--- **Theme**: Choose between light and dark modes-- **Hotkeys**: Customize keyboard shortcuts-- **Canvas Settings**: Default zoom, grid visibility, etc.-- **Generation Defaults**: Default values for width, height, steps, etc.--These settings are stored per-user and won't affect other users.--***--## Troubleshooting--### Cannot Log In--**Issue:** Login fails with "Incorrect email or password"--**Solutions:**--- Verify you're entering the correct email address-- Check that Caps Lock is off-- Try typing the password slowly to avoid mistakes-- Contact your administrator if you've forgotten your password--**Issue:** Login fails with "Account is disabled"--**Solution:** Contact your administrator to reactivate your account--### Session Expired--**Issue:** You're suddenly logged out and see "Session expired"--**Explanation:** Sessions expire after 24 hours (or 7 days with "remember me")--**Solution:** Simply log in again with your credentials--### Cannot Access Features--**Issue:** Features like Model Manager show "Admin privileges required"--**Explanation:** Some features are restricted to administrators--**Solution:**--- For model viewing: You can view but not modify models-- For user management: Contact an administrator-- For system configuration: Contact an administrator--### Missing Boards or Images--**Issue:** Boards or images you created are not visible--**Possible Causes:**--1. **Filter Applied:** Check if a filter is hiding content-2. **Wrong User:** Ensure you're logged in with the correct account-3. **Archived Board:** Check the "Show Archived" option--**Solution:**--- Clear any active filters-- Verify you're logged in as the right user-- Check archived items--### Slow Performance--**Issue:** Generation or UI feels slower than expected--**Possible Causes:**--- Other users generating images simultaneously-- Server resource limits-- Network latency--**Solutions:**--- Check the queue to see if others are generating-- Wait for current generations to complete-- Contact administrator if persistent--### Generation Stuck in Queue--**Issue:** Your generation is queued but not starting--**Possible Causes:**--- Server is processing other users' generations-- Server resources are fully utilized-- Technical issue with the server--**Solutions:**--- Wait for your turn in the queue-- Check if your generation is paused-- Contact administrator if stuck for extended period---***--## Frequently Asked Questions--### Can other users see my images?--Not unless you change your board's visibility to "shared" or "public". All personal boards and images are private by default.--### Can I share my workflows with others?--Yes. You can mark any workflow as shared (public), which makes it visible to all users. Other users can view and use shared workflows, but only you or an administrator can modify or delete them.--### How long do sessions last?--- 24 hours by default-- 7 days if you check "Remember me" during login--### Can I use the API with multi-user mode?--Yes, but you'll need to authenticate with a JWT token. See the [API Guide](api_guide.md) for details.--### What happens if I forget my password?--Contact your administrator. They can reset your password for you.--### Can I have multiple sessions?--Yes, you can log in from multiple devices or browsers simultaneously. All sessions will use the same account and see the same content.--### Why can't I see the Model Manager "Add Models" tab?--Regular users can see the Models tab but with read-only access. Check that you're logged in and try refreshing the page.--### How do I know if I'm an administrator?--Administrators see an "Admin" badge next to their name in the top-right corner and have access to additional features like User Management.--### Can I request admin privileges?--Yes, ask your current administrator to grant you admin-privileges. Admin privileges will give you the ability to see all-other user's boards and images, as well as to add models and change-various server-wide settings.--## Getting Help--### Support Channels--- **Administrator:** Contact your system administrator for account issues-- **Documentation:** Check the [FAQ](../faq.md) for common issues-- **Community:** Join the [Discord](https://discord.gg/ZmtBAhwWhy) for help-- **Bug Reports:** File issues on [GitHub](https://github.com/invoke-ai/InvokeAI/issues)--### Reporting Issues--When reporting an issue, include:--- Your role (regular user or administrator)-- What you were trying to do-- What happened instead-- Any error messages you saw-- Your browser and operating system--## Additional Resources--- [Administrator Guide](admin_guide.md) - For administrators managing users and the system-- [API Guide](api_guide.md) - For developers using the InvokeAI API-- [Multiuser Specification](specification.md) - Technical details about the feature-- [InvokeAI Documentation](../index.md) - Main documentation hub-------**Need more help?** Contact your administrator or visit the [InvokeAI Discord](https://discord.gg/ZmtBAhwWhy).diff --git a/docs-old/nodes/NODES.md b/docs-old/nodes/NODES.mddeleted file mode 100644index 93a9b69c9d..0000000000--- a/docs-old/nodes/NODES.md+++ /dev/null@@ -1,100 +0,0 @@-# Using the Workflow Editor--The workflow editor is a blank canvas allowing for the use of individual functions and image transformations to control the image generation workflow. Nodes take in inputs on the left side of the node, and return an output on the right side of the node. A node graph is composed of multiple nodes that are connected together to create a workflow. Nodes' inputs and outputs are connected by dragging connectors from node to node. Inputs and outputs are color coded for ease of use.--If you're not familiar with Diffusion, take a look at our [Diffusion Overview.](../help/diffusion.md) Understanding how diffusion works will enable you to more easily use the Workflow Editor and build workflows to suit your needs.--## Features--### Workflow Library-The Workflow Library enables you to save workflows to the Invoke database, allowing you to easily creating, modify and share workflows as needed.--A curated set of workflows are provided by default - these are designed to help explain important nodes' usage in the Workflow Editor.----### Linear View-The Workflow Editor allows you to create a UI for your workflow, to make it easier to iterate on your generations.--To add an input to the Linear UI, right click on the **input label** and select "Add to Linear View".--The Linear UI View will also be part of the saved workflow, allowing you share workflows and enable other to use them, regardless of complexity.----### Renaming Fields and Nodes-Any node or input field can be renamed in the workflow editor. If the input field you have renamed has been added to the Linear View, the changed name will be reflected in the Linear View and the node.--### Managing Nodes--* Ctrl+C to copy a node-* Ctrl+V to paste a node-* Backspace/Delete to delete a node-* Shift+Click to drag and select multiple nodes--### Node Caching--Nodes have a "Use Cache" option in their footer. This allows for performance improvements by using the previously cached values during the workflow processing.---## Important Nodes & Concepts--There are several node grouping concepts that can be examined with a narrow focus. These (and other) groupings can be pieced together to make up functional graph setups, and are important to understanding how groups of nodes work together as part of a whole. Note that the screenshots below aren't examples of complete functioning node graphs (see Examples).--### Create Latent Noise--An initial noise tensor is necessary for the latent diffusion process. As a result, the Denoising node requires a noise node input.--The standard Create Latent Noise node includes a Noise Type selector for architecture-specific latent shapes. Leave it-at SD for classic 4-channel Stable Diffusion workflows, or switch it to match the downstream denoiser when using-architectures like FLUX, FLUX.2, SD3, CogView4, Z-Image, or Anima.----### Text Prompt Conditioning--Conditioning is necessary for the latent diffusion process, whether empty or not. As a result, the Denoising node requires positive and negative conditioning inputs. Conditioning is reliant on a CLIP text encoder provided by the Model Loader node.----### Image to Latents & VAE--The ImageToLatents node takes in a pixel image and a VAE and outputs a latents. The LatentsToImage node does the opposite, taking in a latents and a VAE and outpus a pixel image.----### Defined & Random Seeds--It is common to want to use both the same seed (for continuity) and random seeds (for variety). To define a seed, simply enter it into the 'Seed' field on a noise node. Conversely, the RandomInt node generates a random integer between 'Low' and 'High', and can be used as input to the 'Seed' edge point on a noise node to randomize your seed.----### ControlNet--The ControlNet node outputs a Control, which can be provided as input to a Denoise Latents node. Depending on the type of ControlNet desired, ControlNet nodes usually require an image processor node, such as a Canny Processor or Depth Processor, which prepares an input image for use with ControlNet.----### LoRA--The Lora Loader node lets you load a LoRA and pass it as output.A LoRA provides fine-tunes to the UNet and text encoder weights that augment the base model’s image and text vocabularies.----### Scaling--Use the ImageScale, ScaleLatents, and Upscale nodes to upscale images and/or latent images. Upscaling is the process of enlarging an image and adding more detail. The chosen method differs across contexts. However, be aware that latents are already noisy and compressed at their original resolution; scaling an image could produce more detailed results.----### Iteration + Multiple Images as Input--Iteration is a common concept in any processing, and means to repeat a process with given input. In nodes, you're able to use the Iterate node to iterate through collections usually gathered by the Collect node. The Iterate node has many potential uses, from processing a collection of images one after another, to varying seeds across multiple image generations and more. This screenshot demonstrates how to collect several images and use them in an image generation workflow.----### Batch / Multiple Image Generation + Random Seeds--Batch or multiple image generation in the workflow editor is done using the RandomRange node. In this case, the 'Size' field represents the number of images to generate, meaning this example will generate 4 images. As RandomRange produces a collection of integers, we need to add the Iterate node to iterate through the collection. This noise can then be fed to the Denoise Latents node for it to iterate through the denoising process with the different seeds provided.--diff --git a/docs-old/nodes/NODES_MIGRATION_V3_V4.md b/docs-old/nodes/NODES_MIGRATION_V3_V4.mddeleted file mode 100644index aa7b234f81..0000000000--- a/docs-old/nodes/NODES_MIGRATION_V3_V4.md+++ /dev/null@@ -1,148 +0,0 @@-# Invoke v4.0.0 Nodes API Migration guide--Invoke v4.0.0 is versioned as such due to breaking changes to the API utilized-by nodes, both core and custom.--## Motivation--Prior to v4.0.0, the `invokeai` python package has not be set up to be utilized-as a library. That is to say, it didn't have any explicitly public API, and node-authors had to work with the unstable internal application API.--v4.0.0 introduces a stable public API for nodes.--## Changes--There are two node-author-facing changes:--1. Import Paths-1. Invocation Context API--### Import Paths--All public objects are now exported from `invokeai.invocation_api`:--```py-# Old-from invokeai.app.invocations.baseinvocation import (- BaseInvocation,- InputField,- InvocationContext,- invocation,-)-from invokeai.app.invocations.primitives import ImageField--# New-from invokeai.invocation_api import (- BaseInvocation,- ImageField,- InputField,- InvocationContext,- invocation,-)-```--It's possible that we've missed some classes you need in your node. Please let-us know if that's the case.--### Invocation Context API--Most nodes utilize the Invocation Context, an object that is passed to the-`invoke` that provides access to data and services a node may need.--Until now, that object and the services it exposed were internal. Exposing them-to nodes means that changes to our internal implementation could break nodes.-The methods on the services are also often fairly complicated and allowed nodes-to footgun.--In v4.0.0, this object has been refactored to be much simpler.--See the [invocation API docs](./invocation-api.md) for full details of the API.--!!! warning ""-- This API may shift slightly until the release of v4.0.0 as we work through a few final updates to the Model Manager.--#### Improved Service Methods--The biggest offender was the image save method:--```py-# Old-image_dto = context.services.images.create(- image=image,- image_origin=ResourceOrigin.INTERNAL,- image_category=ImageCategory.GENERAL,- node_id=self.id,- session_id=context.graph_execution_state_id,- is_intermediate=self.is_intermediate,- metadata=self.metadata,- workflow=context.workflow,-)--# New-image_dto = context.images.save(image=image)-```--Other methods are simplified, or enhanced with additional functionality:--```py-# Old-image = context.services.images.get_pil_image(image_name)--# New-image = context.images.get_pil(image_name)-image_cmyk = context.images.get_pil(image_name, "CMYK")-```--We also had some typing issues around tensors:--```py-# Old-# `latents` typed as `torch.Tensor`, but could be `ConditioningFieldData`-latents = context.services.latents.get(self.latents.latents_name)-# `data` typed as `torch.Tenssor,` but could be `ConditioningFieldData`-context.services.latents.save(latents_name, data)--# New - separate methods for tensors and conditioning data w/ correct typing-# Also, the service generates the names-tensor_name = context.tensors.save(tensor)-tensor = context.tensors.load(tensor_name)-# For conditioning-cond_name = context.conditioning.save(cond_data)-cond_data = context.conditioning.load(cond_name)-```--#### Output Construction--Core Outputs have builder functions right on them - no need to manually-construct these objects, or use an extra utility:--```py-# Old-image_output = ImageOutput(- image=ImageField(image_name=image_dto.image_name),- width=image_dto.width,- height=image_dto.height,-)-latents_output = build_latents_output(latents_name=name, latents=latents, seed=None)-noise_output = NoiseOutput(- noise=LatentsField(latents_name=latents_name, seed=seed),- width=latents.size()[3] * 8,- height=latents.size()[2] * 8,-)-cond_output = ConditioningOutput(- conditioning=ConditioningField(- conditioning_name=conditioning_name,- ),-)--# New-image_output = ImageOutput.build(image_dto)-latents_output = LatentsOutput.build(latents_name=name, latents=noise, seed=self.seed)-noise_output = NoiseOutput.build(latents_name=name, latents=noise, seed=self.seed)-cond_output = ConditioningOutput.build(conditioning_name)-```--You can still create the objects using constructors if you want, but we suggest-using the builder methods.diff --git a/docs-old/nodes/comfyToInvoke.md b/docs-old/nodes/comfyToInvoke.mddeleted file mode 100644index 2d894dc74c..0000000000--- a/docs-old/nodes/comfyToInvoke.md+++ /dev/null@@ -1,80 +0,0 @@-# ComfyUI to InvokeAI--If you're coming to InvokeAI from ComfyUI, welcome! You'll find things are similar but different - the good news is that you already know how things should work, and it's just a matter of wiring them up!--Some things to note:--- InvokeAI's nodes tend to be more granular than default nodes in Comfy. This means each node in Invoke will do a specific task and you might need to use multiple nodes to achieve the same result. The added granularity improves the control you have have over your workflows.-- InvokeAI's backend and ComfyUI's backend are very different which means Comfy workflows are not able to be imported into InvokeAI. However, we have created a [list of popular workflows](exampleWorkflows.md) for you to get started with Nodes in InvokeAI!--## Node Equivalents:--| Comfy UI Category | ComfyUI Node | Invoke Equivalent |-|:---------------------------------- |:---------------------------------- | :----------------------------------|-| Sampling |KSampler |Denoise Latents|-| Sampling |Ksampler Advanced|Denoise Latents |-| Loaders |Load Checkpoint | Main Model Loader _or_ SDXL Main Model Loader|-| Loaders |Load VAE | VAE Loader |-| Loaders |Load Lora | LoRA Loader _or_ SDXL Lora Loader|-| Loaders |Load ControlNet Model | ControlNet|-| Loaders |Load ControlNet Model (diff) | ControlNet|-| Loaders |Load Style Model | Reference Only ControlNet will be coming in a future version of InvokeAI|-| Loaders |unCLIPCheckpointLoader | N/A |-| Loaders |GLIGENLoader | N/A |-| Loaders |Hypernetwork Loader | N/A |-| Loaders |Load Upscale Model | Occurs within "Upscale (RealESRGAN)"|-|Conditioning |CLIP Text Encode (Prompt) | Compel (Prompt) or SDXL Compel (Prompt) |-|Conditioning |CLIP Set Last Layer | CLIP Skip|-|Conditioning |Conditioning (Average) | Use the .blend() feature of prompts |-|Conditioning |Conditioning (Combine) | N/A |-|Conditioning |Conditioning (Concat) | See the Prompt Tools Community Node|-|Conditioning |Conditioning (Set Area) | N/A |-|Conditioning |Conditioning (Set Mask) | Mask Edge |-|Conditioning |CLIP Vision Encode | N/A |-|Conditioning |unCLIPConditioning | N/A |-|Conditioning |Apply ControlNet | ControlNet |-|Conditioning |Apply ControlNet (Advanced) | ControlNet |-|Latent |VAE Decode | Latents to Image|-|Latent |VAE Encode | Image to Latents |-|Latent |Empty Latent Image | Noise |-|Latent |Upscale Latent |Resize Latents |-|Latent |Upscale Latent By |Scale Latents |-|Latent |Latent Composite | Blend Latents |-|Latent |LatentCompositeMasked | N/A |-|Image |Save Image | Image |-|Image |Preview Image |Current |-|Image |Load Image | Image|-|Image |Empty Image| Blank Image |-|Image |Invert Image | Invert Lerp Image |-|Image |Batch Images | Link "Image" nodes into an "Image Collection" node |-|Image |Pad Image for Outpainting | Outpainting is easily accomplished in the Unified Canvas |-|Image |ImageCompositeMasked | Paste Image |-|Image | Upscale Image | Resize Image |-|Image | Upscale Image By | Upscale Image |-|Image | Upscale Image (using Model) | Upscale Image |-|Image | ImageBlur | Blur Image |-|Image | ImageQuantize | N/A |-|Image | ImageSharpen | N/A |-|Image | Canny | Canny Processor |-|Mask |Load Image (as Mask) | Image |-|Mask |Convert Mask to Image | Image|-|Mask |Convert Image to Mask | Image |-|Mask |SolidMask | N/A |-|Mask |InvertMask |Invert Lerp Image |-|Mask |CropMask | Crop Image |-|Mask |MaskComposite | Combine Mask |-|Mask |FeatherMask | Blur Image |-|Advanced | Load CLIP | Main Model Loader _or_ SDXL Main Model Loader|-|Advanced | UNETLoader | Main Model Loader _or_ SDXL Main Model Loader|-|Advanced | DualCLIPLoader | Main Model Loader _or_ SDXL Main Model Loader|-|Advanced | Load Checkpoint | Main Model Loader _or_ SDXL Main Model Loader |-|Advanced | ConditioningZeroOut | N/A |-|Advanced | ConditioningSetTimestepRange | N/A |-|Advanced | CLIPTextEncodeSDXLRefiner | Compel (Prompt) or SDXL Compel (Prompt) |-|Advanced | CLIPTextEncodeSDXL |Compel (Prompt) or SDXL Compel (Prompt) |-|Advanced | ModelMergeSimple | Model Merging is available in the Model Manager |-|Advanced | ModelMergeBlocks | Model Merging is available in the Model Manager|-|Advanced | CheckpointSave | Model saving is available in the Model Manager|-|Advanced | CLIPMergeSimple | N/A |--diff --git a/docs-old/nodes/communityNodes.md b/docs-old/nodes/communityNodes.mddeleted file mode 100644index 288c1264db..0000000000--- a/docs-old/nodes/communityNodes.md+++ /dev/null@@ -1,723 +0,0 @@-# Community Nodes--These are nodes that have been developed by the community, for the community. If you're not sure what a node is, you can learn more about nodes [here](overview.md).--If you'd like to submit a node for the community, please refer to the [node creation overview](contributingNodes.md).--To use a node, add the node to the `nodes` folder found in your InvokeAI install location.--The suggested method is to use `git clone` to clone the repository the node is found in. This allows for easy updates of the node in the future.--If you'd prefer, you can also just download the whole node folder from the linked repository and add it to the `nodes` folder.--To use a community workflow, download the `.json` node graph file and load it into Invoke AI via the **Load Workflow** button in the Workflow Editor.--- Community Nodes- + [Anamorphic Tools](#anamorphic-tools)- + [Adapters-Linked](#adapters-linked-nodes)- + [Autostereogram](#autostereogram-nodes)- + [Average Images](#average-images)- + [BiRefNet Background Removal](#birefnet-background-removal)- + [Clean Image Artifacts After Cut](#clean-image-artifacts-after-cut)- + [Close Color Mask](#close-color-mask)- + [Clothing Mask](#clothing-mask)- + [Contrast Limited Adaptive Histogram Equalization](#contrast-limited-adaptive-histogram-equalization)- + [Curves](#curves)- + [Depth Map from Wavefront OBJ](#depth-map-from-wavefront-obj)- + [Enhance Detail](#enhance-detail)- + [Film Grain](#film-grain)- + [Flip Pose](#flip-pose)- + [Flux Ideal Size](#flux-ideal-size)- + [Generative Grammar-Based Prompt Nodes](#generative-grammar-based-prompt-nodes)- + [GPT2RandomPromptMaker](#gpt2randompromptmaker)- + [Grid to Gif](#grid-to-gif)- + [Halftone](#halftone)- + [Hand Refiner with MeshGraphormer](#hand-refiner-with-meshgraphormer)- + [Image and Mask Composition Pack](#image-and-mask-composition-pack)- + [Image Dominant Color](#image-dominant-color)- + [Image Export](#image-export)- + [Image to Character Art Image Nodes](#image-to-character-art-image-nodes)- + [Image Picker](#image-picker)- + [Image Resize Plus](#image-resize-plus)- + [Latent Upscale](#latent-upscale)- + [Load Video Frame](#load-video-frame)- + [Make 3D](#make-3d)- + [Mask Operations](#mask-operations)- + [Match Histogram](#match-histogram)- + [Metadata-Linked](#metadata-linked-nodes)- + [Negative Image](#negative-image)- + [Nightmare Promptgen](#nightmare-promptgen)- + [Ollama](#ollama-node)- + [One Button Prompt](#one-button-prompt)- + [Oobabooga](#oobabooga)- + [Prompt Tools](#prompt-tools)- + [Remote Image](#remote-image)- + [BriaAI Background Remove](#briaai-remove-background)- + [Remove Background](#remove-background)- + [Retroize](#retroize)- + [Stereogram](#stereogram-nodes)- + [Size Stepper Nodes](#size-stepper-nodes)- + [Simple Skin Detection](#simple-skin-detection)- + [Text font to Image](#text-font-to-image)- + [Thresholding](#thresholding)- + [Unsharp Mask](#unsharp-mask)- + [XY Image to Grid and Images to Grids nodes](#xy-image-to-grid-and-images-to-grids-nodes)-- [Example Node Template](#example-node-template)-- [Disclaimer](#disclaimer)-- [Help](#help)------------------------------------### Anamorphic Tools--**Description:** A set of nodes to perform anamorphic modifications to images, like lens blur, streaks, spherical distortion, and vignetting.--**Node Link:** https://github.com/JPPhoto/anamorphic-tools-----------------------------------### Adapters Linked Nodes--**Description:** A set of nodes for linked adapters (ControlNet, IP-Adaptor & T2I-Adapter). This allows multiple adapters to be chained together without using a `collect` node which means it can be used inside an `iterate` node without any collecting on every iteration issues.--- `ControlNet-Linked` - Collects ControlNet info to pass to other nodes.-- `IP-Adapter-Linked` - Collects IP-Adapter info to pass to other nodes.-- `T2I-Adapter-Linked` - Collects T2I-Adapter info to pass to other nodes.--Note: These are inherited from the core nodes so any update to the core nodes should be reflected in these.--**Node Link:** https://github.com/skunkworxdark/adapters-linked-nodes-----------------------------------### Autostereogram Nodes--**Description:** Generate autostereogram images from a depth map. This is not a very practically useful node but more a 90s nostalgic indulgence as I used to love these images as a kid.--**Node Link:** https://github.com/skunkworxdark/autostereogram_nodes--**Example Usage:**-</br>-<img src="https://raw.githubusercontent.com/skunkworxdark/autostereogram_nodes/refs/heads/main/images/spider.png" width="200" /> -> <img src="https://raw.githubusercontent.com/skunkworxdark/autostereogram_nodes/refs/heads/main/images/spider-depth.png" width="200" /> -> <img src="https://raw.githubusercontent.com/skunkworxdark/autostereogram_nodes/refs/heads/main/images/spider-dots.png" width="200" /> <img src="https://raw.githubusercontent.com/skunkworxdark/autostereogram_nodes/refs/heads/main/images/spider-pattern.png" width="200" />-----------------------------------### Average Images--**Description:** This node takes in a collection of images of the same size and averages them as output. It converts everything to RGB mode first.--**Node Link:** https://github.com/JPPhoto/average-images-node-----------------------------------### BiRefNet Background Removal--**Description:** Remove image backgrounds using BiRefNet (Bilateral Reference Network), a high-quality segmentation model. Supports multiple model variants including standard, high-resolution, matting, portrait, and specialized models for different use cases.--**Node Link:** https://github.com/veeliks/invoke_birefnet--**Output Examples**--<section>- <img src="https://raw.githubusercontent.com/veeliks/invoke_birefnet/main/.readme/example_before_removal.png" width="49%" alt="Before background removal">- <img src="https://raw.githubusercontent.com/veeliks/invoke_birefnet/main/.readme/example_after_removal.png" width="49%" alt="After background removal">-</section>-----------------------------------### Clean Image Artifacts After Cut--Description: Removes residual artifacts after an image is separated from its background.--Node Link: https://github.com/VeyDlin/clean-artifact-after-cut-node--View:-</br><img src="https://raw.githubusercontent.com/VeyDlin/clean-artifact-after-cut-node/master/.readme/node.png" width="500" />-----------------------------------### Close Color Mask--Description: Generates a mask for images based on a closely matching color, useful for color-based selections.--Node Link: https://github.com/VeyDlin/close-color-mask-node--View:-</br><img src="https://raw.githubusercontent.com/VeyDlin/close-color-mask-node/master/.readme/node.png" width="500" />-----------------------------------### Clothing Mask--Description: Employs a U2NET neural network trained for the segmentation of clothing items in images.--Node Link: https://github.com/VeyDlin/clothing-mask-node--View:-</br><img src="https://raw.githubusercontent.com/VeyDlin/clothing-mask-node/master/.readme/node.png" width="500" />-----------------------------------### Contrast Limited Adaptive Histogram Equalization--Description: Enhances local image contrast using adaptive histogram equalization with contrast limiting.--Node Link: https://github.com/VeyDlin/clahe-node--View:-</br><img src="https://raw.githubusercontent.com/VeyDlin/clahe-node/master/.readme/node.png" width="500" />-----------------------------------### Curves--**Description:** Adjust an image's curve based on a user-defined string.--**Node Link:** https://github.com/JPPhoto/curves-node-----------------------------------### Depth Map from Wavefront OBJ--**Description:** Render depth maps from Wavefront .obj files (triangulated) using this simple 3D renderer utilizing numpy and matplotlib to compute and color the scene. There are simple parameters to change the FOV, camera position, and model orientation.--To be imported, an .obj must use triangulated meshes, so make sure to enable that option if exporting from a 3D modeling program. This renderer makes each triangle a solid color based on its average depth, so it will cause anomalies if your .obj has large triangles. In Blender, the Remesh modifier can be helpful to subdivide a mesh into small pieces that work well given these limitations.--**Node Link:** https://github.com/dwringer/depth-from-obj-node--**Example Usage:**-</br><img src="https://raw.githubusercontent.com/dwringer/depth-from-obj-node/main/depth_from_obj_usage.jpg" width="500" />-----------------------------------### Enhance Detail--**Description:** A single node that can enhance the detail in an image. Increase or decrease details in an image using a guided filter (as opposed to the typical Gaussian blur used by most sharpening filters.) Based on the `Enhance Detail` ComfyUI node from https://github.com/spacepxl/ComfyUI-Image-Filters--**Node Link:** https://github.com/skunkworxdark/enhance-detail-node--**Example Usage:**-</br>-<img src="https://raw.githubusercontent.com/skunkworxdark/enhance-detail-node/refs/heads/main/images/Comparison.png" />-----------------------------------### Film Grain--**Description:** This node adds a film grain effect to the input image based on the weights, seeds, and blur radii parameters. It works with RGB input images only.--**Node Link:** https://github.com/JPPhoto/film-grain-node-----------------------------------### Flip Pose--**Description:** This node will flip an openpose image horizontally, recoloring it to make sure that it isn't facing the wrong direction. Note that it does not work with openpose hands.--**Node Link:** https://github.com/JPPhoto/flip-pose-node-----------------------------------### Flux Ideal Size--**Description:** This node returns an ideal size to use for the first stage of a Flux image generation pipeline. Generating at the right size helps limit duplication and odd subject placement.--**Node Link:** https://github.com/JPPhoto/flux-ideal-size-----------------------------------### Generative Grammar-Based Prompt Nodes--**Description:** This set of 3 nodes generates prompts from simple user-defined grammar rules (loaded from custom files - examples provided below). The prompts are made by recursively expanding a special template string, replacing nonterminal "parts-of-speech" until no nonterminal terms remain in the string.--This includes 3 Nodes:-- *Lookup Table from File* - loads a YAML file "prompt" section (or of a whole folder of YAML's) into a JSON-ified dictionary (Lookups output)-- *Lookups Entry from Prompt* - places a single entry in a new Lookups output under the specified heading-- *Prompt from Lookup Table* - uses a Collection of Lookups as grammar rules from which to randomly generate prompts.--**Node Link:** https://github.com/dwringer/generative-grammar-prompt-nodes--**Example Usage:**-</br><img src="https://raw.githubusercontent.com/dwringer/generative-grammar-prompt-nodes/main/lookuptables_usage.jpg" width="500" />-----------------------------------### GPT2RandomPromptMaker--**Description:** A node for InvokeAI utilizes the GPT-2 language model to generate random prompts based on a provided seed and context.--**Node Link:** https://github.com/mickr777/GPT2RandomPromptMaker--**Output Examples**--Generated Prompt: An enchanted weapon will be usable by any character regardless of their alignment.--<img src="https://github.com/mickr777/InvokeAI/assets/115216705/8496ba09-bcdd-4ff7-8076-ff213b6a1e4c" width="200" />-----------------------------------### Grid to Gif--**Description:** One node that turns a grid image into an image collection, one node that turns an image collection into a gif.--**Node Link:** https://github.com/mildmisery/invokeai-GridToGifNode/blob/main/GridToGif.py--**Example Node Graph:** https://github.com/mildmisery/invokeai-GridToGifNode/blob/main/Grid%20to%20Gif%20Example%20Workflow.json--**Output Examples**--<img src="https://raw.githubusercontent.com/mildmisery/invokeai-GridToGifNode/main/input.png" width="300" />-<img src="https://raw.githubusercontent.com/mildmisery/invokeai-GridToGifNode/main/output.gif" width="300" />-----------------------------------### Halftone--**Description**: Halftone converts the source image to grayscale and then performs halftoning. CMYK Halftone converts the image to CMYK and applies a per-channel halftoning to make the source image look like a magazine or newspaper. For both nodes, you can specify angles and halftone dot spacing.--**Node Link:** https://github.com/JPPhoto/halftone-node--**Example**--Input:--<img src="https://github.com/invoke-ai/InvokeAI/assets/34005131/fd5efb9f-4355-4409-a1c2-c1ca99e0cab4" width="300" />--Halftone Output:--<img src="https://github.com/invoke-ai/InvokeAI/assets/34005131/7e606f29-e68f-4d46-b3d5-97f799a4ec2f" width="300" />--CMYK Halftone Output:--<img src="https://github.com/invoke-ai/InvokeAI/assets/34005131/c59c578f-db8e-4d66-8c66-2851752d75ea" width="300" />------------------------------------### Hand Refiner with MeshGraphormer--**Description**: Hand Refiner takes in your image and automatically generates a fixed depth map for the hands along with a mask of the hands region that will conveniently allow you to use them along with ControlNet to fix the wonky hands generated by Stable Diffusion--**Node Link:** https://github.com/blessedcoolant/invoke_meshgraphormer--**View**-<img src="https://raw.githubusercontent.com/blessedcoolant/invoke_meshgraphormer/main/assets/preview.jpg" />------------------------------------### Image and Mask Composition Pack--**Description:** This is a pack of nodes for composing masks and images, including a simple text mask creator and both image and latent offset nodes. The offsets wrap around, so these can be used in conjunction with the Seamless node to progressively generate centered on different parts of the seamless tiling.--This includes 15 Nodes:--- *Adjust Image Hue Plus* - Rotate the hue of an image in one of several different color spaces.-- *Blend Latents/Noise (Masked)* - Use a mask to blend part of one latents tensor [including Noise outputs] into another. Can be used to "renoise" sections during a multi-stage [masked] denoising process.-- *Enhance Image* - Boost or reduce color saturation, contrast, brightness, sharpness, or invert colors of any image at any stage with this simple wrapper for pillow [PIL]'s ImageEnhance module.-- *Equivalent Achromatic Lightness* - Calculates image lightness accounting for Helmholtz-Kohlrausch effect based on a method described by High, Green, and Nussbaum (2023).-- *Text to Mask (Clipseg)* - Input a prompt and an image to generate a mask representing areas of the image matched by the prompt.-- *Text to Mask Advanced (Clipseg)* - Output up to four prompt masks combined with logical "and", logical "or", or as separate channels of an RGBA image.-- *Image Layer Blend* - Perform a layered blend of two images using alpha compositing. Opacity of top layer is selectable, with optional mask and several different blend modes/color spaces.-- *Image Compositor* - Take a subject from an image with a flat backdrop and layer it on another image using a chroma key or flood select background removal.-- *Image Dilate or Erode* - Dilate or expand a mask (or any image!). This is equivalent to an expand/contract operation.-- *Image Value Thresholds* - Clip an image to pure black/white beyond specified thresholds.-- *Offset Latents* - Offset a latents tensor in the vertical and/or horizontal dimensions, wrapping it around.-- *Offset Image* - Offset an image in the vertical and/or horizontal dimensions, wrapping it around.-- *Rotate/Flip Image* - Rotate an image in degrees clockwise/counterclockwise about its center, optionally resizing the image boundaries to fit, or flipping it about the vertical and/or horizontal axes.-- *Shadows/Highlights/Midtones* - Extract three masks (with adjustable hard or soft thresholds) representing shadows, midtones, and highlights regions of an image.-- *Text Mask (simple 2D)* - create and position a white on black (or black on white) line of text using any font locally available to Invoke.--**Node Link:** https://github.com/dwringer/composition-nodes--</br><img src="https://raw.githubusercontent.com/dwringer/composition-nodes/main/composition_pack_overview.jpg" width="500" />-----------------------------------### Image Dominant Color--Description: Identifies and extracts the dominant color from an image using k-means clustering.--Node Link: https://github.com/VeyDlin/image-dominant-color-node--View:-</br><img src="https://raw.githubusercontent.com/VeyDlin/image-dominant-color-node/master/.readme/node.png" width="500" />-----------------------------------### Image Export--**Description:** Export images in multiple formats (AVIF, JPEG, PNG, TIFF, WebP) with format-specific compression and quality options.--**Node Link:** https://github.com/veeliks/invoke_image_export--**Nodes:**--<section>- <img src="https://raw.githubusercontent.com/veeliks/invoke_image_export/main/.readme/node_avif.png" width="19%" alt="Save Image as AVIF">- <img src="https://raw.githubusercontent.com/veeliks/invoke_image_export/main/.readme/node_jpeg.png" width="19%" alt="Save Image as JPEG">- <img src="https://raw.githubusercontent.com/veeliks/invoke_image_export/main/.readme/node_png.png" width="19%" alt="Save Image as PNG">- <img src="https://raw.githubusercontent.com/veeliks/invoke_image_export/main/.readme/node_tiff.png" width="19%" alt="Save Image as TIFF">- <img src="https://raw.githubusercontent.com/veeliks/invoke_image_export/main/.readme/node_webp.png" width="19%" alt="Save Image as WebP">-</section>-----------------------------------### Image to Character Art Image Nodes--**Description:** Group of nodes to convert an input image into ascii/unicode art Image--**Node Link:** https://github.com/mickr777/imagetoasciiimage--**Output Examples**--<img src="https://user-images.githubusercontent.com/115216705/271817646-8e061fcc-9a2c-4fa9-bcc7-c0f7b01e9056.png" width="300" /><img src="https://github.com/mickr777/imagetoasciiimage/assets/115216705/3c4990eb-2f42-46b9-90f9-0088b939dc6a" width="300" /></br>-<img src="https://github.com/mickr777/imagetoasciiimage/assets/115216705/fee7f800-a4a8-41e2-a66b-c66e4343307e" width="300" />-<img src="https://github.com/mickr777/imagetoasciiimage/assets/115216705/1d9c1003-a45f-45c2-aac7-46470bb89330" width="300" />------------------------------------### Image Picker--**Description:** This InvokeAI node takes in a collection of images and randomly chooses one. This can be useful when you have a number of poses to choose from for a ControlNet node, or a number of input images for another purpose.--**Node Link:** https://github.com/JPPhoto/image-picker-node-----------------------------------### Image Resize Plus--Description: Provides various image resizing options such as fill, stretch, fit, center, and crop.--Node Link: https://github.com/VeyDlin/image-resize-plus-node--View:-</br><img src="https://raw.githubusercontent.com/VeyDlin/image-resize-plus-node/master/.readme/node.png" width="500" />------------------------------------### Latent Upscale--**Description:** This node uses a small (~2.4mb) model to upscale the latents used in a Stable Diffusion 1.5 or Stable Diffusion XL image generation, rather than the typical interpolation method, avoiding the traditional downsides of the latent upscale technique.--**Node Link:** [https://github.com/gogurtenjoyer/latent-upscale](https://github.com/gogurtenjoyer/latent-upscale)-----------------------------------### Load Video Frame--**Description:** This is a video frame image provider + indexer/video creation nodes for hooking up to iterators and ranges and ControlNets and such for invokeAI node experimentation. Think animation + ControlNet outputs.--**Node Link:** https://github.com/helix4u/load_video_frame--**Output Example:**-<img src="https://raw.githubusercontent.com/helix4u/load_video_frame/refs/heads/main/_git_assets/dance1736978273.gif" width="500" />-----------------------------------### Make 3D--**Description:** Create compelling 3D stereo images from 2D originals.--**Node Link:** [https://gitlab.com/srcrr/shift3d/-/raw/main/make3d.py](https://gitlab.com/srcrr/shift3d)--**Example Node Graph:** https://gitlab.com/srcrr/shift3d/-/raw/main/example-workflow.json?ref_type=heads&inline=false--**Output Examples**--<img src="https://gitlab.com/srcrr/shift3d/-/raw/main/example-1.png" width="300" />-<img src="https://gitlab.com/srcrr/shift3d/-/raw/main/example-2.png" width="300" />-----------------------------------### Mask Operations--Description: Offers logical operations (OR, SUB, AND) for combining and manipulating image masks.--Node Link: https://github.com/VeyDlin/mask-operations-node--View:-</br><img src="https://raw.githubusercontent.com/VeyDlin/mask-operations-node/master/.readme/node.png" width="500" />-----------------------------------### Match Histogram--**Description:** An InvokeAI node to match a histogram from one image to another. This is a bit like the `color correct` node in the main InvokeAI but this works in the YCbCr colourspace and can handle images of different sizes. Also does not require a mask input.-- Option to only transfer luminance channel.-- Option to save output as grayscale--A good use case for this node is to normalize the colors of an image that has been through the tiled scaling workflow of my XYGrid Nodes.--See full docs here: https://github.com/skunkworxdark/Prompt-tools-nodes/edit/main/README.md--**Node Link:** https://github.com/skunkworxdark/match_histogram--**Output Examples**--<img src="https://github.com/skunkworxdark/match_histogram/assets/21961335/ed12f329-a0ef-444a-9bae-129ed60d6097" />-----------------------------------### Metadata Linked Nodes--**Description:** A set of nodes for Metadata. Collect Metadata from within an `iterate` node & extract metadata from an image.--- `Metadata Item Linked` - Allows collecting of metadata while within an iterate node with no need for a collect node or conversion to metadata node-- `Metadata From Image` - Provides Metadata from an image-- `Metadata To String` - Extracts a String value of a label from metadata-- `Metadata To Integer` - Extracts an Integer value of a label from metadata-- `Metadata To Float` - Extracts a Float value of a label from metadata-- `Metadata To Scheduler` - Extracts a Scheduler value of a label from metadata-- `Metadata To Bool` - Extracts Bool types from metadata-- `Metadata To Model` - Extracts model types from metadata-- `Metadata To SDXL Model` - Extracts SDXL model types from metadata-- `Metadata To LoRAs` - Extracts Loras from metadata.-- `Metadata To SDXL LoRAs` - Extracts SDXL Loras from metadata-- `Metadata To ControlNets` - Extracts ControNets from metadata-- `Metadata To IP-Adapters` - Extracts IP-Adapters from metadata-- `Metadata To T2I-Adapters` - Extracts T2I-Adapters from metadata-- `Denoise Latents + Metadata` - This is an inherited version of the existing `Denoise Latents` node but with a metadata input and output.--**Node Link:** https://github.com/skunkworxdark/metadata-linked-nodes-----------------------------------### Negative Image--Description: Creates a negative version of an image, effective for visual effects and mask inversion.--Node Link: https://github.com/VeyDlin/negative-image-node--View:-</br><img src="https://raw.githubusercontent.com/VeyDlin/negative-image-node/master/.readme/node.png" width="500" />-----------------------------------### Nightmare Promptgen--**Description:** Nightmare Prompt Generator - Uses a local text generation model to create unique imaginative (but usually nightmarish) prompts for InvokeAI. By default, it allows you to choose from some gpt-neo models I finetuned on over 2500 of my own InvokeAI prompts in Compel format, but you're able to add your own, as well. Offers support for replacing any troublesome words with a random choice from list you can also define.--**Node Link:** [https://github.com/gogurtenjoyer/nightmare-promptgen](https://github.com/gogurtenjoyer/nightmare-promptgen)-----------------------------------### Ollama Node--**Description:** Uses Ollama API to expand text prompts for text-to-image generation using local LLMs. Works great for expanding basic prompts into detailed natural language prompts for Flux. Also provides a toggle to unload the LLM model immediately after expanding, to free up VRAM for Invoke to continue the image generation workflow.--**Node Link:** https://github.com/Jonseed/Ollama-Node--**Example Node Graph:** https://github.com/Jonseed/Ollama-Node/blob/main/Ollama-Node-Flux-example.json--**View:**-------------------------------------### One Button Prompt--<img src="https://raw.githubusercontent.com/AIrjen/OneButtonPrompt_X_InvokeAI/refs/heads/main/images/background.png" width="800" />--**Description:** an extensive suite of auto prompt generation and prompt helper nodes based on extensive logic. Get creative with the best prompt generator in the world.--The main node generates interesting prompts based on a set of parameters. There are also some additional nodes such as Auto Negative Prompt, One Button Artify, Create Prompt Variant and other cool prompt toys to play around with.--**Node Link:** [https://github.com/AIrjen/OneButtonPrompt_X_InvokeAI](https://github.com/AIrjen/OneButtonPrompt_X_InvokeAI)--**Nodes:**--<img src="https://raw.githubusercontent.com/AIrjen/OneButtonPrompt_X_InvokeAI/refs/heads/main/images/OBP_nodes_invokeai.png" width="800" />-----------------------------------### Oobabooga--**Description:** asks a local LLM running in Oobabooga's Text-Generation-Webui to write a prompt based on the user input.--**Link:** https://github.com/sammyf/oobabooga-node--**Example:**--"describe a new mystical creature in its natural environment"--*can return*--"The mystical creature I am describing to you is called the "Glimmerwing". It is a majestic, iridescent being that inhabits the depths of the most enchanted forests and glimmering lakes. Its body is covered in shimmering scales that reflect every color of the rainbow, and it has delicate, translucent wings that sparkle like diamonds in the sunlight. The Glimmerwing's home is a crystal-clear lake, surrounded by towering trees with leaves that shimmer like jewels. In this serene environment, the Glimmerwing spends its days swimming gracefully through the water, chasing schools of glittering fish and playing with the gentle ripples of the lake's surface.-As the sun sets, the Glimmerwing perches on a branch of one of the trees, spreading its wings to catch the last rays of light. The creature's scales glow softly, casting a rainbow of colors across the forest floor. The Glimmerwing sings a haunting melody, its voice echoing through the stillness of the night air. Its song is said to have the power to heal the sick and bring peace to troubled souls. Those who are lucky enough to hear the Glimmerwing's song are forever changed by its beauty and grace."--<img src="https://github.com/sammyf/oobabooga-node/assets/42468608/cecdd820-93dd-4c35-abbf-607e001fb2ed" width="300" />--**Requirement**--a Text-Generation-Webui instance (might work remotely too, but I never tried it) and obviously InvokeAI 3.x--**Note**--This node works best with SDXL models, especially as the style can be described independently of the LLM's output.-----------------------------------### Prompt Tools--**Description:** A set of InvokeAI nodes that add general prompt (string) manipulation tools. Designed to accompany the `Prompts From File` node and other prompt generation nodes.--1. `Prompt To File` - saves a prompt or collection of prompts to a file. one per line. There is an append/overwrite option.-2. `PTFields Collect` - Converts image generation fields into a Json format string that can be passed to Prompt to file.-3. `PTFields Expand` - Takes Json string and converts it to individual generation parameters. This can be fed from the Prompts to file node.-4. `Prompt Strength` - Formats prompt with strength like the weighted format of compel-5. `Prompt Strength Combine` - Combines weighted prompts for .and()/.blend()-6. `CSV To Index String` - Gets a string from a CSV by index. Includes a Random index option--The following Nodes are now included in v3.2 of Invoke and are no longer in this set of tools.<br>-- `Prompt Join` -> `String Join`-- `Prompt Join Three` -> `String Join Three`-- `Prompt Replace` -> `String Replace`-- `Prompt Split Neg` -> `String Split Neg`---See full docs here: https://github.com/skunkworxdark/Prompt-tools-nodes/edit/main/README.md--**Node Link:** https://github.com/skunkworxdark/Prompt-tools-nodes--**Workflow Examples**--<img src="https://raw.githubusercontent.com/skunkworxdark/prompt-tools/refs/heads/main/images/CSVToIndexStringNode.png"/>-----------------------------------### Remote Image--**Description:** This is a pack of nodes to interoperate with other services, be they public websites or bespoke local servers. The pack consists of these nodes:--- *Load Remote Image* - Lets you load remote images such as a realtime webcam image, an image of the day, or dynamically created images.-- *Post Image to Remote Server* - Lets you upload an image to a remote server using an HTTP POST request, eg for storage, display or further processing.--**Node Link:** https://github.com/fieldOfView/InvokeAI-remote_image------------------------------------### BriaAI Remove Background--**Description**: Implements one click background removal with BriaAI's new version 1.4 model which seems to be producing better results than any other previous background removal tool.--**Node Link:** https://github.com/blessedcoolant/invoke_bria_rmbg--**View**-<img src="https://raw.githubusercontent.com/blessedcoolant/invoke_bria_rmbg/main/assets/preview.jpg" />-----------------------------------### Remove Background--Description: An integration of the rembg package to remove backgrounds from images using multiple U2NET models.--Node Link: https://github.com/VeyDlin/remove-background-node--View:-</br><img src="https://raw.githubusercontent.com/VeyDlin/remove-background-node/master/.readme/node.png" width="500" />-----------------------------------### Retroize--**Description:** Retroize is a collection of nodes for InvokeAI to "Retroize" images. Any image can be given a fresh coat of retro paint with these nodes, either from your gallery or from within the graph itself. It includes nodes to pixelize, quantize, palettize, and ditherize images; as well as to retrieve palettes from existing images.--**Node Link:** https://github.com/Ar7ific1al/invokeai-retroizeinode/--**Retroize Output Examples**--<img src="https://github.com/Ar7ific1al/InvokeAI_nodes_retroize/assets/2306586/de8b4fa6-324c-4c2d-b36c-297600c73974" width="500" />-----------------------------------### Stereogram Nodes--**Description:** A set of custom nodes for InvokeAI to create cross-view or parallel-view stereograms. Stereograms are 2D images that, when viewed properly, reveal a 3D scene. Check out [r/crossview](https://www.reddit.com/r/CrossView/) for tutorials.--**Node Link:** https://github.com/simonfuhrmann/invokeai-stereo--**Example Workflow and Output**-</br><img src="https://raw.githubusercontent.com/simonfuhrmann/invokeai-stereo/refs/heads/main/docs/example_promo_03.jpg" width="600" />-----------------------------------### Simple Skin Detection--Description: Detects skin in images based on predefined color thresholds.--Node Link: https://github.com/VeyDlin/simple-skin-detection-node--View:-</br><img src="https://raw.githubusercontent.com/VeyDlin/simple-skin-detection-node/master/.readme/node.png" width="500" />------------------------------------### Size Stepper Nodes--**Description:** This is a set of nodes for calculating the necessary size increments for doing upscaling workflows. Use the *Final Size & Orientation* node to enter your full size dimensions and orientation (portrait/landscape/random), then plug that and your initial generation dimensions into the *Ideal Size Stepper* and get 1, 2, or 3 intermediate pairs of dimensions for upscaling. Note this does not output the initial size or full size dimensions: the 1, 2, or 3 outputs of this node are only the intermediate sizes.--A third node is included, *Random Switch (Integers)*, which is just a generic version of Final Size with no orientation selection.--**Node Link:** https://github.com/dwringer/size-stepper-nodes--**Example Usage:**-</br><img src="https://raw.githubusercontent.com/dwringer/size-stepper-nodes/main/size_nodes_usage.jpg" width="500" />-----------------------------------### Text font to Image--**Description:** text font to text image node for InvokeAI, download a font to use (or if in font cache uses it from there), the text is always resized to the image size, but can control that with padding, optional 2nd line--**Node Link:** https://github.com/mickr777/textfontimage--**Output Examples**--<img src="https://github.com/mickr777/InvokeAI/assets/115216705/c21b0af3-d9c6-4c16-9152-846a23effd36" width="300" />--Results after using the depth controlnet--<img src="https://github.com/mickr777/InvokeAI/assets/115216705/915f1a53-968e-43eb-aa61-07cd8f1a733a" width="300" />-<img src="https://github.com/mickr777/InvokeAI/assets/115216705/821ef89e-8a60-44f5-b94e-471a9d8690cc" width="300" />-<img src="https://github.com/mickr777/InvokeAI/assets/115216705/2befcb6d-49f4-4bfd-b5fc-1fee19274f89" width="300" />-----------------------------------### Thresholding--**Description:** This node generates masks for highlights, midtones, and shadows given an input image. You can optionally specify a blur for the lookup table used in making those masks from the source image.--**Node Link:** https://github.com/JPPhoto/thresholding-node--**Examples**--Input:--<img src="https://github.com/invoke-ai/InvokeAI/assets/34005131/c88ada13-fb3d-484c-a4fe-947b44712632" width="300" />--Highlights/Midtones/Shadows:--<img src="https://github.com/invoke-ai/InvokeAI/assets/34005131/727021c1-36ff-4ec8-90c8-105e00de986d" width="300" />-<img src="https://github.com/invoke-ai/InvokeAI/assets/34005131/0b721bfc-f051-404e-b905-2f16b824ddfe" width="300" />-<img src="https://github.com/invoke-ai/InvokeAI/assets/34005131/04c1297f-1c88-42b6-a7df-dd090b976286" width="300" />--Highlights/Midtones/Shadows (with LUT blur enabled):--<img src="https://github.com/invoke-ai/InvokeAI/assets/34005131/19aa718a-70c1-4668-8169-d68f4bd13771" width="300" />-<img src="https://github.com/invoke-ai/InvokeAI/assets/34005131/0a440e43-697f-4d17-82ee-f287467df0a5" width="300" />-<img src="https://github.com/invoke-ai/InvokeAI/assets/34005131/0701fd0f-2ca7-4fe2-8613-2b52547bafce" width="300" />-----------------------------------### Unsharp Mask--**Description:** Applies an unsharp mask filter to an image, preserving its alpha channel in the process.--**Node Link:** https://github.com/JPPhoto/unsharp-mask-node-----------------------------------### XY Image to Grid and Images to Grids nodes--**Description:** These nodes add the following to InvokeAI:-- Generate grids of images from multiple input images-- Create XY grid images with labels from parameters-- Split images into overlapping tiles for processing (for super-resolution workflows)-- Recombine image tiles into a single output image blending the seams--The nodes include:-1. `Images To Grids` - Combine multiple images into a grid of images-2. `XYImage To Grid` - Take X & Y params and creates a labeled image grid.-3. `XYImage Tiles` - Super-resolution (embiggen) style tiled resizing-4. `Image Tot XYImages` - Takes an image and cuts it up into a number of columns and rows.-5. Multiple supporting nodes - Helper nodes for data wrangling and building `XYImage` collections--See full docs here: https://github.com/skunkworxdark/XYGrid_nodes/edit/main/README.md--**Node Link:** https://github.com/skunkworxdark/XYGrid_nodes--**Output Examples**--<img src="https://raw.githubusercontent.com/skunkworxdark/XYGrid_nodes/refs/heads/main/images/collage.png" />------------------------------------### Example Node Template--**Description:** This node allows you to do super cool things with InvokeAI.--**Node Link:** https://github.com/invoke-ai/InvokeAI/blob/main/invokeai/app/invocations/prompt.py--**Example Workflow:** https://github.com/invoke-ai/InvokeAI/blob/docs/main/docs/workflows/Prompt_from_File.json--**Output Examples**--</br><img src="https://invoke-ai.github.io/InvokeAI/assets/invoke_ai_banner.png" width="500" />---## Disclaimer--The nodes linked have been developed and contributed by members of the Invoke AI community. While we strive to ensure the quality and safety of these contributions, we do not guarantee the reliability or security of the nodes. If you have issues or concerns with any of the nodes below, please raise it on GitHub or in the Discord.---## Help-If you run into any issues with a node, please post in the [InvokeAI Discord](https://discord.gg/ZmtBAhwWhy).-diff --git a/docs-old/nodes/contributingNodes.md b/docs-old/nodes/contributingNodes.mddeleted file mode 100644index 7a30c8aeb0..0000000000--- a/docs-old/nodes/contributingNodes.md+++ /dev/null@@ -1,27 +0,0 @@-# Contributing Nodes--To learn about the specifics of creating a new node, please visit our [Node creation documentation](../contributing/INVOCATIONS.md).--Once you’ve created a node and confirmed that it behaves as expected locally, follow these steps:--- Make sure the node is contained in a new Python (.py) file. Preferably, the node is in a repo with a README detailing the nodes usage & examples to help others more easily use your node. Including the tag "invokeai-node" in your repository's README can also help other users find it more easily.-- Submit a pull request with a link to your node(s) repo in GitHub against the `main` branch to add the node to the [Community Nodes](communityNodes.md) list- - Make sure you are following the template below and have provided all relevant details about the node and what it does. Example output images and workflows are very helpful for other users looking to use your node.-- A maintainer will review the pull request and node. If the node is aligned with the direction of the project, you may be asked for permission to include it in the core project.--### Community Node Template--```markdown----------------------------------### Super Cool Node Template--**Description:** This node allows you to do super cool things with InvokeAI.--**Node Link:** https://github.com/invoke-ai/InvokeAI/fake_node.py--**Example Node Graph:** https://github.com/invoke-ai/InvokeAI/fake_node_graph.json--**Output Examples**---```diff --git a/docs-old/nodes/defaultNodes.md b/docs-old/nodes/defaultNodes.mddeleted file mode 100644index 1c951a77a4..0000000000--- a/docs-old/nodes/defaultNodes.md+++ /dev/null@@ -1,108 +0,0 @@-# List of Default Nodes--The table below contains a list of the default nodes shipped with InvokeAI and-their descriptions.--| Node <img width=160 align="right"> | Function |-| :------------------------------------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------- |-| Add Integers | Adds two numbers |-| Boolean Primitive Collection | A collection of boolean primitive values |-| Boolean Primitive | A boolean primitive value |-| Canny Processor | Canny edge detection for ControlNet |-| CenterPadCrop | Pad or crop an image's sides from the center by specified pixels. Positive values are outside of the image. |-| CLIP Skip | Skip layers in clip text_encoder model. |-| Collect | Collects values into a collection |-| Color Correct | Shifts the colors of a target image to match the reference image, optionally using a mask to only color-correct certain regions of the target image. |-| Color Primitive | A color primitive value |-| Compel Prompt | Parse prompt using compel package to conditioning. |-| Conditioning Primitive Collection | A collection of conditioning tensor primitive values |-| Conditioning Primitive | A conditioning tensor primitive value |-| Content Shuffle Processor | Applies content shuffle processing to image |-| ControlNet | Collects ControlNet info to pass to other nodes |-| Create Denoise Mask | Converts a greyscale or transparency image into a mask for denoising. |-| Create Gradient Mask | Creates a mask for Gradient ("soft", "differential") inpainting that gradually expands during denoising. Improves edge coherence. |-| Denoise Latents | Denoises noisy latents to decodable images |-| Divide Integers | Divides two numbers |-| Dynamic Prompt | Parses a prompt using adieyal/dynamicprompts' random or combinatorial generator |-| [FaceMask](./detailedNodes/faceTools.md#facemask) | Generates masks for faces in an image to use with Inpainting |-| [FaceIdentifier](./detailedNodes/faceTools.md#faceidentifier) | Identifies and labels faces in an image |-| [FaceOff](./detailedNodes/faceTools.md#faceoff) | Creates a new image that is a scaled bounding box with a mask on the face for Inpainting |-| Float Math | Perform basic math operations on two floats |-| Float Primitive Collection | A collection of float primitive values |-| Float Primitive | A float primitive value |-| Float Range | Creates a range |-| HED (softedge) Processor | Applies HED edge detection to image |-| Blur Image | Blurs an image |-| Extract Image Channel | Gets a channel from an image. |-| Image Primitive Collection | A collection of image primitive values |-| Integer Math | Perform basic math operations on two integers |-| Convert Image Mode | Converts an image to a different mode. |-| Crop Image | Crops an image to a specified box. The box can be outside of the image. |-| Ideal Size | Calculates an ideal image size for latents for a first pass of a multi-pass upscaling to avoid duplication and other artifacts |-| Image Hue Adjustment | Adjusts the Hue of an image. |-| Inverse Lerp Image | Inverse linear interpolation of all pixels of an image |-| Image Primitive | An image primitive value |-| Lerp Image | Linear interpolation of all pixels of an image |-| Offset Image Channel | Add to or subtract from an image color channel by a uniform value. |-| Multiply Image Channel | Multiply or Invert an image color channel by a scalar value. |-| Multiply Images | Multiplies two images together using `PIL.ImageChops.multiply()`. |-| Blur NSFW Image | Add blur to NSFW-flagged images |-| Paste Image | Pastes an image into another image. |-| ImageProcessor | Base class for invocations that preprocess images for ControlNet |-| Resize Image | Resizes an image to specific dimensions |-| Round Float | Rounds a float to a specified number of decimal places |-| Float to Integer | Converts a float to an integer. Optionally rounds to an even multiple of a input number. |-| Scale Image | Scales an image by a factor |-| Image to Latents | Encodes an image into latents. |-| Add Invisible Watermark | Add an invisible watermark to an image |-| Solid Color Infill | Infills transparent areas of an image with a solid color |-| PatchMatch Infill | Infills transparent areas of an image using the PatchMatch algorithm |-| Tile Infill | Infills transparent areas of an image with tiles of the image |-| Integer Primitive Collection | A collection of integer primitive values |-| Integer Primitive | An integer primitive value |-| Iterate | Iterates over a list of items |-| Latents Primitive Collection | A collection of latents tensor primitive values |-| Latents Primitive | A latents tensor primitive value |-| Latents to Image | Generates an image from latents. |-| Leres (Depth) Processor | Applies leres processing to image |-| Lineart Anime Processor | Applies line art anime processing to image |-| Lineart Processor | Applies line art processing to image |-| LoRA Loader | Apply selected lora to unet and text_encoder. |-| Main Model Loader | Loads a main model, outputting its submodels. |-| Combine Mask | Combine two masks together by multiplying them using `PIL.ImageChops.multiply()`. |-| Mask Edge | Applies an edge mask to an image |-| Mask from Alpha | Extracts the alpha channel of an image as a mask. |-| Mediapipe Face Processor | Applies mediapipe face processing to image |-| Midas (Depth) Processor | Applies Midas depth processing to image |-| MLSD Processor | Applies MLSD processing to image |-| Multiply Integers | Multiplies two numbers |-| Noise | Generates latent noise. |-| Normal BAE Processor | Applies NormalBae processing to image |-| ONNX Latents to Image | Generates an image from latents. |-| ONNX Prompt (Raw) | A node to process inputs and produce outputs. May use dependency injection in **init** to receive providers. |-| ONNX Text to Latents | Generates latents from conditionings. |-| ONNX Model Loader | Loads a main model, outputting its submodels. |-| OpenCV Inpaint | Simple inpaint using opencv. |-| DW Openpose Processor | Applies Openpose processing to image |-| PIDI Processor | Applies PIDI processing to image |-| Prompts from File | Loads prompts from a text file |-| Random Integer | Outputs a single random integer. |-| Random Range | Creates a collection of random numbers |-| Integer Range | Creates a range of numbers from start to stop with step |-| Integer Range of Size | Creates a range from start to start + size with step |-| Resize Latents | Resizes latents to explicit width/height (in pixels). Provided dimensions are floor-divided by 8. |-| SDXL Compel Prompt | Parse prompt using compel package to conditioning. |-| SDXL LoRA Loader | Apply selected lora to unet and text_encoder. |-| SDXL Main Model Loader | Loads an sdxl base model, outputting its submodels. |-| SDXL Refiner Compel Prompt | Parse prompt using compel package to conditioning. |-| SDXL Refiner Model Loader | Loads an sdxl refiner model, outputting its submodels. |-| Scale Latents | Scales latents by a given factor. |-| Segment Anything Processor | Applies segment anything processing to image |-| Show Image | Displays a provided image, and passes it forward in the pipeline. |-| String Primitive Collection | A collection of string primitive values |-| String Primitive | A string primitive value |-| Subtract Integers | Subtracts two numbers |-| Tile Resample Processor | Tile resampler processor |-| Upscale (RealESRGAN) | Upscales an image using RealESRGAN. |-| VAE Loader | Loads a VAE model, outputting a VaeLoaderOutput |-| Zoe (Depth) Processor | Applies Zoe depth processing to image |diff --git a/docs-old/nodes/detailedNodes/faceTools.md b/docs-old/nodes/detailedNodes/faceTools.mddeleted file mode 100644index 632212d3c3..0000000000--- a/docs-old/nodes/detailedNodes/faceTools.md+++ /dev/null@@ -1,154 +0,0 @@-# Face Nodes--## FaceOff--FaceOff mimics a user finding a face in an image and resizing the bounding box-around the head in Canvas.--Enter a face ID (found with FaceIdentifier) to choose which face to mask.--Just as you would add more context inside the bounding box by making it larger-in Canvas, the node gives you a padding input (in pixels) which will-simultaneously add more context, and increase the resolution of the bounding box-so the face remains the same size inside it.--The "Minimum Confidence" input defaults to 0.5 (50%), and represents a pass/fail-threshold a detected face must reach for it to be processed. Lowering this value-may help if detection is failing. If the detected masks are imperfect and stray-too far outside/inside of faces, the node gives you X & Y offsets to shrink/grow-the masks by a multiplier.--FaceOff will output the face in a bounded image, taking the face off of the-original image for input into any node that accepts image inputs. The node also-outputs a face mask with the dimensions of the bounded image. The X & Y outputs-are for connecting to the X & Y inputs of the Paste Image node, which will place-the bounded image back on the original image using these coordinates.--###### Inputs/Outputs--| Input | Description |-| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| Image | Image for face detection |-| Face ID | The face ID to process, numbered from 0. Multiple faces not supported. Find a face's ID with FaceIdentifier node. |-| Minimum Confidence | Minimum confidence for face detection (lower if detection is failing) |-| X Offset | X-axis offset of the mask |-| Y Offset | Y-axis offset of the mask |-| Padding | All-axis padding around the mask in pixels |-| Chunk | Chunk (or divide) the image into sections to greatly improve face detection success. Defaults to off, but will activate if no faces are detected normally. Activate to chunk by default. |--| Output | Description |-| ------------- | ------------------------------------------------ |-| Bounded Image | Original image bound, cropped, and resized |-| Width | The width of the bounded image in pixels |-| Height | The height of the bounded image in pixels |-| Mask | The output mask |-| X | The x coordinate of the bounding box's left side |-| Y | The y coordinate of the bounding box's top side |--## FaceMask--FaceMask mimics a user drawing masks on faces in an image in Canvas.--The "Face IDs" input allows the user to select specific faces to be masked.-Leave empty to detect and mask all faces, or a comma-separated list for a-specific combination of faces (ex: `1,2,4`). A single integer will detect and-mask that specific face. Find face IDs with the FaceIdentifier node.--The "Minimum Confidence" input defaults to 0.5 (50%), and represents a pass/fail-threshold a detected face must reach for it to be processed. Lowering this value-may help if detection is failing.--If the detected masks are imperfect and stray too far outside/inside of faces,-the node gives you X & Y offsets to shrink/grow the masks by a multiplier. All-masks shrink/grow together by the X & Y offset values.--By default, masks are created to change faces. When masks are inverted, they-change surrounding areas, protecting faces.--###### Inputs/Outputs--| Input | Description |-| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| Image | Image for face detection |-| Face IDs | Comma-separated list of face ids to mask eg '0,2,7'. Numbered from 0. Leave empty to mask all. Find face IDs with FaceIdentifier node. |-| Minimum Confidence | Minimum confidence for face detection (lower if detection is failing) |-| X Offset | X-axis offset of the mask |-| Y Offset | Y-axis offset of the mask |-| Chunk | Chunk (or divide) the image into sections to greatly improve face detection success. Defaults to off, but will activate if no faces are detected normally. Activate to chunk by default. |-| Invert Mask | Toggle to invert the face mask |--| Output | Description |-| ------ | --------------------------------- |-| Image | The original image |-| Width | The width of the image in pixels |-| Height | The height of the image in pixels |-| Mask | The output face mask |--## FaceIdentifier--FaceIdentifier outputs an image with detected face IDs printed in white numbers-onto each face.--Face IDs can then be used in FaceMask and FaceOff to selectively mask all, a-specific combination, or single faces.--The FaceIdentifier output image is generated for user reference, and isn't meant-to be passed on to other image-processing nodes.--The "Minimum Confidence" input defaults to 0.5 (50%), and represents a pass/fail-threshold a detected face must reach for it to be processed. Lowering this value-may help if detection is failing. If an image is changed in the slightest, run-it through FaceIdentifier again to get updated FaceIDs.--###### Inputs/Outputs--| Input | Description |-| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| Image | Image for face detection |-| Minimum Confidence | Minimum confidence for face detection (lower if detection is failing) |-| Chunk | Chunk (or divide) the image into sections to greatly improve face detection success. Defaults to off, but will activate if no faces are detected normally. Activate to chunk by default. |--| Output | Description |-| ------ | ------------------------------------------------------------------------------------------------ |-| Image | The original image with small face ID numbers printed in white onto each face for user reference |-| Width | The width of the original image in pixels |-| Height | The height of the original image in pixels |--## Tips--- If not all target faces are being detected, activate Chunk to bypass full- image face detection and greatly improve detection success.-- Final results will vary between full-image detection and chunking for faces- that are detectable by both due to the nature of the process. Try either to- your taste.-- Be sure Minimum Confidence is set the same when using FaceIdentifier with- FaceOff/FaceMask.-- For FaceOff, use the color correction node before faceplace to correct edges- being noticeable in the final image (see example screenshot).-- Non-inpainting models may struggle to paint/generate correctly around faces.-- If your face won't change the way you want it to no matter what you change,- consider that the change you're trying to make is too much at that resolution.- For example, if an image is only 512x768 total, the face might only be 128x128- or 256x256, much smaller than the 512x512 your SD1.5 model was probably- trained on. Try increasing the resolution of the image by upscaling or- resizing, add padding to increase the bounding box's resolution, or use an- image where the face takes up more pixels.-- If the resulting face seems out of place pasted back on the original image- (ie. too large, not proportional), add more padding on the FaceOff node to- give inpainting more context. Context and good prompting are important to- keeping things proportional.-- If you find the mask is too big/small and going too far outside/inside the- area you want to affect, adjust the x & y offsets to shrink/grow the mask area-- Use a higher denoise start value to resemble aspects of the original face or- surroundings. Denoise start = 0 & denoise end = 1 will make something new,- while denoise start = 0.50 & denoise end = 1 will be 50% old and 50% new.-- mediapipe isn't good at detecting faces with lots of face paint, hair covering- the face, etc. Anything that obstructs the face will likely result in no faces- being detected.-- If you find your face isn't being detected, try lowering the minimum- confidence value from 0.5. This could result in false positives, however- (random areas being detected as faces and masked).-- After altering an image and wanting to process a different face in the newly- altered image, run the altered image through FaceIdentifier again to see the- new Face IDs. MediaPipe will most likely detect faces in a different order- after an image has been changed in the slightest.diff --git a/docs-old/nodes/invocation-api.md b/docs-old/nodes/invocation-api.mddeleted file mode 100644index 1a624f2267..0000000000--- a/docs-old/nodes/invocation-api.md+++ /dev/null@@ -1,66 +0,0 @@-# Invocation API--Each invocation's `invoke` method is provided a single arg - the Invocation Context.--This object provides an API the invocation can use to interact with application services, for example:--- Saving images-- Logging messages-- Loading models--```py-class MyInvocation(BaseInvocation):- ...- def invoke(self, context: InvocationContext) -> ImageOutput:- # Load an image- image_pil = context.images.get_pil(self.image.image_name)- # Do something to the image- output_image = do_something_cool(image_pil)- # Save the image- image_dto = context.images.save(output_image)- # Log a message- context.logger.info(f"Did something cool, image saved!")- # Return the output- return ImageOutput.build(image_dto)- ...-```--The full API is documented below.--## Mixins--Two important mixins are provided to facilitate working with metadata and gallery boards.--### `WithMetadata`--Inherit from this class (in addition to `BaseInvocation`) to add a `metadata` input to your node. When you do this, you can access the metadata dict from `self.metadata` in the `invoke()` function.--The dict will be populated via the node's input, and you can add any metadata you'd like to it. When you call `context.images.save()`, if the metadata dict has any data, it be automatically embedded in the image.--### `WithBoard`--Inherit from this class (in addition to `BaseInvocation`) to add a `board` input to your node. This renders as a drop-down to select a board. The user's selection will be accessible from `self.board` in the `invoke()` function.--When you call `context.images.save()`, if a board was selected, the image will added to that board as it is saved.--<!-- prettier-ignore-start -->-::: invokeai.app.services.shared.invocation_context.InvocationContext- options:- members: false--::: invokeai.app.services.shared.invocation_context.ImagesInterface--::: invokeai.app.services.shared.invocation_context.TensorsInterface--::: invokeai.app.services.shared.invocation_context.ConditioningInterface--::: invokeai.app.services.shared.invocation_context.ModelsInterface--::: invokeai.app.services.shared.invocation_context.LoggerInterface--::: invokeai.app.services.shared.invocation_context.ConfigInterface--::: invokeai.app.services.shared.invocation_context.UtilInterface--::: invokeai.app.services.shared.invocation_context.BoardsInterface-<!-- prettier-ignore-end -->diff --git a/docs/astro.config.mjs b/docs/astro.config.mjsindex 35333bc0c6..ebb59d3611 100644--- a/docs/astro.config.mjs+++ b/docs/astro.config.mjs@@ -5,10 +5,18 @@ import starlight from '@astrojs/starlight';// Pluginsimport starlightLinksValidator from 'starlight-links-validator';import starlightLlmsText from 'starlight-llms-txt';-import starlightChangelogs, { makeChangelogsSidebarLinks } from 'starlight-changelogs';+import starlightChangelogs from 'starlight-changelogs';import { rehypePrefixBaseToRootLinks } from './plugins/rehype-prefix-base-to-root-links.mjs';import starlightContextualMenu from 'starlight-contextual-menu';+// Configs+import {+ createHeadConfig,+ createRedirects,+ sidebarConfig,+ socialConfig,+} from './src/config';+// Deployment target: 'custom' (default, custom domain at invoke.ai) or 'ghpages'// (GitHub Pages project URL at invoke-ai.github.io/InvokeAI). Drive site/base from this// so the same source can be deployed to either target.@@ -16,54 +24,14 @@ const deployTarget = process.env.DEPLOY_TARGET ?? 'custom';const isGhPages = deployTarget === 'ghpages';const enableAnalytics = process.env.ENABLE_ANALYTICS === 'true';const base = isGhPages ? '/InvokeAI' : '';-const withBase = (/** @type {string} */ path) => (isGhPages ? `${base}${path}` : path);+const site = isGhPages ? 'https://invoke-ai.github.io' : 'https://invoke.ai';-const redirects = Object.fromEntries(- Object.entries({- '/CODE_OF_CONDUCT': '/contributing/code-of-conduct',- '/RELEASE': '/development/process/release-process',- '/installation': '/start-here/installation',- '/installation/docker': '/configuration/docker',- '/installation/manual': '/start-here/manual',- '/installation/models': '/concepts/models',- '/installation/patchmatch': '/configuration/patchmatch',- '/installation/quick_start': '/start-here/installation',- '/installation/requirements': '/start-here/system-requirements',- '/configuration': '/configuration/invokeai-yaml',- '/features/low-vram/': '/configuration/low-vram-mode/',- '/features/lasso-tool': '/features/canvas/lasso-tool',- '/features/shapes-tool': '/features/canvas/shapes-tool',- '/faq': '/troubleshooting/faq',- '/help/SAMPLER_CONVERGENCE': '/concepts/parameters',- '/help/diffusion': '/concepts/diffusion',- '/help/gettingStartedWithAI': '/concepts/image-generation',- '/nodes/NODES': '/workflows/editor-interface',- '/nodes/NODES_MIGRATION_V3_V4': '/development/guides/api-development',- '/nodes/comfyToInvoke': '/workflows/comfyui-migration',- '/nodes/communityNodes': '/workflows/community-nodes',- '/nodes/contributingNodes': '/development/guides/creating-nodes',- '/nodes/invocation-api': '/development/guides/api-development',- '/contributing/ARCHITECTURE': '/development/architecture/overview',- '/contributing/DOWNLOAD_QUEUE': '/development/architecture/model-manager',- '/contributing/HOTKEYS': '/features/hotkeys',- '/contributing/INVOCATIONS': '/development/architecture/invocations',- '/contributing/LOCAL_DEVELOPMENT': '/development/setup/dev-environment',- '/contributing/MODEL_MANAGER': '/development/architecture/model-manager',- '/contributing/NEW_MODEL_INTEGRATION': '/development/guides/models',- '/contributing/PR-MERGE-POLICY': '/development/process/pr-merge-policy',- '/contributing/TESTS': '/development/guides/tests',- '/contributing/contribution_guides/development': '/development',- '/contributing/contribution_guides/newContributorChecklist': '/contributing/new-contributor-guide',- '/contributing/dev-environment': '/development/setup/dev-environment',- '/contributing/frontend': '/development/front-end',- '/contributing/frontend/state-management': '/development/front-end/state-management',- '/contributing/frontend/workflows': '/development/front-end/workflows',- }).map(([from, to]) => [from, withBase(to)]),-);+const redirects = createRedirects(base);+const head = createHeadConfig({ base, enableAnalytics, isGhPages, site });// https://astro.build/configexport default defineConfig({- site: isGhPages ? 'https://invoke-ai.github.io' : 'https://invoke.ai',+ site,base: base || undefined,markdown: {rehypePlugins: [[rehypePrefixBaseToRootLinks, { base }]],@@ -83,23 +51,7 @@ export default defineConfig({editLink: {baseUrl: 'https://github.com/invoke-ai/InvokeAI/edit/main/docs',},- head:- enableAnalytics && !isGhPages- ? [- {- tag: 'script',- attrs: {- async: true,- src: 'https://plausible.tracking.events/js/pa-BHcumuOemKz4XIQeWkTn4.js',- },- },- {- tag: 'script',- content:- 'window.plausible=window.plausible||function(){(plausible.q=plausible.q||[]).push(arguments)},plausible.init=plausible.init||function(i){plausible.o=i||{}};plausible.init()',- },- ]- : [],+ head,defaultLocale: 'root',locales: {root: {@@ -107,23 +59,7 @@ export default defineConfig({lang: 'en',},},- social: [- {- icon: 'github',- label: 'GitHub',- href: 'https://github.com/invoke-ai/InvokeAI',- },- {- icon: 'discord',- label: 'Discord',- href: 'https://discord.gg/ZmtBAhwWhy',- },- {- icon: 'youtube',- label: 'YouTube',- href: 'https://www.youtube.com/@invokeai',- },- ],+ social: socialConfig,tableOfContents: {maxHeadingLevel: 4,},@@ -132,72 +68,7 @@ export default defineConfig({'@fontsource-variable/roboto-mono','./src/styles/custom.css',],- sidebar: [- {- label: 'Start Here',- items: [{- autogenerate: { directory: 'start-here' },- }],- },- {- label: 'Configuration',- items: [{- autogenerate: { directory: 'configuration' },- }],- },- {- label: 'Concepts',- items: [{- autogenerate: { directory: 'concepts' },- }],- },- {- label: 'Features',- items: [{- autogenerate: { directory: 'features' },- }],- },- {- label: 'Workflows',- items: [{- autogenerate: { directory: 'workflows' },- }],- collapsed: true,- },- {- label: 'Development',- items: [{- autogenerate: { directory: 'development', collapsed: true },- }],- collapsed: true,- },- {- label: 'Contributing',- items: [{- autogenerate: { directory: 'contributing' },- }],- collapsed: true,- },- {- label: 'Troubleshooting',- items: [{- autogenerate: { directory: 'troubleshooting' },- }],- collapsed: true,- },- {- label: 'Releases',- collapsed: true,- items: [- ...makeChangelogsSidebarLinks([- {- type: 'recent',- base: 'releases',- }- ])- ]- }- ],+ sidebar: sidebarConfig,components: {ThemeProvider: './src/lib/components/ForceDarkTheme.astro',ThemeSelect: './src/lib/components/EmptyComponent.astro',@@ -212,11 +83,9 @@ export default defineConfig({starlightLlmsText(),starlightChangelogs(),starlightContextualMenu({- actions: [- 'copy', 'view', 'chatgpt', 'claude'- ]+ actions: ['copy', 'view', 'chatgpt', 'claude'],}),- ]+ ],}),],redirects,diff --git a/docs/package.json b/docs/package.jsonindex 3e45a45085..29d0786e8e 100644--- a/docs/package.json+++ b/docs/package.json@@ -8,28 +8,27 @@"generate-docs-data": "uv run python ../scripts/generate_docs_json.py","check-docs-data": "pnpm run generate-docs-data && git diff --exit-code -- src/generated","check-deploy-output": "node ./scripts/verify-deploy-output.mjs",+ "check-redirects": "node ./scripts/validate-redirect-targets.mjs","build": "astro build","preview": "astro preview","astro": "astro"},"dependencies": {- "@astrojs/markdoc": "^1.0.4","@astrojs/starlight": "^0.39.2",- "@astrojs/starlight-markdoc": "^0.6.0","@fontsource-variable/inter": "^5.2.8","@fontsource-variable/roboto-mono": "^5.2.9",- "astro": "^6.3.1",+ "astro": "^6.3.7","mermaid": "^11.15.0","rehype-external-links": "^3.0.0","sharp": "^0.34.5","starlight-changelogs": "^0.5.0","starlight-contextual-menu": "^0.1.5","starlight-links-validator": "^0.24.0",- "starlight-llms-txt": "^0.8.1"+ "starlight-llms-txt": "^0.10.0"},"devDependencies": {- "node-addon-api": "^8.7.0",- "node-gyp": "^12.2.0"+ "node-addon-api": "^8.8.0",+ "node-gyp": "^12.3.0"},"packageManager": "[email protected]"}diff --git a/docs/pnpm-lock.yaml b/docs/pnpm-lock.yamlindex 7358c7d992..a2daac1ce7 100644--- a/docs/pnpm-lock.yaml+++ b/docs/pnpm-lock.yaml@@ -8,15 +8,9 @@ importers:.:dependencies:- '@astrojs/markdoc':- specifier: ^1.0.4- version: 1.0.4([email protected](@types/[email protected])([email protected])([email protected])([email protected]))'@astrojs/starlight':specifier: ^0.39.2- version: 0.39.2([email protected](@types/[email protected])([email protected])([email protected])([email protected]))- '@astrojs/starlight-markdoc':- specifier: ^0.6.0- version: 0.6.0(@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])))(@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])))+ version: 0.39.2([email protected](@types/[email protected])([email protected])([email protected])([email protected]))'@fontsource-variable/inter':specifier: ^5.2.8version: 5.2.8@@ -24,8 +18,8 @@ importers:specifier: ^5.2.9version: 5.2.9astro:- specifier: ^6.3.1+ specifier: ^6.3.7mermaid:specifier: ^11.15.0version: 11.15.0@@ -37,23 +31,23 @@ importers:version: 0.34.5starlight-changelogs:specifier: ^0.5.0- version: 0.5.0(@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])))([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ version: 0.5.0(@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])))([email protected](@types/[email protected])([email protected])([email protected])([email protected]))starlight-contextual-menu:specifier: ^0.1.5- version: 0.1.5([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])))+ version: 0.1.5([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])))starlight-links-validator:specifier: ^0.24.0- version: 0.24.0(@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])))([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ version: 0.24.0(@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])))([email protected](@types/[email protected])([email protected])([email protected])([email protected]))starlight-llms-txt:- specifier: ^0.8.1- version: 0.8.1(@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])))([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ specifier: ^0.10.0+ version: 0.10.0(@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])))([email protected](@types/[email protected])([email protected])([email protected])([email protected]))devDependencies:node-addon-api:- specifier: ^8.7.0- version: 8.7.0+ specifier: ^8.8.0+ version: 8.8.0node-gyp:- specifier: ^12.2.0- version: 12.2.0+ specifier: ^12.3.0+ version: 12.3.0packages:@@ -68,32 +62,26 @@ packages:'@astrojs/[email protected]':resolution: {integrity: sha512-eouss7G8ygdZqHuke033VMcVw5HTZUu+PXd/h06DGDUg/jt5btPYPqh66ENWw/mU78rBrf/oeC4oqoBwMtDMNA==}- '@astrojs/[email protected]':- resolution: {integrity: sha512-J56GrhEiV+4dmrGLPNOl2pZjpHXAndWVyiVDYGDuw6MWKpBSEMLdFxHzeM/6sqaknw9M+HFfHZAcvi3OfT3D/w==}-'@astrojs/[email protected]':resolution: {integrity: sha512-GdYkzR26re8izmyYlBqf4z2s7zNngmWLFuxw0UKiPNqHraZGS6GKWIwSHgS22RDlu2ePFJ8bzmpBcUszut/SDg==}- '@astrojs/[email protected]':- resolution: {integrity: sha512-Xpuv+ApNm2NVokKDmUzMQZFZ5gBBF7bncNjzm2hnfCJIOWnVwNK0H048H7hXKx06VgJ+sKdkRXpYHEams0PWog==}- engines: {node: '>=22.12.0'}- peerDependencies:- astro: ^6.0.0-- '@astrojs/[email protected]':- resolution: {integrity: sha512-P+HnCsu2js3BoTc8kFmu+E9gOcFeMdPris75g+Zl4sY8+bBRbSQV6xzcBDbZ27eE7yBGEGQoqjpChx+KJYIPYQ==}+ '@astrojs/[email protected]':+ resolution: {integrity: sha512-1pWuARqYom/TzuU3+0ZugsTrKlUydWKuULmDqSMTuonY+9IRDUEGKX/8PXQ1nBxRq3w85uGtd9q9SXfqEldMIQ==}'@astrojs/[email protected]':resolution: {integrity: sha512-C6e9BnLGlbdv6bV8MYGeHpHxsUHrCrB4OuRLqi5LI7oiBVcBcqfUN06zpwFQdHgV48QCCrMmLpyqBr7VqC+swA==}- '@astrojs/[email protected]':- resolution: {integrity: sha512-zv/OlM5sZZvyjHqJjR3FjJvoCgbxdqj3t4jO/gSEUNcck3BjdtMgNQw8UgPfAGe4yySdG4vjZ3OC5wUxhu7ckg==}+ '@astrojs/[email protected]':+ resolution: {integrity: sha512-caXZ4Dc2St2dW8luEg22GlP0gupLdztCTQE4EzZOxW1pqWXz9mbeJEuHUkgDYcKWW8tjIHkydYDhWLVoxJ327Q==}++ '@astrojs/[email protected]':+ resolution: {integrity: sha512-tSbuuYueNODiFAFaME7pjHY5lOLoxBYJi1cKd6scw9+a4ZO7C7UGdafEoVAQvOV2eO8a6RaHSAJYGVPL1w8BPA==}engines: {node: '>=22.12.0'}peerDependencies:astro: ^6.0.0- '@astrojs/[email protected]':- resolution: {integrity: sha512-tSbuuYueNODiFAFaME7pjHY5lOLoxBYJi1cKd6scw9+a4ZO7C7UGdafEoVAQvOV2eO8a6RaHSAJYGVPL1w8BPA==}+ '@astrojs/[email protected]':+ resolution: {integrity: sha512-4dKe0ZMmqujofPNDHahzClkwinn9f8jHPcaXcgdGvPAlboD2mjzkUCofli2cBnxYAkdfhC6d50gBJ8i/cH8gHw==}engines: {node: '>=22.12.0'}peerDependencies:astro: ^6.0.0@@ -102,15 +90,13 @@ packages:resolution: {integrity: sha512-nksZQVjlferuWzhPsBpQ1JE5XuKAf1id1/9Hj4a9KG4+ofrlzxUUwX4YGQF/SuDiuiGKEnzopGOt38F3AnVWsQ==}engines: {node: '>=22.12.0'}+ '@astrojs/[email protected]':+ resolution: {integrity: sha512-KTivpmnz6lDsC6o9H4+DNm2SrE/GHzw8cNAvEJwAvUT+eoaEnn/4NtbDNfRRaxaJHdp15gf+tfHAWiXR4wB3BA==}+ engines: {node: '>=22.12.0'}+'@astrojs/[email protected]':resolution: {integrity: sha512-PqkzkcZTb5ICiyIR8VoKbIAP/laNRXi5tw616N1Ckk+40oNB8Can1AzVV56lrbC5GKSZFCyJYUVYqVivMisvpA==}- '@astrojs/[email protected]':- resolution: {integrity: sha512-3afGzQ0pGbCPLlgbWiOvQPHnKwfGxknAO0Cu8SNATO7W4ZvV9g8eabTlbSqtxw2R9UC/w7oazmJDaipPxAc4Ew==}- peerDependencies:- '@astrojs/markdoc': ^1.0.0- '@astrojs/starlight': '>=0.38.0'-'@astrojs/[email protected]':resolution: {integrity: sha512-vlw+bwnjtf5buCTUtLU7JfV6D3knslxqnspr6LKs6hfRuFZiyr5hT44F7GyDqR9FKANUqFxnIzWM81F1k/kOUA==}peerDependencies:@@ -128,8 +114,8 @@ packages:resolution: {integrity: sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-4GgRzy/+fsBa72/RZVJmGKPmZu9Byn8o4MoLpmNe1m8ZfYnz5emHLQz3U4gLud6Zwl0RZIcgiLD7Uq7ySFuDLA==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-b3ctpQwp+PROvU/cttc4OYl4MzfJUWy6FZg+PMXfzmt/+39iHVF0sDfqay8TQM3JA2EUOyKcFZt75jWriQijsA==}engines: {node: '>=6.0.0'}hasBin: true@@ -147,11 +133,13 @@ packages:'@chevrotain/[email protected]':resolution: {integrity: sha512-U+HFai5+zmJCkK86QsaJtoITlboZHBqrVketcO2ROv865xfCMSFpELQoz1GkX5GzME8pTa+3kbKrZHQtI0gdbw==}- '@clack/[email protected]':- resolution: {integrity: sha512-qfxof/3T3t9DPU/Rj3OmcFyZInceqj/NVtO9rwIuJqCUgh32gwPjpFQQp/ben07qKlhpwq7GzfWpST4qdJ5Drg==}+ '@clack/[email protected]':+ resolution: {integrity: sha512-fT1qHVGAag4IEkrupZ6lRRbNCs1vS9P01KB/sG8zKgvUztbYtFBtQpjSITNwooDZ83tpsPzP0mRNs1/KVszCRA==}+ engines: {node: '>= 20.12.0'}- '@clack/[email protected]':- resolution: {integrity: sha512-4jmztR9fMqPMjz6H/UZXj0zEmE43ha1euENwkckKKel4XpSfokExPo5AiVStdHSAlHekz4d0CA/r45Ok1E4D3w==}+ '@clack/[email protected]':+ resolution: {integrity: sha512-S0My7XPGIgpRWMDG8uRqalbgT+a6FmCUdOW+HaIOVVpUPHOb7RrpvjTjiODadKp06fsrVDJZlIzc6yCTp4AnxA==}+ engines: {node: '>= 20.12.0'}'@ctrl/[email protected]':resolution: {integrity: sha512-kzyuwOAQnXJNLS9PSyrk0CWk35nWJW/zl/6KvnTBMFK65gm7U1/Z5BqjxeapjZCIhQcM/DsrEmcbRwDyXyXK4A==}@@ -334,10 +322,6 @@ packages:'@fontsource-variable/[email protected]':resolution: {integrity: sha512-OzFO2AXlSGcXl/NcXS3CGjImb6rczCByPJ1C+Dzp9kkYOrUPyrGTuAtqPcmA/d+nZGX5oyOWKXLk5BrwVLYqkw==}- '@gar/[email protected]':- resolution: {integrity: sha512-GmzA9ckNokPypTg10pgpeHNQe7ph+iIKKmhKu3Ob9ANkswreCx7R3cKmY781K8QK3AqVL3xVh9A42JvIAbkkSA==}- engines: {node: ^20.17.0 || >=22.9.0}-'@iconify/[email protected]':resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==}@@ -488,36 +472,12 @@ packages:'@jridgewell/[email protected]':resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==}- '@markdoc/[email protected]':- resolution: {integrity: sha512-NxreNThm7foFgMMQD6zgk7rKkcFMmdC8J5r+Zn4FKoN75F5YjvwdihwF11VhrBfL3CXnD4+YG1VYwvBL+igzvw==}- engines: {node: '>=14.7.0'}- peerDependencies:- '@types/react': '*'- react: '*'- peerDependenciesMeta:- '@types/react':- optional: true- react:- optional: true-'@mdx-js/[email protected]':resolution: {integrity: sha512-f6ZO2ifpwAQIpzGWaBQT2TXxPv6z3RBzQKpVftEWN78Vl/YweF1uwussDx8ECAXVtr3Rs89fKyG9YlzUs9DyGQ==}'@mermaid-js/[email protected]':resolution: {integrity: sha512-VuHdsYMK1bT6X2JbcAaWAhugTRvRBRyuZgd+c22swUeI9g/ntaxF7CY7dYarhZovofCbUNO0G7JesfmNtjYOCw==}- '@npmcli/[email protected]':- resolution: {integrity: sha512-kAQTcEN9E8ERLVg5AsGwLNoFb+oEG6engbqAU2P43gD4JEIkNGMHdVQ096FsOAAYpZPB0RSt0zgInKIAS1l5QA==}- engines: {node: ^20.17.0 || >=22.9.0}-- '@npmcli/[email protected]':- resolution: {integrity: sha512-7OsC1gNORBEawOa5+j2pXN9vsicaIOH5cPXxoR6fJOmH6/EXpJB2CajXOu1fPRFun2m1lktEFX11+P89hqO/og==}- engines: {node: ^20.17.0 || >=22.9.0}-- '@npmcli/[email protected]':- resolution: {integrity: sha512-gOBg5YHMfZy+TfHArfVogwgfBeQnKbbGo3pSUyK/gSI0AVu+pEiDVcKlQb0D8Mg1LNRZILZ6XG8I5dJ4KuAd9Q==}- engines: {node: ^20.17.0 || >=22.9.0}-'@oslojs/[email protected]':resolution: {integrity: sha512-70wQhgYmndg4GCPxPPxPGevRKqTIJ2Nh4OkiMWmDAVYsTQ+Ta7Sq+rPevXyXGdzr30/qZBnyOalCszoMxlyldQ==}@@ -568,128 +528,128 @@ packages:rollup:optional: true- '@rollup/[email protected]':- resolution: {integrity: sha512-d6FinEBLdIiK+1uACUttJKfgZREXrF0Qc2SmLII7W2AD8FfiZ9Wjd+rD/iRuf5s5dWrr1GgwXCvPqOuDquOowA==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-F5QXMSiFebS9hKZj02XhWLLnRpJ3B3AROP0tWbFBSj+6kCbg5m9j5JoHKd4mmSVy5mS/IMQloYgYxCuJC0fxEQ==}cpu: [arm]os: [android]- '@rollup/[email protected]':- resolution: {integrity: sha512-YjG/EwIDvvYI1YvYbHvDz/BYHtkY4ygUIXHnTdLhG+hKIQFBiosfWiACWortsKPKU/+dUwQQCKQM3qrDe8c9BA==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-GxxTKApUpzRhof7poWvCJHRF51C67u1R7D6DiluBE8wKU1u5GWE8t+v81JvJYtbawoBFX1hLv5Ei4eVjkWokaw==}cpu: [arm64]os: [android]- '@rollup/[email protected]':- resolution: {integrity: sha512-mjCpF7GmkRtSJwon+Rq1N8+pI+8l7w5g9Z3vWj4T7abguC4Czwi3Yu/pFaLvA3TTeMVjnu3ctigusqWUfjZzvw==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-tua0TaJxMOB1R0V0RS1jFZ/RpURFDJIOR2A6jWwQeawuFyS4gBW+rntLRaQd0EQ4bd6Vp44Z2rXW+YYDBsj6IA==}cpu: [arm64]os: [darwin]- '@rollup/[email protected]':- resolution: {integrity: sha512-haZ7hJ1JT4e9hqkoT9R/19XW2QKqjfJVv+i5AGg57S+nLk9lQnJ1F/eZloRO3o9Scy9CM3wQ9l+dkXtcBgN5Ew==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-CSKq7MsP+5PFIcydhAiR1K0UhEI1A2jWXVKHPCBZ151yOutENwvnPocgVHkivu2kviURtCEB6zUQw0vs8RrhMg==}cpu: [x64]os: [darwin]- '@rollup/[email protected]':- resolution: {integrity: sha512-czw90wpQq3ZsAVBlinZjAYTKduOjTywlG7fEeWKUA7oCmpA8xdTkxZZlwNJKWqILlq0wehoZcJYfBvOyhPTQ6w==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-+O8OkVdyvXMtJEciu2wS/pzm1IxntEEQx3z5TAVy4l32G0etZn+RsA48ARRrFm6Ri8fvqPQfgrvNxSjKAbnd3g==}cpu: [arm64]os: [freebsd]- '@rollup/[email protected]':- resolution: {integrity: sha512-KVB2rqsxTHuBtfOeySEyzEOB7ltlB/ux38iu2rBQzkjbwRVlkhAGIEDiiYnO2kFOkJp+Z7pUXKyrRRFuFUKt+g==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-Iw3oMskH3AfNuhU0MSN7vNbdi4me/NiYo2azqPz/Le16zHSa+3RRmliCMWWQmh4lcndccU40xcJuTYJZxNo/lw==}cpu: [x64]os: [freebsd]- '@rollup/[email protected]':- resolution: {integrity: sha512-L+34Qqil+v5uC0zEubW7uByo78WOCIrBvci69E7sFASRl0X7b/MB6Cqd1lky/CtcSVTydWa2WZwFuWexjS5o6g==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-EIPRXTVQpHyF8WOo219AD2yEltPehLTcTMz2fn6JsatLYSzQf00hj3rulF+yauOlF9/FtM2WpkT/hJh/KJFGhA==}cpu: [arm]os: [linux]- '@rollup/[email protected]':- resolution: {integrity: sha512-n83O8rt4v34hgFzlkb1ycniJh7IR5RCIqt6mz1VRJD6pmhRi0CXdmfnLu9dIUS6buzh60IvACM842Ffb3xd6Gg==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-J3Yh9PzzF1Ovah2At+lHiGQdsYgArxBbXv/zHfSyaiFQEqvNv7DcW98pCrmdjCZBrqBiKrKKe2V+aaSGWuBe/w==}cpu: [arm]os: [linux]- '@rollup/[email protected]':- resolution: {integrity: sha512-Nql7sTeAzhTAja3QXeAI48+/+GjBJ+QmAH13snn0AJSNL50JsDqotyudHyMbO2RbJkskbMbFJfIJKWA6R1LCJQ==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-BFDEZMYfUvLn37ONE1yMBojPxnMlTFsdyNoqncT0qFq1mAfllL+ATMMJd8TeuVMiX84s1KbcxcZbXInmcO2mRg==}cpu: [arm64]os: [linux]- '@rollup/[email protected]':- resolution: {integrity: sha512-+pUymDhd0ys9GcKZPPWlFiZ67sTWV5UU6zOJat02M1+PiuSGDziyRuI/pPue3hoUwm2uGfxdL+trT6Z9rxnlMA==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-pc9EYOSlOgdQ2uPl1o9PF6/kLSgaUosia7gOuS8mB69IxJvlclko1MECXysjs5ryez1/5zjYqx3+xYU0TU6R1A==}cpu: [arm64]os: [linux]- '@rollup/[email protected]':- resolution: {integrity: sha512-VSvgvQeIcsEvY4bKDHEDWcpW4Yw7BtlKG1GUT4FzBUlEKQK0rWHYBqQt6Fm2taXS+1bXvJT6kICu5ZwqKCnvlQ==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-NxnomyxYerDh5n4iLrNa+sH+Z+U4BMEE46V2PgQ/hoB909i8gV1M5wPojWg9fk1jWpO3IQnOs20K4wyZuFLEFQ==}cpu: [loong64]os: [linux]- '@rollup/[email protected]':- resolution: {integrity: sha512-4LqhUomJqwe641gsPp6xLfhqWMbQV04KtPp7/dIp0nzPxAkNY1AbwL5W0MQpcalLYk07vaW9Kp1PBhdpZYYcEw==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-nbJnQ8a3z1mtmrwImCYhc6BGpThAyYVRQxw9uKSKG4wR6aAYno9sVjJ0zaZcW9BPJX1GbrDPf+SvdWjgTuDmnw==}cpu: [loong64]os: [linux]- '@rollup/[email protected]':- resolution: {integrity: sha512-tLQQ9aPvkBxOc/EUT6j3pyeMD6Hb8QF2BTBnCQWP/uu1lhc9AIrIjKnLYMEroIz/JvtGYgI9dF3AxHZNaEH0rw==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-2EU6acNrQLd8tYvo/LXW535wupT3m6fo7HKo6lr7ktQoItxTyOL1ZCR/GfGCuXl2vR+zmfI6eRXkSemafv+iVg==}cpu: [ppc64]os: [linux]- '@rollup/[email protected]':- resolution: {integrity: sha512-RMxFhJwc9fSXP6PqmAz4cbv3kAyvD1etJFjTx4ONqFP9DkTkXsAMU4v3Vyc5BgzC+anz7nS/9tp4obsKfqkDHg==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-WeBtoMuaMxiiIrO2IYP3xs6GMWkJP2C0EoT8beTLkUPmzV1i/UcOSVw1d5r9KBODtHKilG5yFxsGRnBbK3wJ4A==}cpu: [ppc64]os: [linux]- '@rollup/[email protected]':- resolution: {integrity: sha512-QKgFl+Yc1eEk6MmOBfRHYF6lTxiiiV3/z/BRrbSiW2I7AFTXoBFvdMEyglohPj//2mZS4hDOqeB0H1ACh3sBbg==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-FJHFfqpKUI3A10WrWKiFbBZ7yVbGT4q4B5o1qKFFojqpaYoh9LrQgqWCmmcxQzVSXYtyB5bzkXrYzlHTs21MYA==}cpu: [riscv64]os: [linux]- '@rollup/[email protected]':- resolution: {integrity: sha512-RAjXjP/8c6ZtzatZcA1RaQr6O1TRhzC+adn8YZDnChliZHviqIjmvFwHcxi4JKPSDAt6Uhf/7vqcBzQJy0PDJg==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-mcEl6CUT5IAUmQf1m9FYSmVqCJlpQ8r8eyftFUHG8i9OhY7BkBXSUdnLH5DOf0wCOjcP9v/QO93zpmF1SptCCw==}cpu: [riscv64]os: [linux]- '@rollup/[email protected]':- resolution: {integrity: sha512-wcuocpaOlaL1COBYiA89O6yfjlp3RwKDeTIA0hM7OpmhR1Bjo9j31G1uQVpDlTvwxGn2nQs65fBFL5UFd76FcQ==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-ynt3JxVd2w2buzoKDWIyiV1pJW93xlQic1THVLXilz429oijRpSHivZAgp65KBu+cMcgf1eVVjdnTLvPxgCuoQ==}cpu: [s390x]os: [linux]- '@rollup/[email protected]':- resolution: {integrity: sha512-77PpsFQUCOiZR9+LQEFg9GClyfkNXj1MP6wRnzYs0EeWbPcHs02AXu4xuUbM1zhwn3wqaizle3AEYg5aeoohhg==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-Boiz5+MsaROEWDf+GGEwF8VMHGhlUoQMtIPjOgA5fv4osupqTVnJteQNKJwUcnUog2G55jYXH7KZFFiJe0TEzQ==}cpu: [x64]os: [linux]- '@rollup/[email protected]':- resolution: {integrity: sha512-5cIATbk5vynAjqqmyBjlciMJl1+R/CwX9oLk/EyiFXDWd95KpHdrOJT//rnUl4cUcskrd0jCCw3wpZnhIHdD9w==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-+qfSY27qIrFfI/Hom04KYFw3GKZSGU4lXus51wsb5EuySfFlWRwjkKWoE9emgRw/ukoT4Udsj4W/+xxG8VbPKg==}cpu: [x64]os: [linux]- '@rollup/[email protected]':- resolution: {integrity: sha512-cl0w09WsCi17mcmWqqglez9Gk8isgeWvoUZ3WiJFYSR3zjBQc2J5/ihSjpl+VLjPqjQ/1hJRcqBfLjssREQILw==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-VpTfOPHgVXEBeeR8hZ2O0F3aSso+JDWqTWmTmzcQKted54IAdUVbxE+j/MVxUsKa8L20HJhv3vUezVPoquqWjA==}cpu: [x64]os: [openbsd]- '@rollup/[email protected]':- resolution: {integrity: sha512-4Cv23ZrONRbNtbZa37mLSueXUCtN7MXccChtKpUnQNgF010rjrjfHx3QxkS2PI7LqGT5xXyYs1a7LbzAwT0iCA==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-IPOsh5aRYuLv/nkU51X10Bf75Bsf6+gZdx1X+QP5QM6lIJFHHqbHLG0uJn/hWthzo13UAc2umiUorqZy3axoZg==}cpu: [arm64]os: [openharmony]- '@rollup/[email protected]':- resolution: {integrity: sha512-i1okWYkA4FJICtr7KpYzFpRTHgy5jdDbZiWfvny21iIKky5YExiDXP+zbXzm3dUcFpkEeYNHgQ5fuG236JPq0g==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-4QzE9E81OohJ/HKzHhsqU+zcYYojVOXlFMs1DdyMT6qXl/niOH7AVElmmEdUNHHS/oRkc++d5k6Vy85zFs0DEw==}cpu: [arm64]os: [win32]- '@rollup/[email protected]':- resolution: {integrity: sha512-u09m3CuwLzShA0EYKMNiFgcjjzwqtUMLmuCJLeZWjjOYA3IT2Di09KaxGBTP9xVztWyIWjVdsB2E9goMjZvTQg==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-zTPgT1YuHHcd+Tmx7h8aml0FWFVelV5N54oHow9SLj+GfoDy/huQ+UV396N/C7KpMDMiPspRktzM1/0r1usYEA==}cpu: [ia32]os: [win32]- '@rollup/[email protected]':- resolution: {integrity: sha512-k+600V9Zl1CM7eZxJgMyTUzmrmhB/0XZnF4pRypKAlAgxmedUA+1v9R+XOFv56W4SlHEzfeMtzujLJD22Uz5zg==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-DRS4G7mi9lJxqEDezIkKCaUIKCrLUUDCUaCsTPCi/rtqaC6D/jjwslMQyiDU50Ka0JKpeXeRBFBAXwArY52vBw==}cpu: [x64]os: [win32]- '@rollup/[email protected]':- resolution: {integrity: sha512-lWMnixq/QzxyhTV6NjQJ4SFo1J6PvOX8vUx5Wb4bBPsEb+8xZ89Bz6kOXpfXj9ak9AHTQVQzlgzBEc1SyM27xQ==}+ '@rollup/[email protected]':+ resolution: {integrity: sha512-QVTUovf40zgTqlFVrKA1uXMVvU2QWEFWfAH8Wdc48IxLvrJMQVMBRjuQyUpzZCDkakImib9eVazbWlC6ksWtJw==}cpu: [x64]os: [win32]@@ -697,30 +657,58 @@ packages:resolution: {integrity: sha512-hxT0YF4ExEqB8G/qFdtJvpmHXBYJ2lWW7qTHDarVkIudPFE6iCIrqdgWxGn5s+ppkGXI0aEGlibI0PAyzP3zlw==}engines: {node: '>=20'}+ '@shikijs/[email protected]':+ resolution: {integrity: sha512-jLJtSJeuFffqX6/inRE1zqU5aFv2hrszvYgq3OjbAgFRZiWv7abKMDdQzYxuSDfmUPQozZvI/kuy6VMTvnvqTQ==}+ engines: {node: '>=20'}+'@shikijs/[email protected]':resolution: {integrity: sha512-7PW0Nm49DcoUIQEXlJhNNBHyoGMjalRETTCcjMqEaMoJRLljy1Bi/EGV3/qLBgLKQejdspiiYuHGQW6dX94Nag==}engines: {node: '>=20'}+ '@shikijs/[email protected]':+ resolution: {integrity: sha512-YquhawCUgaBfhsS72e2Y/dI59gCBNPHu3fEO/tvLaXrTssxZrY5ddjtNLTwndrMgPo8b3IscE+xoICDzpTmlFQ==}+ engines: {node: '>=20'}+'@shikijs/[email protected]':resolution: {integrity: sha512-UpCB9Y2sUKlS9z8juFSKz7ZtysmeXCgnRF0dlhXBkmQnek7lAToPte8DkxmEYGNTMii72zU/lyXiCB6StuZeJg==}engines: {node: '>=20'}+ '@shikijs/[email protected]':+ resolution: {integrity: sha512-axLpjVs45YBvvINa+dJF+NPW+KtFkNXsFr4SDw2BMj9GdeMnGxVB9PQb2xXlJYovslt/nz6giedAyOANkfc7hg==}+ engines: {node: '>=20'}+'@shikijs/[email protected]':resolution: {integrity: sha512-KaXby5dvoeuZzN0rYQiPMjFoUrz4hgwIE+D6Du9owcHcl6/g16/yT5BQxSW5cGt2MZBz6Hl0YuRqf12omRfUUg==}engines: {node: '>=20'}+ '@shikijs/[email protected]':+ resolution: {integrity: sha512-nwOMruEkbgdZfQ/b8CgpNBVOpvG1k0N5tbmgiFeqsan401+x3ILqlzZJowSla4Agmq4hG2Uf2wh5jLTEhR8VSg==}+ engines: {node: '>=20'}+'@shikijs/[email protected]':resolution: {integrity: sha512-M6UMPrSa3fN5ayeJwFVl9qWofl273wtK1VG8ySDZ1mQBfhCpdd8nEx7nPZ/tk7k+TYcpqBZzj/AnwxT9lO+HJw==}engines: {node: '>=20'}+ '@shikijs/[email protected]':+ resolution: {integrity: sha512-zx2/2Uwj2q9X3KSyYREEhXO23xBw5WUhP4orK2lE4r+t9JGITmEe0JH+wPmJhqHpOT2bRRs6lAL945+LDvOAGw==}+ engines: {node: '>=20'}+'@shikijs/[email protected]':resolution: {integrity: sha512-mjCafwt8lJJaVSsQvNVrJumbnnj1RI8jbUKrPKgE6E3OvQKxnuRoBaYC51H4IGHePsGN/QtALglWBU7DoKDFnA==}engines: {node: '>=20'}+ '@shikijs/[email protected]':+ resolution: {integrity: sha512-emCcTnUM7yO2wltYbaxm+yLvcCI4+h8XBKc4KmJ7EZUXoSGjcCHifkI//R4OFit9ewpg7H2/9tjOuXrT2v/Knw==}+ engines: {node: '>=20'}+'@shikijs/[email protected]':resolution: {integrity: sha512-qzbeRooUTPnLE+sHD/Z8DStmaDgnbbc/pMrU203950aRqjX/6AFHeDYT+j00y2lPdz0ywJKx7o/7qnqTivtlXg==}engines: {node: '>=20'}+ '@shikijs/[email protected]':+ resolution: {integrity: sha512-3EQWX54fMpniOrDblzAhiwiJwpiTMW6+B9DWyUd9ska483tbayFYuw47UxwuPknI31bKnySfVQ/QW+jFL4rFdA==}+ engines: {node: '>=20'}+'@shikijs/[email protected]':resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==}@@ -829,6 +817,9 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==}+ '@types/[email protected]':+ resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==}+'@types/[email protected]':resolution: {integrity: sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==}@@ -838,18 +829,9 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==}- '@types/[email protected]':- resolution: {integrity: sha512-yg6E+u0/+Zjva+buc3EIb+29XEg4wltq7cSmd4Uc2EE/1nUVmxyzpX6gUXD0V8jIrG0r7YeOGVIbYRkxeooCtw==}-- '@types/[email protected]':- resolution: {integrity: sha512-GKMHFfv3458yYy+v/N8gjufHO6MSZKCOXpZc5GXIWWy8uldwfmPn98vp81gZ5f9SVw8YYBctgfJ22a2d7AOMeQ==}-'@types/[email protected]':resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==}- '@types/[email protected]':- resolution: {integrity: sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==}-'@types/[email protected]':resolution: {integrity: sha512-+OWZQfAYyio6YkJb3HLxDrvnx6SWWDbC0zVPfBRzUk0/nqoDyf6dNxQi3eArPe8rJ473nobTMQ/8Zk+LxJ+Yuw==}@@ -883,6 +865,9 @@ packages:'@ungap/[email protected]':resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==}+ '@ungap/[email protected]':+ resolution: {integrity: sha512-mUFwbeTqrVgDQxFveS+df2yfap6iuP20NAKAsBt5jDEoOTDew+zwLAOilHCeQJOVSvmgCX4ogqIrA0mnyr08yQ==}+'@upsetjs/[email protected]':resolution: {integrity: sha512-WbBhLrooyePuQ1VZxrJjtLvTc4NVfpOyKx0sKqioq9bX1C1m7Jgykkn8gLrtwumBioXIqam8DLxp88Adbue6Hw==}@@ -900,10 +885,6 @@ packages:engines: {node: '>=0.4.0'}hasBin: true- resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==}- engines: {node: '>= 14'}-resolution: {integrity: sha512-BvU8nYgGQBxcmMuEeUEmNTvrMVjJNSH7RgW24vXexN4Ven6qCvy4TntnvlnwnMLTVlcRQQdbRY8NKnaIoeWDNg==}engines: {node: '>=18'}@@ -934,8 +915,8 @@ packages:peerDependencies:astro: ^4.0.0-beta || ^5.0.0-beta || ^3.3.0 || ^6.0.0-beta- resolution: {integrity: sha512-atz6dmkE3Gu24bDgb7g2RE/BYnKqPYIHd6hTUM1UXvu/i7qNZOKLAqEHvgYpv9PQVcgWsXpk4/OOXZ0E/FzvSQ==}+ resolution: {integrity: sha512-zIeDRrI0qNgN1lcCjNqt6/IVCVej7VwSa326cO8uP9BOk1cg4QuffhLnOn2gCgWQr32/wxpSRFfXiLKHglu1Tw==}engines: {node: '>=22.12.0', npm: '>=9.6.5', pnpm: '>=7.1.0'}hasBin: true@@ -946,10 +927,6 @@ packages:resolution: {integrity: sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==}- resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==}- engines: {node: 18 || 20 || >=22}-resolution: {integrity: sha512-JtTezzbAibu8G0R9op9zb3vcWZd9JF6M0xOYGPn0fNCd7wOpRB1mU2mH9T8gaBGbAAyIIVgB2G7xG0GP98zMAQ==}@@ -959,18 +936,10 @@ packages:resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==}- resolution: {integrity: sha512-VZznLgtwhn+Mact9tfiwx64fA9erHH/MCXEUfB/0bX/6Fz6ny5EGTXYltMocqg4xFAQZtnO3DHWWXi8RiuN7cQ==}- engines: {node: 18 || 20 || >=22}-resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}engines: {node: '>=8'}- resolution: {integrity: sha512-M3Lab8NPYlZU2exsL3bMVvMrMqgwCnMWfdZbK28bn3pK6APT/Te/I8hjRPNu1uwORY9a1eEQoifXbKPQMfMTOA==}- engines: {node: ^20.17.0 || >=22.9.0}-resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==}@@ -1241,8 +1210,8 @@ packages:resolution: {integrity: sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==}- resolution: {integrity: sha512-f8mefEW4WIVg4LckePx3mALjQSPQgFlg9U8yaPdlsbdYcHQyj9n2zL2LJEA52smeYxOvmd/nB7TpMtHGMTHcug==}+ resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==}resolution: {integrity: sha512-AGrQ4QSgssa1NGmWmLPqN5NY2KajF5MqxetNEO+o0n3ZwZZeTmt7bBnvzHWrmkZFxGgr4HdyFgelzgi06otLuQ==}@@ -1258,8 +1227,8 @@ packages:resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==}engines: {node: '>=8'}- resolution: {integrity: sha512-Gp6rDldRsFh/7XuouDbxMH3Mx8GMCcgzIb1pDTvNyn8pZGQ22u+Wa+lGV9dQCltFQ7uVw0MhRyb8XDskNFOReA==}+ resolution: {integrity: sha512-4CXDYRBGqN+57wVJkuXBYmpAVUSg3L6JAQa/DFqm238G73E1wuyc/JhGQJzN7vUf/CMphYau2zXbfWzDR5aTEw==}resolution: {integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==}@@ -1300,10 +1269,6 @@ packages:resolution: {integrity: sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==}engines: {node: '>=0.12'}- resolution: {integrity: sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==}- engines: {node: '>=0.12'}-resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==}engines: {node: '>=6'}@@ -1312,9 +1277,6 @@ packages:resolution: {integrity: sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==}engines: {node: '>=18'}- resolution: {integrity: sha512-5POEcUuZybH7IdmGsD8wlf0AI55wMecM9rVBTI/qEAy2c1kTOm3DjFYjrBdI2K3BaJjJYfYFeRtM0t9ssnRuxw==}-resolution: {integrity: sha512-n27zTYMjYu1aj4MjCWzSP7G9r75utsaoc8m61weK+W8JMBGGQybd43GstCXZ3WNmSFtGT9wi59qQTW6mhTR5LQ==}@@ -1372,14 +1334,14 @@ packages:resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==}- resolution: {integrity: sha512-Q9acT/+Uu3GwGj+5w/zsGuQjh9O1TyywhIwAxHudtWrgF09nHOPrvTLhQevPbttcxjr/SNN7mJmfOw/B1bXgow==}+ resolution: {integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==}- resolution: {integrity: sha512-O3fwIVIH5gKB38QNbdg+3760ZmGz0SZMgvwJbA1b2TGXceKE6A2cOlfogh1iw8lr049zPyd7YADHy+B7U4W9bQ==}+ resolution: {integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==}- resolution: {integrity: sha512-HlUwET7a5gqjURj70D5jl7aC3Zmy4weA1SHUfM0JFI0Ptq987NH2TwbBFLoERhfwk+E+eaq4EK3jXoT+R3yp3w==}+ resolution: {integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==}resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==}@@ -1405,10 +1367,6 @@ packages:resolution: {integrity: sha512-Wp1zXWPVUPBmfoa3Cqc9ctaKuzKAV6uLstRqlR56kSjplf5uAce+qeyYym7F+PHbGTk+tCEdkCW6RD7DX/gBZw==}engines: {node: '>=20'}- resolution: {integrity: sha512-XUBA9XClHbnJWSfBzjkm6RvPsyg3sryZt06BEQoXcF7EK/xpGaQYJgQKDJSUH5SGZ76Y7pFx1QBnXz09rU5Fbw==}- engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}-resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}@@ -1421,10 +1379,6 @@ packages:resolution: {integrity: sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==}- resolution: {integrity: sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==}- engines: {node: 18 || 20 || >=22}-resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}@@ -1510,20 +1464,9 @@ packages:resolution: {integrity: sha512-q+310vW8zmymYHALr1da4HyXUQ0zgiIwIicEfotYPWGN0OJVEN/58IJ3A4GBYcEq3LGAZqKb+ugvP0GNB9CEAA==}- resolution: {integrity: sha512-VTZkM9GWRAtEpveh7MSF6SjjrpNVNNVJfFup7xTY3UpFtm67foy9HDVXneLtFVt4pMz5kZtgNcvCniNFb1hlEQ==}-resolution: {integrity: sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==}- resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==}- engines: {node: '>= 14'}-- resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==}- engines: {node: '>= 14'}-resolution: {integrity: sha512-dIU6td04DvQuIqVst5S9g0GviTmhZ0DYD4b9ociVGJmuCa5vZ2de/t+Enf4olvj87mF8Y2lwjNQBwC9QZsvzKQ==}peerDependencies:@@ -1536,10 +1479,6 @@ packages:resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==}engines: {node: '>=0.10.0'}- resolution: {integrity: sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==}- engines: {node: '>=0.10.0'}-resolution: {integrity: sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==}@@ -1550,10 +1489,6 @@ packages:resolution: {integrity: sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==}engines: {node: '>=12'}- resolution: {integrity: sha512-XXADHxXmvT9+CRxhXg56LJovE+bmWnEWB78LB83VZTprKTmaC5QfruXocxzTZ2Kl0DNwKuBdlIhjL8LeY8Sf8Q==}- engines: {node: '>= 12'}-resolution: {integrity: sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg==}@@ -1642,19 +1577,15 @@ packages:resolution: {integrity: sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==}- resolution: {integrity: sha512-wgWa6FWQ3QRRJbIjbsldRJZxdxYngT/dO0I5Ynmlnin8qy7tC6xYzbcJjtN4wHLXtkbVwHzk0C+OejVw1XM+DQ==}+ resolution: {integrity: sha512-5YgH9UJd7wVb9hIouI2adWpgqrrICkt070Dnj8EUY1+B4B2P9eRLPAkAAo6NICA7CEhOIeBHl46u9zSNpNu7zA==}engines: {node: 20 || >=22}resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}- resolution: {integrity: sha512-E3ZJh4J3S9KfwdjZhe2afj6R9lGIN5Pher1pF39UGrXRqq/VDaGVIGN13BjHd2u8B61hArAGOnso7nBOouW3TQ==}-- resolution: {integrity: sha512-uCbIa8jWWmQZt4dSnEStkVC6gdakiinAm4PiGsywIkguF0eWMdcjDz0ECYhUolFU3pFLOev9VNPCEygydXnddg==}- engines: {node: ^20.17.0 || >=22.9.0}+ resolution: {integrity: sha512-pVKE4UdSQ7DvHzivsCIFx2BJn1mHG6KsyrFcaxFx6tONdneEuThrDx0Cj3AMg58KyN4pzYT+LHOotxDQDjNvkw==}resolution: {integrity: sha512-o5vL7aDWatOTX8LzaS1WMoaoxIiLRQJuIKKe2wAw6IeULDHaqbiqiggmx+pKvZDb1Sj+pE46Sn1T7lCqfFtg1Q==}@@ -1843,34 +1774,6 @@ packages:resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==}engines: {node: '>=8.6'}- resolution: {integrity: sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==}- engines: {node: 18 || 20 || >=22}-- resolution: {integrity: sha512-D7V8PO9oaz7PWGLbCACuI1qEOsq7UKfLotx/C0Aet43fCUB/wfQ7DYeq2oR/svFJGYDHPr38SHATeaj/ZoKHKw==}- engines: {node: '>=16 || 14 >=14.17'}-- resolution: {integrity: sha512-2d0q2a8eCi2IRg/IGubCNRJoYbA1+YPXAzQVRFmB45gdGZafyivnZ5YSEfo3JikbjGxOdntGFvBQGqaSMXlAFQ==}- engines: {node: ^20.17.0 || >=22.9.0}-- resolution: {integrity: sha512-TbqTz9cUwWyHS2Dy89P3ocAGUGxKjjLuR9z8w4WUTGAVgEj17/4nhgo2Du56i0Fm3Pm30g4iA8Lcqctc76jCzA==}- engines: {node: '>= 8'}-- resolution: {integrity: sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==}- engines: {node: '>=8'}-- resolution: {integrity: sha512-zSsHhto5BcUVM2m1LurnXY6M//cGhVaegT71OfOXoprxT6o780GZd792ea6FfrQkuU4usHZIUczAQMRUE2plzA==}- engines: {node: '>=8'}-- resolution: {integrity: sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==}- engines: {node: '>=8'}-resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==}engines: {node: '>=16 || 14 >=14.17'}@@ -1889,20 +1792,11 @@ packages:resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}- resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==}- engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}- hasBin: true-resolution: {integrity: sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==}engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}hasBin: true- resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==}- engines: {node: '>= 0.6'}-resolution: {integrity: sha512-Z4SmBUweYa09+o6pG+eASabEpP6QkQ70yHj351pQoEXIs8uHbaU2DWVmzBANKgflPa47A50PtB2+NgRpQvr7vA==}engines: {node: '>= 10'}@@ -1910,15 +1804,15 @@ packages:resolution: {integrity: sha512-YKLBCcUYKAg0FNlOBT6aI91qFmSiFKiluk655WzPF+DDMA02qIyy8uiRqI8QXtcFpEvll12LpL5MXqEmAZ+dcA==}- resolution: {integrity: sha512-9MdFxmkKaOYVTV+XVRG8ArDwwQ77XIgIPyKASB1k3JPq3M8fGQQQE3YpMOrKm6g//Ktx8ivZr8xo1Qmtqub+GA==}+ resolution: {integrity: sha512-c5Ko1fZJIJmzhFIkhRN76WTq+fC6tWnGy9CXA0fA+XygsWZmEwG8vmbkNqxMyoaa0Tin4djul49NzdVcJJcjeA==}engines: {node: ^18 || ^20 || >= 21}resolution: {integrity: sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q==}- resolution: {integrity: sha512-q23WdzrQv48KozXlr0U1v9dwO/k59NHeSzn6loGcasyf0UnSrtzs8kRxM+mfwJSf0DkX0s43hcqgnSO4/VNthQ==}+ resolution: {integrity: sha512-QNcUWM+HgJplcPzBvFBZ9VXacyGZ4+VTOb80PwWR+TlVzoHbRKULNEzpRsnaoxG3Wzr7Qh7BYxGDU3CbKib2Yg==}engines: {node: ^20.17.0 || >=22.9.0}hasBin: true@@ -1949,19 +1843,21 @@ packages:resolution: {integrity: sha512-8Unqkvk1RYc6yq2WBYRj4hdnsAxVze8i7iPfQr8e4uSP3tRv0rpZcbGUDvxfQQcdwHt/e9PrMvGCsa8OqG9X3w==}+ resolution: {integrity: sha512-6HVa5oIrgMC6aA6WF6XyyqbhRPJrKR02L20+2+zpDtO5QAzGHAUGw5TKQvwi5vctNnRHkJYmjAhRVQF2EKdTQw==}+resolution: {integrity: sha512-Zjygswjpsewa0NLTsiizVuMQZbp0MDyM6lIt66OxsF21npUDlzpHi1Mgb/qhQdkb+dWFTzJmFbEWdvZgRho8eQ==}+ resolution: {integrity: sha512-csuQ9x3Yr0cEIs/Zgx/OEt9iBw9vqIunAPQkx19R/fiMq2oGVTgcMqO/V3Ybqefr1TBvosI6jU539ksaBULJyA==}+resolution: {integrity: sha512-7cIXg/Z0M5WZRblrsOla88S4wAK+zOQQWeBYfV3qJuJXMr+LnbYjaadrFaS0JILfEDPVqHyKnZ1Z/1d6J9VVUw==}engines: {node: '>=20'}- resolution: {integrity: sha512-tkAQEw8ysMzmkhgw8k+1U/iPhWNhykKnSk4Rd5zLoPJCuJaGRPo6YposrZgaxHKzDHdDWWZvE/Sk7hsL2X/CpQ==}- engines: {node: '>=18'}-- resolution: {integrity: sha512-yQS1vV2V7Q14MQrgD8jMNY5owPuGgVHVdSK8NqmKpOVajnjbaeMa6uLOzTALPtvJ7Vo4bw0BGsw7qfUT8z24Ig==}+ resolution: {integrity: sha512-7NED7xhQ74Ngp4JP/2e0VZHp7vSWfJfqeiR92jPgxsz6m0Se4P03YoTKa9dDXyZ3r6P616gUXttrB6nnHYKang==}engines: {node: '>=20'}@@ -1987,10 +1883,6 @@ packages:resolution: {integrity: sha512-NOnmBpt5Y2RWbuv0LMzsayp3lVylAHLPUTut412ZA3l+C4uw4ZVkQbjShYCQ8TCpUMdPapr4YjUqLYD6v68j+w==}- resolution: {integrity: sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==}- engines: {node: 18 || 20 || >=22}-resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==}@@ -2031,8 +1923,8 @@ packages:resolution: {integrity: sha512-SoSL4+OSEtR99LHFZQiJLkT59C5B1amGO1NzTwj7TT1qCUgUO6hxOvzkOYxD+vMrXBM3XJIKzokoERdqQq/Zmg==}engines: {node: ^10 || ^12 || >=14}- resolution: {integrity: sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==}+ resolution: {integrity: sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==}engines: {node: ^10 || ^12 || >=14}@@ -2146,8 +2038,8 @@ packages:resolution: {integrity: sha512-NS3levdsRIUOmiJ8FZWCP7LG3QpJyrs/TE0Zpf1yvZu8cAJJ6QMW92H1c7kWpdIHo8RvmLxN/o2JXTKHp74lUA==}- resolution: {integrity: sha512-VmtB2rFU/GroZ4oL8+ZqXgSA38O6GR8KSIvWmEFv63pQ0G6KaBH9s07PO8XTXP4vI+3UJUEypOfjkGfmSBBR0w==}+ resolution: {integrity: sha512-WHeFSbZYsPu3+bLoNRUuAO+wavNlocOPf3wSHTP7hcFKVnJeWsYlCDbr3mTS14FCizf9ccIxXA8sGL8zKeQN3g==}engines: {node: '>=18.0.0', npm: '>=8.0.0'}hasBin: true@@ -2169,6 +2061,11 @@ packages:engines: {node: '>=10'}hasBin: true+ resolution: {integrity: sha512-rkVq3IXh+4FDGch+KwzX3aV9W3kO54GyEgpvBzSyctDA6Xtd7RJQV1xmXbeQp5v7+VzLOfVqiutSE6GICgPFvg==}+ engines: {node: '>=10'}+ hasBin: true+resolution: {integrity: sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==}engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}@@ -2177,6 +2074,10 @@ packages:resolution: {integrity: sha512-eAVKTMedR5ckPo4xne/PjYQYrU3qx78gtJZ+sHlXEg5IHhhoQhMfZVzetTYuaJS0L2Ef3AcCRzCHV8T0WI6nIQ==}engines: {node: '>=20'}+ resolution: {integrity: sha512-l/ABZPUR5v70jI10EzqfMS/I96vjSGv2y0ihUV+WYFzv0EfvW4s54m0Lg8wCrrL+2IkwBzFTuxkZjPf8b2NX9Q==}+ engines: {node: '>=20'}+resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}@@ -2185,22 +2086,10 @@ packages:engines: {node: '>=20.19.5', npm: '>=10.8.2'}hasBin: true- resolution: {integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==}- engines: {node: '>= 6.0.0', npm: '>= 3.0.0'}-resolution: {integrity: sha512-dWUG8F5sIIARXih1DTaQAX4SsiTXhInKf1buxdY9DIg4ZYPZK5nGM1VRIYmEbDbsHt7USo99xSLFu5Q1IqTmsg==}engines: {node: '>= 18'}- resolution: {integrity: sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==}- engines: {node: '>= 14'}-- resolution: {integrity: sha512-HLpt+uLy/pxB+bum/9DzAgiKS8CX1EvbWxI4zlmgGCExImLdiad2iCwXT5Z4c9c3Eq8rP2318mPW2c+QbtjK8A==}- engines: {node: '>= 10.0.0', npm: '>= 3.0.0'}-resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}engines: {node: '>=0.10.0'}@@ -2212,10 +2101,6 @@ packages:resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==}- resolution: {integrity: sha512-QUiRf1+u9wPTL/76GTYlKttDEBWV1ga9ZXW8BG6kfdeyyM8LGPix9gROyg9V2+P0xNyF3X2Go526xKFdMZrHSQ==}- engines: {node: ^20.17.0 || >=22.9.0}-resolution: {integrity: sha512-bqBAHle6N4jApkLz8qlN+k8nmaJUXvYunrJeYWTZats15SeEmsT+1N7KdshODCky2AzLfIBy4Qa2v1YSQNrjxQ==}engines: {node: '>=22.12.0'}@@ -2235,8 +2120,8 @@ packages:'@astrojs/starlight': '>=0.38.0'astro: '>=6.0.0'- resolution: {integrity: sha512-bRMck9OGNiKXyeJzA6Qy2N/gqC40aERpucOOagl+dPz5s/XeY+9p5dx4wBk3Qiicy3dF/F62Zt9iPPff/POpvA==}+ resolution: {integrity: sha512-LgkSjkvdACsGHkFq1ES00F0BU4lRepjJoaUmOgxBxNWx4txwpySVPtntKdAvDvlhinyN0ZBRpnAsN/sVQ1UEfA==}peerDependencies:'@astrojs/starlight': '>=0.38.0'astro: ^6.0.0@@ -2274,8 +2159,8 @@ packages:engines: {node: '>=16'}hasBin: true- resolution: {integrity: sha512-tOG/7GyXpFevhXVh8jOPJrmtRpOTsYqUIkVdVooZYJS/z8WhfQUX8RJILmeuJNinGAMSu1veBr4asSHFt5/hng==}+ resolution: {integrity: sha512-dzGK0boVlC4W5QFuQN1EFSl3bIDYsk7Tj40U6eIBnK2k/8ml7TZ5agbI5j5+qnoVcAA+rNtBml8SEiLxZpNqRQ==}engines: {node: '>=18'}@@ -2293,8 +2178,12 @@ packages:resolution: {integrity: sha512-u9r3uZC0bdpGOXtlxUIdwf9pkmvhqJdrVCH9fapQtgy/OeTTMZ1nqH7agtvEfmGui6e1XxjcdrlxvxJvc3sMqw==}engines: {node: '>=18'}- resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==}+ resolution: {integrity: sha512-M/Q0B2cp4K7kynaT/vnED1j8TlLY+Pp7C6Wl2bl/7u/F0mUVwdyOpwomQb8JpYLitHUssAJRmLZdMCGsrx7i+g==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==}engines: {node: '>=12.0.0'}@@ -2320,6 +2209,9 @@ packages:resolution: {integrity: sha512-yDJTmhydvl5lJzBmy/hyOAA0d+aqCBuwl818haVdYCRrWV84o7YyeVm4QlVHStqNrrJSTb6jKuFAVqAFsr+K3Q==}+ resolution: {integrity: sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==}+resolution: {integrity: sha512-R9fBn90VTJrqqLDwyMph+HGne8eqY1iPfYhPzZrvKpIfwkWZbcYlfpsb8B9dTvBfpy1/hqAD7Wi8EKfP9e8zdw==}@@ -2329,6 +2221,10 @@ packages:resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==}+ resolution: {integrity: sha512-ZgpWDC5gmNiuY9CnLVXEH8rl50xhRCuLNA97fAUnKi8RRuV4E6KG31pDTsLVUKnohJE0I3XDrTeEydAXRw47xg==}+ engines: {node: '>=18.17'}+resolution: {integrity: sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==}@@ -2446,8 +2342,8 @@ packages:resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==}- resolution: {integrity: sha512-Bby3NOsna2jsjfLVOHKes8sGwgl4TT0E6vvpYgnAYDIF/tie7MRaFthmKuHx1NSXjiTueXH3do80FMQgvEktRg==}+ resolution: {integrity: sha512-/4XH147Ui7OGTjg3HbdWe5arnZQSbfuRzdr9Ec7TQi5I7R+ir0Rlc9GIvD4v0XZurELqA035KVXJXpR61xhiTA==}engines: {node: ^20.19.0 || >=22.12.0}hasBin: truepeerDependencies:@@ -2509,9 +2405,6 @@ packages:resolution: {integrity: sha512-147y/6YNh+tlp6nd/2pWq38i9h6mz/EuQ6njIrmW8D1BS5nCqs0P6DG+m6zTGnNz5I+uhZ0SHxBs9BsPrwcKDA==}- resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==}-resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==}engines: {node: '>=18'}@@ -2529,9 +2422,6 @@ packages:resolution: {integrity: sha512-4LCcse/U2MHZ63HAJVE+v71o7yOdIe4cZ70Wpf8D/IyjDKYQLV5GD46B+hSTjJsvV5PztjvHoU580EftxjDZFQ==}engines: {node: '>=12.20'}- resolution: {integrity: sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==}-resolution: {integrity: sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==}@@ -2545,38 +2435,23 @@ snapshots:package-manager-detector: 1.6.0tinyexec: 1.0.4- '@ascorbic/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':+ '@ascorbic/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':dependencies:'@astrojs/[email protected]': {}- '@astrojs/[email protected]':+ '@astrojs/[email protected]':dependencies:picomatch: 4.0.4- '@astrojs/[email protected]':+ '@astrojs/[email protected]':dependencies:picomatch: 4.0.4- '@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':+ '@astrojs/[email protected]':dependencies:'@astrojs/internal-helpers': 0.9.0- '@astrojs/markdown-remark': 7.1.1- '@astrojs/prism': 4.0.1- '@markdoc/markdoc': 0.5.7- esbuild: 0.27.7- github-slugger: 2.0.0- htmlparser2: 10.1.0- transitivePeerDependencies:- - '@types/react'- - react- - supports-color-- '@astrojs/[email protected]':- dependencies:- '@astrojs/internal-helpers': 0.8.0'@astrojs/prism': 4.0.1github-slugger: 2.0.0hast-util-from-html: 2.0.3@@ -2600,10 +2475,10 @@ snapshots:transitivePeerDependencies:- supports-color- '@astrojs/[email protected]':+ '@astrojs/[email protected]':dependencies:- '@astrojs/internal-helpers': 0.9.0- '@astrojs/prism': 4.0.1+ '@astrojs/internal-helpers': 0.9.1+ '@astrojs/prism': 4.0.2github-slugger: 2.0.0hast-util-from-html: 2.0.3hast-util-to-text: 4.0.2@@ -2616,7 +2491,7 @@ snapshots:remark-rehype: 11.1.2remark-smartypants: 3.0.2retext-smartypants: 6.2.0- shiki: 4.0.2+ shiki: 4.1.0smol-toml: 1.6.1unified: 11.0.5unist-util-remove-position: 5.0.0@@ -2626,13 +2501,13 @@ snapshots:transitivePeerDependencies:- supports-color- '@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':+ '@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':dependencies:- '@astrojs/markdown-remark': 7.1.0+ '@astrojs/markdown-remark': 7.1.1'@mdx-js/mdx': 3.1.1acorn: 8.16.0- es-module-lexer: 2.0.0+ es-module-lexer: 2.1.0estree-util-visit: 2.0.0hast-util-to-html: 9.0.5piccolore: 0.1.3@@ -2645,12 +2520,12 @@ snapshots:transitivePeerDependencies:- supports-color- '@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':+ '@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':dependencies:- '@astrojs/markdown-remark': 7.1.1+ '@astrojs/markdown-remark': 7.1.2'@mdx-js/mdx': 3.1.1acorn: 8.16.0es-module-lexer: 2.1.0estree-util-visit: 2.0.0hast-util-to-html: 9.0.5@@ -2668,28 +2543,27 @@ snapshots:dependencies:prismjs: 1.30.0+ '@astrojs/[email protected]':+ dependencies:+ prismjs: 1.30.0+'@astrojs/[email protected]':dependencies:sitemap: 9.0.1stream-replace-string: 2.0.0zod: 4.4.3- '@astrojs/[email protected](@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])))(@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])))':- dependencies:- '@astrojs/markdoc': 1.0.4([email protected](@types/[email protected])([email protected])([email protected])([email protected]))- '@astrojs/starlight': 0.39.2([email protected](@types/[email protected])([email protected])([email protected])([email protected]))-- '@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':+ '@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':dependencies:'@astrojs/markdown-remark': 7.1.1- '@astrojs/mdx': 5.0.4([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ '@astrojs/mdx': 5.0.4([email protected](@types/[email protected])([email protected])([email protected])([email protected]))'@astrojs/sitemap': 3.7.2'@pagefind/default-ui': 1.5.2'@types/hast': 3.0.4'@types/js-yaml': 4.0.9'@types/mdast': 4.0.4- astro-expressive-code: 0.42.0([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ astro-expressive-code: 0.42.0([email protected](@types/[email protected])([email protected])([email protected])([email protected]))bcp-47: 2.1.0hast-util-from-html: 2.0.3hast-util-select: 6.0.4@@ -2726,7 +2600,7 @@ snapshots:'@babel/[email protected]': {}- '@babel/[email protected]':+ '@babel/[email protected]':dependencies:'@babel/types': 7.29.0@@ -2743,16 +2617,16 @@ snapshots:'@chevrotain/[email protected]': {}- '@clack/[email protected]':+ '@clack/[email protected]':dependencies:- fast-wrap-ansi: 0.1.6+ fast-wrap-ansi: 0.2.2sisteransi: 1.0.5- '@clack/[email protected]':+ '@clack/[email protected]':dependencies:- '@clack/core': 1.2.0- fast-string-width: 1.1.0- fast-wrap-ansi: 0.1.6+ '@clack/core': 1.3.1+ fast-string-width: 3.0.2+ fast-wrap-ansi: 0.2.2sisteransi: 1.0.5'@ctrl/[email protected]': {}@@ -2869,8 +2743,6 @@ snapshots:'@fontsource-variable/[email protected]': {}- '@gar/[email protected]': {}-'@iconify/[email protected]': {}'@iconify/[email protected]':@@ -2981,11 +2853,6 @@ snapshots:'@jridgewell/[email protected]': {}- '@markdoc/[email protected]':- optionalDependencies:- '@types/linkify-it': 3.0.5- '@types/markdown-it': 12.2.3-'@mdx-js/[email protected]':dependencies:'@types/estree': 1.0.8@@ -3020,22 +2887,6 @@ snapshots:dependencies:'@chevrotain/types': 11.1.2- '@npmcli/[email protected]':- dependencies:- agent-base: 7.1.4- http-proxy-agent: 7.0.2- https-proxy-agent: 7.0.6- lru-cache: 11.3.2- socks-proxy-agent: 8.0.5- transitivePeerDependencies:- - supports-color-- '@npmcli/[email protected]':- dependencies:- semver: 7.7.4-- '@npmcli/[email protected]': {}-'@oslojs/[email protected]': {}'@pagefind/[email protected]':@@ -3061,87 +2912,87 @@ snapshots:'@pagefind/[email protected]':optional: true- '@rollup/[email protected]([email protected])':+ '@rollup/[email protected]([email protected])':dependencies:- '@types/estree': 1.0.8+ '@types/estree': 1.0.9estree-walker: 2.0.2picomatch: 4.0.4optionalDependencies:- rollup: 4.60.1+ rollup: 4.60.4- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true- '@rollup/[email protected]':+ '@rollup/[email protected]':optional: true'@shikijs/[email protected]':@@ -3152,36 +3003,74 @@ snapshots:'@types/hast': 3.0.4hast-util-to-html: 9.0.5+ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/primitive': 4.1.0+ '@shikijs/types': 4.1.0+ '@shikijs/vscode-textmate': 10.0.2+ '@types/hast': 3.0.4+ hast-util-to-html: 9.0.5+'@shikijs/[email protected]':dependencies:'@shikijs/types': 4.0.2'@shikijs/vscode-textmate': 10.0.2oniguruma-to-es: 4.3.5+ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/types': 4.1.0+ '@shikijs/vscode-textmate': 10.0.2+ oniguruma-to-es: 4.3.6+'@shikijs/[email protected]':dependencies:'@shikijs/types': 4.0.2'@shikijs/vscode-textmate': 10.0.2+ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/types': 4.1.0+ '@shikijs/vscode-textmate': 10.0.2+'@shikijs/[email protected]':dependencies:'@shikijs/types': 4.0.2+ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/types': 4.1.0+'@shikijs/[email protected]':dependencies:'@shikijs/types': 4.0.2'@shikijs/vscode-textmate': 10.0.2'@types/hast': 3.0.4+ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/types': 4.1.0+ '@shikijs/vscode-textmate': 10.0.2+ '@types/hast': 3.0.4+'@shikijs/[email protected]':dependencies:'@shikijs/types': 4.0.2+ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/types': 4.1.0+'@shikijs/[email protected]':dependencies:'@shikijs/vscode-textmate': 10.0.2'@types/hast': 3.0.4+ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/vscode-textmate': 10.0.2+ '@types/hast': 3.0.4+'@shikijs/[email protected]': {}'@types/[email protected]': {}@@ -3313,6 +3202,8 @@ snapshots:'@types/[email protected]': {}+ '@types/[email protected]': {}+'@types/[email protected]': {}'@types/[email protected]':@@ -3321,22 +3212,10 @@ snapshots:'@types/[email protected]': {}- '@types/[email protected]':- optional: true-- '@types/[email protected]':- dependencies:- '@types/linkify-it': 3.0.5- '@types/mdurl': 2.0.0- optional: true-'@types/[email protected]':dependencies:'@types/unist': 3.0.3- '@types/[email protected]':- optional: true-'@types/[email protected]': {}'@types/[email protected]':@@ -3368,6 +3247,8 @@ snapshots:'@ungap/[email protected]': {}+ '@ungap/[email protected]': {}+'@upsetjs/[email protected]':optionalDependencies:d3-selection: 3.0.0@@ -3381,8 +3262,6 @@ snapshots:- [email protected]: {}-dependencies:environment: 1.1.0@@ -3402,31 +3281,31 @@ snapshots:- [email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])):+ [email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])):dependencies:rehype-expressive-code: 0.42.0- [email protected](@types/[email protected])([email protected])([email protected])([email protected]):+ [email protected](@types/[email protected])([email protected])([email protected])([email protected]):dependencies:'@astrojs/compiler': 4.0.0- '@astrojs/internal-helpers': 0.9.0- '@astrojs/markdown-remark': 7.1.1+ '@astrojs/internal-helpers': 0.9.1+ '@astrojs/markdown-remark': 7.1.2'@astrojs/telemetry': 3.3.2'@capsizecss/unpack': 4.0.0- '@clack/prompts': 1.2.0+ '@clack/prompts': 1.4.0'@oslojs/encoding': 1.1.0- '@rollup/pluginutils': 5.3.0([email protected])+ '@rollup/pluginutils': 5.3.0([email protected])aria-query: 5.3.2axobject-query: 4.1.0ci-info: 4.4.0clsx: 2.1.1common-ancestor-path: 2.0.0cookie: 1.1.1- devalue: 5.6.4+ devalue: 5.8.1diff: 8.0.4dset: 3.1.4- es-module-lexer: 2.0.0+ es-module-lexer: 2.1.0esbuild: 0.27.7flattie: 1.1.1fontace: 0.4.1@@ -3437,33 +3316,33 @@ snapshots:js-yaml: 4.1.1jsonc-parser: 3.3.1magic-string: 0.30.21- magicast: 0.5.2+ magicast: 0.5.3mrmime: 2.0.1neotraverse: 0.6.18obug: 2.1.1p-limit: 7.3.0- p-queue: 9.1.1+ p-queue: 9.3.0package-manager-detector: 1.6.0piccolore: 0.1.3picomatch: 4.0.4rehype: 13.0.2- semver: 7.7.4- shiki: 4.0.2+ semver: 7.8.1+ shiki: 4.1.0smol-toml: 1.6.1svgo: 4.0.1tinyclip: 0.1.12- tinyexec: 1.0.4- tinyglobby: 0.2.15+ tinyexec: 1.2.2+ tinyglobby: 0.2.16ultrahtml: 1.6.0unifont: 0.7.4unist-util-visit: 5.1.0unstorage: 1.17.5vfile: 6.0.3xxhash-wasm: 1.1.0yargs-parser: 22.0.0- zod: 4.3.6+ zod: 4.4.3optionalDependencies:sharp: 0.34.5transitivePeerDependencies:@@ -3504,8 +3383,6 @@ snapshots:- [email protected]: {}-@@ -3516,27 +3393,10 @@ snapshots:- dependencies:- balanced-match: 4.0.4-dependencies:fill-range: 7.1.1- dependencies:- '@npmcli/fs': 5.0.0- fs-minipass: 3.0.3- glob: 13.0.6- lru-cache: 11.3.2- minipass: 7.1.3- minipass-collect: 2.0.1- minipass-flush: 1.0.7- minipass-pipeline: 1.2.4- p-map: 7.0.4- ssri: 13.0.1-@@ -3809,7 +3669,7 @@ snapshots:dependencies:character-entities: 2.0.2- [email protected]: {}+ [email protected]: {}dependencies:@@ -3821,7 +3681,7 @@ snapshots:- [email protected]: {}+ [email protected]: {}dependencies:@@ -3859,14 +3719,10 @@ snapshots:- [email protected]: {}-- [email protected]: {}-@@ -3964,15 +3820,15 @@ snapshots:- [email protected]: {}+ [email protected]: {}dependencies:- fast-string-truncated-width: 1.2.1+ fast-string-truncated-width: 3.0.3dependencies:- fast-string-width: 1.1.0+ fast-string-width: 3.0.2optionalDependencies:@@ -3992,10 +3848,6 @@ snapshots:dependencies:tiny-inflate: 1.0.3- dependencies:- minipass: 7.1.3-optional: true@@ -4005,24 +3857,18 @@ snapshots:- dependencies:- minimatch: 10.2.5- minipass: 7.1.3- path-scurry: 2.0.2-dependencies:cookie-es: 1.2.3crossws: 0.3.5- defu: 6.1.6+ defu: 6.1.7destr: 2.0.5iron-webcrypto: 1.2.1node-mock-http: 1.0.4radix3: 1.1.2- ufo: 1.6.3+ ufo: 1.6.4uncrypto: 0.1.3@@ -4189,7 +4035,7 @@ snapshots:dependencies:'@types/hast': 3.0.4'@types/mdast': 4.0.4- '@ungap/structured-clone': 1.3.0+ '@ungap/structured-clone': 1.3.1hast-util-phrasing: 3.0.1hast-util-to-html: 9.0.5hast-util-to-text: 4.0.2@@ -4241,48 +4087,20 @@ snapshots:- dependencies:- domelementtype: 2.3.0- domhandler: 5.0.3- domutils: 3.2.2- entities: 7.0.1-- dependencies:- agent-base: 7.1.4- debug: 4.4.3- transitivePeerDependencies:- - supports-color-- dependencies:- agent-base: 7.1.4- debug: 4.4.3- transitivePeerDependencies:- - supports-color-dependencies:safer-buffer: 2.1.2- dependencies:- safer-buffer: 2.1.2- optional: true-- [email protected]: {}-@@ -4343,35 +4161,18 @@ snapshots:- [email protected]: {}+ [email protected]: {}dependencies:'@jridgewell/sourcemap-codec': 1.5.5dependencies:- '@babel/parser': 7.29.2+ '@babel/parser': 7.29.3'@babel/types': 7.29.0source-map-js: 1.2.1- dependencies:- '@gar/promise-retry': 1.0.3- '@npmcli/agent': 4.0.0- '@npmcli/redact': 4.0.0- cacache: 20.0.4- http-cache-semantics: 4.2.0- minipass: 7.1.3- minipass-fetch: 5.0.2- minipass-flush: 1.0.7- minipass-pipeline: 1.2.4- negotiator: 1.0.0- proc-log: 6.1.0- ssri: 13.0.1- transitivePeerDependencies:- - supports-color-@@ -4868,38 +4669,6 @@ snapshots:braces: 3.0.3picomatch: 2.3.2- dependencies:- brace-expansion: 5.0.5-- dependencies:- minipass: 7.1.3-- dependencies:- minipass: 7.1.3- minipass-sized: 2.0.0- minizlib: 3.1.0- optionalDependencies:- iconv-lite: 0.7.2-- dependencies:- minipass: 3.3.6-- dependencies:- minipass: 3.3.6-- dependencies:- minipass: 7.1.3-- dependencies:- yallist: 4.0.0-@@ -4917,36 +4686,30 @@ snapshots:- [email protected]: {}-- [email protected]: {}-dependencies:'@types/nlcst': 2.0.3- [email protected]: {}+ [email protected]: {}dependencies:env-paths: 2.2.1exponential-backoff: 3.1.3graceful-fs: 4.2.11- make-fetch-happen: 15.0.5nopt: 9.0.0proc-log: 6.1.0- semver: 7.7.4- tar: 7.5.13- tinyglobby: 0.2.15+ semver: 7.8.1+ tar: 7.5.15+ tinyglobby: 0.2.16+ undici: 6.25.0which: 6.0.1- transitivePeerDependencies:- - supports-color@@ -4966,25 +4729,31 @@ snapshots:dependencies:destr: 2.0.5node-fetch-native: 1.6.7- ufo: 1.6.3+ ufo: 1.6.4+ [email protected]: {}+dependencies:oniguruma-parser: 0.12.1regex: 6.1.0regex-recursion: 6.0.2+ dependencies:+ oniguruma-parser: 0.12.2+ regex: 6.1.0+ regex-recursion: 6.0.2+dependencies:yocto-queue: 1.2.2- [email protected]: {}-dependencies:eventemitter3: 5.0.4p-timeout: 7.0.1@@ -5028,11 +4797,6 @@ snapshots:- dependencies:- lru-cache: 11.3.2- minipass: 7.1.3-@@ -5072,9 +4836,9 @@ snapshots:picocolors: 1.1.1source-map-js: 1.2.1dependencies:- nanoid: 3.3.11+ nanoid: 3.3.12picocolors: 1.1.1source-map-js: 1.2.1@@ -5277,35 +5041,35 @@ snapshots:dependencies:'@types/estree': 1.0.8optionalDependencies:- '@rollup/rollup-android-arm-eabi': 4.60.1- '@rollup/rollup-android-arm64': 4.60.1- '@rollup/rollup-darwin-arm64': 4.60.1- '@rollup/rollup-darwin-x64': 4.60.1- '@rollup/rollup-freebsd-arm64': 4.60.1- '@rollup/rollup-freebsd-x64': 4.60.1- '@rollup/rollup-linux-arm-gnueabihf': 4.60.1- '@rollup/rollup-linux-arm-musleabihf': 4.60.1- '@rollup/rollup-linux-arm64-gnu': 4.60.1- '@rollup/rollup-linux-arm64-musl': 4.60.1- '@rollup/rollup-linux-loong64-gnu': 4.60.1- '@rollup/rollup-linux-loong64-musl': 4.60.1- '@rollup/rollup-linux-ppc64-gnu': 4.60.1- '@rollup/rollup-linux-ppc64-musl': 4.60.1- '@rollup/rollup-linux-riscv64-gnu': 4.60.1- '@rollup/rollup-linux-riscv64-musl': 4.60.1- '@rollup/rollup-linux-s390x-gnu': 4.60.1- '@rollup/rollup-linux-x64-gnu': 4.60.1- '@rollup/rollup-linux-x64-musl': 4.60.1- '@rollup/rollup-openbsd-x64': 4.60.1- '@rollup/rollup-openharmony-arm64': 4.60.1- '@rollup/rollup-win32-arm64-msvc': 4.60.1- '@rollup/rollup-win32-ia32-msvc': 4.60.1- '@rollup/rollup-win32-x64-gnu': 4.60.1- '@rollup/rollup-win32-x64-msvc': 4.60.1+ '@rollup/rollup-android-arm-eabi': 4.60.4+ '@rollup/rollup-android-arm64': 4.60.4+ '@rollup/rollup-darwin-arm64': 4.60.4+ '@rollup/rollup-darwin-x64': 4.60.4+ '@rollup/rollup-freebsd-arm64': 4.60.4+ '@rollup/rollup-freebsd-x64': 4.60.4+ '@rollup/rollup-linux-arm-gnueabihf': 4.60.4+ '@rollup/rollup-linux-arm-musleabihf': 4.60.4+ '@rollup/rollup-linux-arm64-gnu': 4.60.4+ '@rollup/rollup-linux-arm64-musl': 4.60.4+ '@rollup/rollup-linux-loong64-gnu': 4.60.4+ '@rollup/rollup-linux-loong64-musl': 4.60.4+ '@rollup/rollup-linux-ppc64-gnu': 4.60.4+ '@rollup/rollup-linux-ppc64-musl': 4.60.4+ '@rollup/rollup-linux-riscv64-gnu': 4.60.4+ '@rollup/rollup-linux-riscv64-musl': 4.60.4+ '@rollup/rollup-linux-s390x-gnu': 4.60.4+ '@rollup/rollup-linux-x64-gnu': 4.60.4+ '@rollup/rollup-linux-x64-musl': 4.60.4+ '@rollup/rollup-openbsd-x64': 4.60.4+ '@rollup/rollup-openharmony-arm64': 4.60.4+ '@rollup/rollup-win32-arm64-msvc': 4.60.4+ '@rollup/rollup-win32-ia32-msvc': 4.60.4+ '@rollup/rollup-win32-x64-gnu': 4.60.4+ '@rollup/rollup-win32-x64-msvc': 4.60.4fsevents: 2.3.3@@ -5323,6 +5087,8 @@ snapshots:+ [email protected]: {}+dependencies:'@img/colour': 1.1.0@@ -5365,6 +5131,17 @@ snapshots:'@shikijs/vscode-textmate': 10.0.2'@types/hast': 3.0.4+ dependencies:+ '@shikijs/core': 4.1.0+ '@shikijs/engine-javascript': 4.1.0+ '@shikijs/engine-oniguruma': 4.1.0+ '@shikijs/langs': 4.1.0+ '@shikijs/themes': 4.1.0+ '@shikijs/types': 4.1.0+ '@shikijs/vscode-textmate': 10.0.2+ '@types/hast': 3.0.4+@@ -5374,37 +5151,18 @@ snapshots:arg: 5.0.2sax: 1.6.0- [email protected]: {}-- dependencies:- agent-base: 7.1.4- debug: 4.4.3- socks: 2.8.7- transitivePeerDependencies:- - supports-color-- dependencies:- ip-address: 10.1.0- smart-buffer: 4.2.0-+ [email protected](@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])))([email protected](@types/[email protected])([email protected])([email protected])([email protected])):dependencies:- minipass: 7.1.3-- [email protected](@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])))([email protected](@types/[email protected])([email protected])([email protected])([email protected])):- dependencies:- '@ascorbic/loader-utils': 1.0.2([email protected](@types/[email protected])([email protected])([email protected])([email protected]))- '@astrojs/starlight': 0.39.2([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ '@ascorbic/loader-utils': 1.0.2([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ '@astrojs/starlight': 0.39.2([email protected](@types/[email protected])([email protected])([email protected])([email protected]))github-slugger: 2.0.0mdast-util-from-markdown: 2.0.3mdast-util-to-markdown: 2.1.2@@ -5414,16 +5172,16 @@ snapshots:- astro- supports-color- [email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected]))):+ [email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected]))):dependencies:- starlight-markdown: 0.1.5([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ starlight-markdown: 0.1.5([email protected](@types/[email protected])([email protected])([email protected])([email protected]))- [email protected](@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])))([email protected](@types/[email protected])([email protected])([email protected])([email protected])):+ [email protected](@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])))([email protected](@types/[email protected])([email protected])([email protected])([email protected])):dependencies:- '@astrojs/starlight': 0.39.2([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ '@astrojs/starlight': 0.39.2([email protected](@types/[email protected])([email protected])([email protected])([email protected]))'@types/picomatch': 4.0.3github-slugger: 2.0.0hast-util-from-html: 2.0.3is-absolute-url: 5.0.0@@ -5436,13 +5194,13 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected](@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])))([email protected](@types/[email protected])([email protected])([email protected])([email protected])):+ [email protected](@astrojs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])))([email protected](@types/[email protected])([email protected])([email protected])([email protected])):dependencies:- '@astrojs/mdx': 5.0.3([email protected](@types/[email protected])([email protected])([email protected])([email protected]))- '@astrojs/starlight': 0.39.2([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ '@astrojs/mdx': 5.0.6([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ '@astrojs/starlight': 0.39.2([email protected](@types/[email protected])([email protected])([email protected])([email protected]))'@types/hast': 3.0.4'@types/micromatch': 4.0.10github-slugger: 2.0.0hast-util-select: 6.0.4micromatch: 4.0.8@@ -5455,9 +5213,9 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])):+ [email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])):dependencies:@@ -5493,7 +5251,7 @@ snapshots:picocolors: 1.1.1sax: 1.6.0dependencies:'@isaacs/fs-minipass': 4.0.1chownr: 3.0.0@@ -5512,7 +5270,9 @@ snapshots:+ [email protected]: {}+dependencies:fdir: 6.5.0([email protected])picomatch: 4.0.4@@ -5534,12 +5294,16 @@ snapshots:+ [email protected]: {}++ [email protected]: {}+dependencies:'@types/unist': 3.0.3@@ -5614,10 +5378,10 @@ snapshots:chokidar: 5.0.0destr: 2.0.5h3: 1.15.11- lru-cache: 11.3.2+ lru-cache: 11.5.0node-fetch-native: 1.6.7ofetch: 1.5.1- ufo: 1.6.3+ ufo: 1.6.4@@ -5638,23 +5402,23 @@ snapshots:'@types/unist': 3.0.3vfile-message: 4.0.3dependencies:esbuild: 0.27.7fdir: 6.5.0([email protected])picomatch: 4.0.4- postcss: 8.5.8- rollup: 4.60.1- tinyglobby: 0.2.15+ postcss: 8.5.15+ rollup: 4.60.4+ tinyglobby: 0.2.16optionalDependencies:'@types/node': 24.12.3fsevents: 2.3.3jiti: 2.6.1yaml: 2.9.0- [email protected]([email protected](@types/[email protected])([email protected])([email protected])):+ [email protected]([email protected](@types/[email protected])([email protected])([email protected])):optionalDependencies:@@ -5666,8 +5430,6 @@ snapshots:- [email protected]: {}-@@ -5676,8 +5438,6 @@ snapshots:- [email protected]: {}-diff --git a/docs/public/coverimage.png b/docs/public/coverimage.pngnew file mode 100644index 0000000000..6586d8ba73Binary files /dev/null and b/docs/public/coverimage.png differdiff --git a/docs/scripts/validate-redirect-targets.mjs b/docs/scripts/validate-redirect-targets.mjsnew file mode 100644index 0000000000..1ec6e7f089--- /dev/null+++ b/docs/scripts/validate-redirect-targets.mjs@@ -0,0 +1,65 @@+import { existsSync, readdirSync, readFileSync, statSync } from 'node:fs';+import { dirname, join, relative } from 'node:path';+import { fileURLToPath } from 'node:url';++const docsRoot = join(dirname(fileURLToPath(import.meta.url)), '..');+const contentRoot = join(docsRoot, 'src', 'content', 'docs');+const redirectsFile = join(docsRoot, 'src', 'config', 'redirects.ts');++const normalizeRoute = (route) => {+ const normalized = route+ .replace(/^\/+|\/+$/g, '')+ .split('/')+ .filter(Boolean)+ .map((segment) => segment.toLowerCase().replaceAll(' ', '-'))+ .join('/');++ return normalized ? `/${normalized}` : '/';+};++const collectDocsRoutes = (dir, routes = new Set()) => {+ for (const entry of readdirSync(dir)) {+ const entryPath = join(dir, entry);+ const stats = statSync(entryPath);++ if (stats.isDirectory()) {+ collectDocsRoutes(entryPath, routes);+ continue;+ }++ if (!entry.endsWith('.md') && !entry.endsWith('.mdx')) {+ continue;+ }++ const relativePath = relative(contentRoot, entryPath).replace(/\\/g, '/').replace(/\.mdx?$/, '');+ const route = relativePath.endsWith('/index') ? relativePath.slice(0, -'/index'.length) : relativePath;+ routes.add(normalizeRoute(route));++ const segments = route.split('/').filter(Boolean);+ for (let index = 1; index < segments.length; index++) {+ routes.add(normalizeRoute(segments.slice(0, index).join('/')));+ }+ }++ return routes;+};++if (!existsSync(contentRoot)) {+ throw new Error(`Docs content directory not found: ${contentRoot}`);+}++const redirectsSource = readFileSync(redirectsFile, 'utf8');+const redirectMatches = redirectsSource.matchAll(/^\s*['"]([^'"]+)['"]:\s*['"]([^'"]+)['"]/gm);+const redirectTargets = Array.from(redirectMatches, ([, from, to]) => ({ from, to }));+const docsRoutes = collectDocsRoutes(contentRoot);+const missingTargets = redirectTargets.filter(({ to }) => !docsRoutes.has(normalizeRoute(to)));++if (missingTargets.length > 0) {+ console.error('Redirect targets must resolve to generated docs routes:');+ for (const { from, to } of missingTargets) {+ console.error(` ${from} -> ${to}`);+ }+ process.exit(1);+}++console.log(`Validated ${redirectTargets.length} redirect targets.`);diff --git a/docs/src/assets/coverimage.png b/docs/src/assets/coverimage.pngnew file mode 100644index 0000000000..6586d8ba73Binary files /dev/null and b/docs/src/assets/coverimage.png differdiff --git a/docs/src/config/head.ts b/docs/src/config/head.tsnew file mode 100644index 0000000000..03fe1debd5--- /dev/null+++ b/docs/src/config/head.ts@@ -0,0 +1,79 @@+import type { StarlightUserConfig } from '@astrojs/starlight/types';++type HeadConfig = NonNullable<StarlightUserConfig['head']>;++type CreateHeadConfigParams = {+ base: string;+ enableAnalytics: boolean;+ isGhPages: boolean;+ site: string;+};++const plausibleScriptUrl =+ 'https://plausible.tracking.events/js/pa-BHcumuOemKz4XIQeWkTn4.js';+const plausibleInitScript =+ 'window.plausible=window.plausible||function(){(plausible.q=plausible.q||[]).push(arguments)},plausible.init=plausible.init||function(i){plausible.o=i||{}};plausible.init()';++function createHeadConfig({+ base,+ enableAnalytics,+ isGhPages,+ site,+}: CreateHeadConfigParams): HeadConfig {+ const coverImageUrl = new URL(`${base}/coverimage.png`, site).toString();++ return [+ {+ tag: 'meta',+ attrs: {+ property: 'og:image',+ content: coverImageUrl,+ },+ },+ {+ tag: 'meta',+ attrs: {+ property: 'og:image:width',+ content: '1200',+ },+ },+ {+ tag: 'meta',+ attrs: {+ property: 'og:image:height',+ content: '630',+ },+ },+ {+ tag: 'meta',+ attrs: {+ name: 'twitter:card',+ content: 'summary_large_image',+ },+ },+ {+ tag: 'meta',+ attrs: {+ name: 'twitter:image',+ content: coverImageUrl,+ },+ },+ ...(enableAnalytics && !isGhPages+ ? ([+ {+ tag: 'script',+ attrs: {+ async: true,+ src: plausibleScriptUrl,+ },+ },+ {+ tag: 'script',+ content: plausibleInitScript,+ },+ ] satisfies HeadConfig)+ : []),+ ] satisfies HeadConfig;+}++export { createHeadConfig };diff --git a/docs/src/config/index.ts b/docs/src/config/index.tsnew file mode 100644index 0000000000..6fdc64bfb2--- /dev/null+++ b/docs/src/config/index.ts@@ -0,0 +1,4 @@+export * from './head';+export * from './redirects';+export * from './sidebar';+export * from './social';diff --git a/docs/src/config/redirects.ts b/docs/src/config/redirects.tsnew file mode 100644index 0000000000..8c2b3e69c7--- /dev/null+++ b/docs/src/config/redirects.ts@@ -0,0 +1,55 @@+import type { AstroConfig } from 'astro';++type RedirectsConfig = AstroConfig['redirects'];++const redirects: RedirectsConfig = {+ '/CODE_OF_CONDUCT': '/contributing/code-of-conduct',+ '/RELEASE': '/development/process/release-process',+ '/installation': '/start-here/installation',+ '/installation/docker': '/configuration/docker',+ '/installation/manual': '/start-here/manual',+ '/installation/models': '/concepts/models',+ '/installation/patchmatch': '/configuration/patchmatch',+ '/installation/quick_start': '/start-here/installation',+ '/installation/requirements': '/start-here/system-requirements',+ '/configuration': '/configuration/invokeai-yaml',+ '/features/low-vram/': '/configuration/low-vram-mode/',+ '/features/lasso-tool': '/features/canvas/lasso-tool',+ '/features/shapes-tool': '/features/canvas/shapes-tool',+ '/faq': '/troubleshooting/faq',+ '/help/SAMPLER_CONVERGENCE': '/concepts/parameters',+ '/help/diffusion': '/concepts/diffusion',+ '/help/gettingStartedWithAI': '/concepts/image-generation',+ '/nodes/NODES': '/features/workflows/editor-interface',+ '/nodes/NODES_MIGRATION_V3_V4': '/development/guides/api-development',+ '/nodes/comfyToInvoke': '/features/workflows/comfyui-migration',+ '/nodes/communityNodes': '/features/workflows/community-nodes',+ '/nodes/contributingNodes': '/development/guides/creating-nodes',+ '/nodes/detailedNodes/faceTools': '/features/workflows/face-tools',+ '/nodes/invocation-api': '/development/guides/api-development',+ '/contributing/ARCHITECTURE': '/development/architecture/overview',+ '/contributing/DOWNLOAD_QUEUE': '/development/architecture/model-manager',+ '/contributing/HOTKEYS': '/features/hotkeys',+ '/contributing/INVOCATIONS': '/development/architecture/invocations',+ '/contributing/LOCAL_DEVELOPMENT': '/development/setup/dev-environment',+ '/contributing/MODEL_MANAGER': '/development/architecture/model-manager',+ '/contributing/NEW_MODEL_INTEGRATION': '/development/guides/models',+ '/contributing/PR-MERGE-POLICY': '/development/process/pr-merge-policy',+ '/contributing/TESTS': '/development/guides/tests',+ '/contributing/contribution_guides/development': '/development',+ '/contributing/contribution_guides/newContributorChecklist':+ '/contributing/new-contributor-guide',+ '/contributing/dev-environment': '/development/setup/dev-environment',+ '/contributing/frontend': '/development/front-end',+ '/contributing/frontend/state-management':+ '/development/front-end/state-management',+ '/contributing/frontend/workflows': '/development/front-end/workflows',+};++function createRedirects(base: string): RedirectsConfig {+ return Object.fromEntries(+ Object.entries(redirects).map(([from, to]) => [from, base + to]),+ );+}++export { createRedirects };diff --git a/docs/src/config/sidebar.ts b/docs/src/config/sidebar.tsnew file mode 100644index 0000000000..7d85c5d2e1--- /dev/null+++ b/docs/src/config/sidebar.ts@@ -0,0 +1,80 @@+import type { StarlightUserConfig } from '@astrojs/starlight/types';+import { makeChangelogsSidebarLinks } from 'starlight-changelogs';++type SidebarConfig = StarlightUserConfig['sidebar'];++const sidebar: SidebarConfig = [+ {+ label: 'Start Here',+ items: [+ {+ autogenerate: { directory: 'start-here' },+ },+ ],+ },+ {+ label: 'Configuration',+ items: [+ {+ autogenerate: { directory: 'configuration' },+ },+ ],+ },+ {+ label: 'Concepts',+ items: [+ {+ autogenerate: { directory: 'concepts' },+ },+ ],+ },+ {+ label: 'Features',+ items: [+ {+ autogenerate: { directory: 'features' },+ },+ ],+ },+ {+ label: 'Development',+ items: [+ {+ autogenerate: { directory: 'development', collapsed: true },+ },+ ],+ collapsed: true,+ },+ {+ label: 'Contributing',+ items: [+ {+ autogenerate: { directory: 'contributing' },+ },+ ],+ collapsed: true,+ },+ {+ label: 'Troubleshooting',+ items: [+ {+ autogenerate: { directory: 'troubleshooting' },+ },+ ],+ collapsed: true,+ },+ {+ label: 'Releases',+ collapsed: true,+ items: [+ ...makeChangelogsSidebarLinks([+ {+ type: 'recent',+ base: 'releases',+ },+ ]),+ ],+ },+];++export { sidebar as sidebarConfig };diff --git a/docs/src/config/social.ts b/docs/src/config/social.tsnew file mode 100644index 0000000000..8c7d416a00--- /dev/null+++ b/docs/src/config/social.ts@@ -0,0 +1,23 @@+import type { StarlightUserConfig } from '@astrojs/starlight/types';++type SocialConfig = StarlightUserConfig['social'];++const social: SocialConfig = [+ {+ icon: 'github',+ label: 'GitHub',+ href: 'https://github.com/invoke-ai/InvokeAI',+ },+ {+ icon: 'discord',+ label: 'Discord',+ href: 'https://discord.gg/ZmtBAhwWhy',+ },+ {+ icon: 'youtube',+ label: 'YouTube',+ href: 'https://www.youtube.com/@invokeai',+ },+];++export { social as socialConfig };diff --git a/docs/src/content/docs/concepts/models.mdx b/docs/src/content/docs/concepts/models.mdxindex d8c0089f0c..3ebdf27c78 100644--- a/docs/src/content/docs/concepts/models.mdx+++ b/docs/src/content/docs/concepts/models.mdx@@ -82,6 +82,25 @@ If a model file is deleted or moved outside the Model Manager, its database entrOrphaned models are automatically excluded from selection dropdowns (main model, LoRA, VAE, etc.), so you cannot accidentally pick one for generation. Use the [bulk delete action](#bulk-actions-in-the-model-manager) to clean them out in one step.+## Synchronizing orphaned model directories++The **Missing Files** filter finds database records whose files are gone. InvokeAI also has a separate sync workflow for the opposite situation: model directories that still exist on disk but are not referenced in the database.++This can happen after a failed import, a manual database edit, or deleting a model record while leaving files behind. The sync workflow scans the models directory for top-level folders containing model files with common model extensions, including `.safetensors`, `.ckpt`, `.pt`, `.pth`, `.bin`, `.onnx`, and `.gguf`.++To review these directories:++1. In multi-user mode, sign in as an administrator. In single-user mode, the Model Manager controls are available by default.+2. Open the Model Manager.+3. Click **Sync Models** to scan for orphaned model directories.+4. Review each reported relative directory path, contained model files, and total size before deleting anything.++:::caution[Deletion removes directories]+Deleting an orphaned model directory removes the entire reported directory from disk. The server deletes it directly with recursive directory deletion, so make sure the directory contains only files you intend to remove.+:::++Only administrators can use this workflow in multi-user mode. The underlying API is `/api/v2/models/sync/orphaned`; API results also include the absolute path for each reported directory.+## Exporting and Importing Model SettingsEach installed model has an **Export Settings** and **Import Settings** action in the Model Manager. Use these to back up a model's configuration, move it to another install, or share a curated setup with someone else.diff --git a/docs/src/content/docs/development/Documentation/index.mdx b/docs/src/content/docs/development/Documentation/index.mdxnew file mode 100644index 0000000000..ae8b5248c1--- /dev/null+++ b/docs/src/content/docs/development/Documentation/index.mdx@@ -0,0 +1,314 @@+---+title: Documentation+lastUpdated: 2026-05-14+---++import { Steps, Tabs, TabItem, FileTree } from '@astrojs/starlight/components'++The Invoke AI website, including its documentation are all contained within the `docs` directory.++## Prerequisites++The documentation is built using [Astro Starlight](https://starlight.astro.build/). It's suggested you familiarize yourself with the following technologies before getting started:++<Steps>+ 1. [Markdown](https://www.markdownguide.org/) - a lightweight markup language for creating formatted text.+ 2. [MDX](https://mdxjs.com/) - a superset of Markdown that allows you to use React components in your content.+ 3. [Astro](https://astro.build/) - a modern static site builder that supports MDX and other front-end technologies.+ 4. [Starlight](https://starlight.astro.build/) - a theme for Astro that provides a clean and modern documentation experience.+ 5. [Vite](https://vitejs.dev/) - a fast development server and build tool for modern web projects.+</Steps>++Markdown powers the content of every page on the website (including the homepage), with additional help from [MDX](https://mdxjs.com/) to make the pages more interactive with imported React components.++## Navigating the Documentation++The documentation is organized into a file tree structure. It should be very familiar to anyone who has built modern web applications.++<FileTree>+ - docs/+ - dist/ production build output+ - public/ non-optimized, public assets+ - src/ main source code+ - assets/ optimized assets+ - config/ astro/starlight configs+ - content/ markdown pages and content+ - docs/ documentation content+ - i18n/ internationalized content+ - generated/ generated json files for dynamic content+ - layouts/ components used to wrap pages+ - lib/ utility functions and shared code+ - components/ reusable, custom components+ - pages/ non-documentation pages+ - styles/ global styles and themes+</FileTree>++## Development++If you've ever worked within a react, astro or similar node-based library or framework, you should feel familiar with most of the setup here.++If you're adding a feature, new behavior or etc. that changes how users expect Invoke to work, we expect you to deliver your PR with associated docs to support it. To get started, follow the steps below.++### Dev Environment++There are 2 main ways to get your development environment set up for documentation:++<Tabs syncKey="docsDevMethod">+ <TabItem label="Make">+ Invoke's makefile makes it easy to set up your development environment for documentation in only a couple of commands. You can run these from the root of the repository.++ <Steps>+ 1. First, install the required dependencies.++ ```sh+ make docs-install+ ```++ 2. Next, run the development server.++ ```sh+ make docs-dev+ ```++ 3. Open your browser and navigate to `http://localhost:4321` to view the documentation.+ </Steps>+ </TabItem>++ <TabItem label="Manual">+ If you prefer good ol' fashioned `cd` and `pnpm` commands, you can set up your development environment manually.++ <Steps>+ 1. First, cd into the docs directory.++ ```sh+ cd docs+ ```++ 2. Next, install the required dependencies.++ ```sh+ pnpm install+ ```++ 3. Run the development server.++ ```sh+ pnpm dev+ ```++ 4. Open your browser and navigate to `http://localhost:4321` to view the documentation.+ </Steps>+ </TabItem>+</Tabs>++If there's another local server running on port `4321` prior to running this, then use the port specified in the output.++### Adding Pages++Located within the `src/content/docs/` directory, this is where the documentation pages are stored and organized by category. These categories are file-based and are mirrored to the sidebar navigation.++:::caution+Do not place your docs content contributions outside of the `content` directory, it will not be seen.+:::++If you wish to add a new sub category to document a feature or a behavior, simply create a new directory within the relevant top-level category directory.++For example, if we wanted to document a new feature called "Instant Bananas", we would create a new directory within `src/content/docs/features/` like so:++`src/content/docs/`+<FileTree>+ - concepts/+ - configuration/+ - contributing/+ - development/+ - features/+ - **instant-bananas/**+ - **index.md** Write your documentation here+ - **requirements.mdx** You can add more pages in this directory+ - start-here/+ - troubleshooting/+ - workflows/+</FileTree>++The way you organize your added pages dictates how the URL structure is generated for your documentation pages. In this example, the url for the `index.md` page would be `https://invoke.ai/features/instant-bananas/`, and the url for the `requirements.mdx` page would be `https://invoke.ai/features/instant-bananas/requirements/`.++If you wish to add a top-level category, then one additional step is required for the category to appear in the sidebar.++Within the `src/config/sidebar.ts` file, you'll need to add a new sidebar category object to the array, since the fine-grained control over top-level categories needs to be a bit more explicit.++```diff lang="js"+const sidebar = [+ // ...+ {+ label: 'Concepts',+ items: [+ {+ autogenerate: { directory: 'concepts' },+ },+ ],+ },++ {++ label: 'A New Category',++ items: [++ {++ autogenerate: { directory: 'new-category' },++ },++ ],++ },+ {+ label: 'Features',+ items: [+ {+ autogenerate: { directory: 'features' },+ },+ ],+ },+ // ...+]+```++### Page Metadata++Before your page becomes available, you will need to add frontmatter to define the page's metadata such as its title, description, last update date, sidebar position, and etc.++Learn more about what frontmatter is and how to use it in your pages in the [Starlight Documentation](https://starlight.astro.build/reference/frontmatter/).++Once you have some basic frontmatter defined, you should be able to see it reflected in the sidebar and the page title.++### Adding Images++We encourage adding imagery to your docs for creating a more engaging and visual experience for viewers. To add images, we prefer you to utilize an `assets` directory within the concerning category.++<FileTree>+ - features/+ - instant-bananas/+ - **assets/**+ - **demonstration.webp**+ - **foobar.avif**+ - index.mdx+</FileTree>++The Astro image optimizer/renderer is quite flexible with image formats and sizes, but we'd prefer stored images to be at reasonable sizes (not 4k), and using optimized formats (webp, avif, jpeg).++To render the image, you'd just use a relative path in your markdown.++```md title="index.mdx"++```++### Adding Translations++Currently, the documentation is only available in English. If you wish to add translations for other languages, we've already laid the ground work for you to do so.++Firstly, add a new folder within the `src/content/i18n` directory, and create your translated version of the markdown file into the same path as the original.++For example:++<FileTree>+ - src/+ - content/+ - docs/+ - start-here/+ - installation.mdx+ - i18n/+ - zh-CN Country code here+ - start-here/+ - installation.mdx+</FileTree>++We recommend simply copy/pasting the file and rewriting the text from there.++Learn more about the intricacies of translating Astro Starlight docs [here](https://starlight.astro.build/guides/i18n).++## Running a Build++Modifications to the docs may run fine on your machine, but as we've learned the hard way, GitHub pages flips that expectation completely. So, we've added some ways to ensure things work as expected before deploying.++Just like with the dev environment, you can build the docs one of two ways:++<Tabs syncKey="docsDevMethod">+ <TabItem label="Make">+ Invoke's makefile makes it easy to build the documentation in only a single command. You can run it from the root of the repository.++ <Steps>+ 1. First, run the build command.++ ```sh+ make docs-build+ ```++ 2. Finally, preview the output.++ ```sh+ make docs-preview+ ```+ </Steps>++ And that's it.++ :::tip[Deploy Target]+ The make command here sets the `DEPLOY_TARGET` environment variable to `custom`, so that the final output matches what you'd expect from the final deployment to https://invoke.ai.++ If you'd rather set a different deploy target, use the manual method.+ :::++ </TabItem>+ <TabItem label="Manual">+ If you prefer good ol' fashioned `cd` and `pnpm` commands, or to have granular control over environment variables, you can run the following:++ <Steps>+ 1. First, cd into the `docs` directory.++ ```sh+ cd docs+ ```++ 2. Next run the build command.++ ```sh+ pnpm run build+ ```++ 3. Finally, preview the build.++ ```sh+ pnpm run preview+ ```++ The preview url will be available on the same port as the dev server.+ </Steps>++ </TabItem>+</Tabs>++## Generated Files++The Invoke API is always evolving, and quite large. Documenting all this by hand would be wildly impractical, so there's a script we've set up to pull all that data and generate relevant json files into `generated` directory.++These files are used for the [YAML Config](/configuration/invokeai-yaml) and [API Development](/development/guides/api-development) pages. If you're adding a feature that changes the yaml config, or the api then make sure to run `pnpm run generate-docs-data` to ensure tests pass, and that the docs are accurate in accordance to your updates.++## Testing++The docs contain tests for the following:++| Test | Description | Runs on... |+| -- | -- | -- |+| Link Checker | Checks for invalid, malformed or misdirected internal link URLs | Dev Server, Build, Deploy |+| Verify Deployment Output | Check to ensure the asset and page paths have the expected base paths dependent on deploy targets | Build, Deploy |+| Check Docs Data | Checks to ensure the generated files are accurate | Deploy |++## GitHub Actions++Once you've submitted your updated docs, either via pull request or a main push to your own fork, the `deploy-docs` action will run.++The `deploy-docs` action will install the necessary dependencies, run a build, test and serve the docs on github pages. Any failing deployments will require fixing before deploying.++## Troubleshooting++#### All the styles are missing and the links are wrong, what happened?++This commonly happens when the base path and the deploy target are mismatched, check those first and then run your build again.++#### Redirects aren't working on the production deployment, but they work locally, why?++Because GitHub Pages' SSR environment is lackluster, and thus doesn't handle backend redirects. We included a redirects configuration just in case GitHub ever grows a conscience, or if the docs ever get deployed someplace else.diff --git a/docs/src/content/docs/development/Front End/canvas-projects.mdx b/docs/src/content/docs/development/Front End/canvas-projects.mdxnew file mode 100644index 0000000000..b36c2ce972--- /dev/null+++ b/docs/src/content/docs/development/Front End/canvas-projects.mdx@@ -0,0 +1,54 @@+---+title: Canvas Projects+---++Canvas projects serialize the current canvas into a portable `.invk` archive. The feature lives in `invokeai/frontend/web/src/features/controlLayers/` and is exposed in the canvas toolbar archive menu and the canvas context menu under **Project**.++## File format++`.invk` files are ZIP archives. The current manifest version is `1`.++Each archive contains:++| Target | Description |+| - | - |+| `manifest.json` | project metadata, including the archive version, app version, creation timestamp, and project name. |+| `canvas_state.json` | raster layers, control layers, inpaint masks, regional guidance, bounding box state, and selected/bookmarked entity identifiers. |+| `params.json` | generation parameter state. |+| `ref_images.json` | global reference image state. |+| `loras.json` | active LoRA state. |+| `images/` | image blobs referenced by the canvas or reference image state. |++The save path builds this archive in `useCanvasProjectSave.ts`. It collects all referenced `image_name` values, fetches each image from the server, writes successfully fetched files under `images/`, and downloads the ZIP with the `.invk` extension. Failed image fetches are logged and skipped rather than aborting the save.++## Image collection++Image references are collected by `collectImageNames()` in `canvasProjectFile.ts`.++The collector checks:++- Image objects in raster layers.+- Image objects in control layers.+- Image objects in inpaint masks.+- Image objects and IP Adapter / Flux Redux reference images in regional guidance.+- Global reference images, including cropped source images.++Image fetches are concurrency-limited with `processWithConcurrencyLimit()` so large projects do not flood the browser or backend with simultaneous requests.++## Loading and remapping++The load path is implemented in `useCanvasProjectLoad.ts`.++Loading validates `manifest.json`, requires `canvas_state.json`, and reads optional `params.json`, `ref_images.json`, and `loras.json` files. Before restoring state, it checks whether each referenced image already exists on the server with `checkExistingImages()`.++Only missing images are uploaded from the archive. If a referenced missing image is not present in `images/`, the loader logs a warning and leaves that reference unchanged. If an upload returns a different `image_name`, the loader records an old-to-new mapping and remaps image references before dispatching restored canvas and reference image state.++LoRAs are cleared before project LoRAs are recalled. This prevents LoRAs from the previous canvas session from leaking into the loaded project.++Image existence checks and uploads are also concurrency-limited.++## Compatibility notes++The archive stores references to models, LoRAs, and other generation resources, not the model files themselves. Loading a project on another install can restore the canvas images and state, but missing model resources still need to be installed or replaced by the user.++Future format changes should increment `CANVAS_PROJECT_VERSION` and keep validation in `parseManifest()` explicit so unsupported project files fail early.diff --git a/docs/nodes/creatingNodePack.md b/docs/src/content/docs/development/Guides/creating-node-pack.mdxsimilarity index 84%rename from docs/nodes/creatingNodePack.mdrename to docs/src/content/docs/development/Guides/creating-node-pack.mdxindex 7dc7c8824a..01a51afbcb 100644--- a/docs/nodes/creatingNodePack.md+++ b/docs/src/content/docs/development/Guides/creating-node-pack.mdx@@ -1,4 +1,9 @@-# Creating a Node Pack for the Custom Node Manager+---+title: Creating Node Packs+lastUpdated: 2026-05-23+---++import { FileTree } from '@astrojs/starlight/components'This guide explains how to structure your Git repository so it can be installed via InvokeAI's Custom Node Manager.@@ -8,35 +13,35 @@ Your repository **is** the node pack. When a user installs it, the entire repo i### Minimum Required Structure-```-my-node-pack/-├── __init__.py # Required: imports your node classes-├── my_node.py # Your node implementation(s)-└── README.md # Recommended: describe your nodes-```+<FileTree>+ - my-node-pack/+ - `__init__.py` Required: Imports all node classes+ - my_node.py Your node implementation(s)+ - README.md Recommended: Describe how your nodes work+</FileTree>The `__init__.py` at the root is **mandatory**. Without it, the pack will not be loaded.### Recommended Structure-```-my-node-pack/-├── __init__.py # Imports all node classes-├── requirements.txt # Python dependencies (user-installed)-├── README.md # Description, usage, examples-├── node_one.py # Node implementation-├── node_two.py # Node implementation-├── utils.py # Shared utilities-└── workflows/ # Optional: workflow files- ├── example_workflow.json- └── advanced_workflow.json-```+<FileTree>+ - my-node-pack/+ - `__init__.py` Required: Imports all node classes+ - requirements.txt Python dependencies (user-installed)+ - README.md Description, usage & examples+ - node_one.py Node implementation+ - node_two.py Node implementation+ - utils.py Shared utilities+ - workflows/ Optional: Included workflow files+ - example_workflow.json+ - advanced_workflow.json+</FileTree>## The `__init__.py` FileThis file must import all invocation classes you want to register. Only classes imported here will be available in InvokeAI.-```python+```python title="__init__.py"from .node_one import MyFirstInvocationfrom .node_two import MySecondInvocation```@@ -52,7 +57,7 @@ from .nodes.text_tools import ConcatInvocationIf your nodes require additional Python packages, list them in a `requirements.txt` (or `pyproject.toml`) at the repository root:-```+```txt title="requirements.txt"numpy>=1.24opencv-python>=4.8```@@ -77,7 +82,7 @@ Imported workflows are automatically tagged with `node-pack:<your-repo-name>` soWorkflows should follow the standard InvokeAI workflow format:-```json+```json title="example_workflow.json"{"name": "My Example Workflow","author": "Your Name",@@ -102,17 +107,15 @@ Workflows should follow the standard InvokeAI workflow format:Each node is a Python class decorated with `@invocation()`. Here's a minimal example:-```python+```python title="example_node.py"from invokeai.app.invocations.baseinvocation import BaseInvocation, invocationfrom invokeai.app.invocations.fields import InputField, OutputFieldfrom invokeai.invocation_api import BaseInvocationOutput, invocation_output-@invocation_output("my_output")class MyOutput(BaseInvocationOutput):result: str = OutputField(description="The result")-@invocation("my_node",title="My Node",diff --git a/docs/src/content/docs/features/Canvas/canvas-projects.mdx b/docs/src/content/docs/features/Canvas/canvas-projects.mdxindex f0b5032e91..92c549abe2 100644--- a/docs/src/content/docs/features/Canvas/canvas-projects.mdx+++ b/docs/src/content/docs/features/Canvas/canvas-projects.mdx@@ -1,22 +1,24 @@----title: Canvas Projects (.invk files)+title: Canvas Projectssidebar:- order: 4+ badge: New+ order: 7---import { Steps } from '@astrojs/starlight/components';Canvas Projects let you save the entire state of a canvas — including all layers, masks, reference images, generation parameters, and LoRAs — into a single `.invk` file that you can reopen later or share with someone else.-`.invk` files are ZIP archives. They embed the actual image bytes for every layer and reference image, so a project is fully self-contained: opening it on another machine or after wiping the gallery still restores everything.+`.invk` files are ZIP archives. When saved images can be fetched successfully from the server, they embed the actual image bytes for every layer and reference image, so a project is self-contained: opening it on another machine or after wiping the gallery can restore those images.## Saving a project<Steps>1. Open the canvas and arrange your layers, masks, reference images, and parameters the way you want them.-2. From the menu, choose **File → Save Canvas Project**.-3. Optionally rename the project (the default is **Canvas Project**).-4. Save the `.invk` file to disk.+2. Open the archive menu in the canvas toolbar, or open the canvas context menu and choose **Project**.+3. Choose **Save Canvas Project**.+4. Optionally rename the project (the default is **Canvas Project**).+5. Save the `.invk` file to disk.</Steps>What gets saved:@@ -30,8 +32,9 @@ What gets saved:## Loading a project<Steps>-1. From the menu, choose **File → Load Canvas Project**.-2. Pick the `.invk` file.+1. Open the archive menu in the canvas toolbar, or open the canvas context menu and choose **Project**.+2. Choose **Load Canvas Project**.+3. Pick the `.invk` file.</Steps>When a project is loaded, the canvas is replaced with the project's state. LoRAs are reset first, then re-applied from the project, so opening a project never leaves stale LoRAs from your previous session attached.@@ -40,7 +43,7 @@ When a project is loaded, the canvas is replaced with the project's state. LoRAsLoading a project does **not** blindly re-upload every embedded image. Invoke compares each embedded image against what is already in your gallery and only uploads the images that are missing. Re-opening the same project a second time, or opening it shortly after saving it, is therefore very fast — most or all images will already be on the server.-This also means a project shared with another user will upload all its images the first time it is opened on that user's machine, then become nearly free to re-open after that.+This also means a project shared with another user will upload its missing embedded images the first time it is opened on that user's machine, then become nearly free to re-open after that.To keep the gallery responsive during large imports, image fetches and uploads are limited to a small number of concurrent requests.@@ -54,4 +57,4 @@ A `.invk` file is a canvas state snapshot. It does **not** contain:## Sharing projects-`.invk` files are safe to share directly. The recipient drops the file via **File → Load Canvas Project** on their own canvas. They'll need any referenced models / LoRAs installed locally; if a referenced model is missing, the parameter slot will be empty and they can pick a substitute before generating.+`.invk` files are safe to share directly. The recipient loads the file from the canvas toolbar archive menu or canvas context menu. They'll need any referenced models / LoRAs installed locally; if a referenced model is missing, the parameter slot will be empty and they can pick a substitute before generating.diff --git a/docs/src/content/docs/features/Workflows/comfyui-migration.mdx b/docs/src/content/docs/features/Workflows/comfyui-migration.mdxindex bb738d31a5..164a778925 100644--- a/docs/src/content/docs/features/Workflows/comfyui-migration.mdx+++ b/docs/src/content/docs/features/Workflows/comfyui-migration.mdx@@ -1,7 +1,6 @@----title: ComfyUI Migration Guide-sidebar:- label: ComfyUI Migration+title: ComfyUI Migration+lastUpdated: 2026-05-23---import { Card, CardGrid } from '@astrojs/starlight/components';diff --git a/docs/src/content/docs/features/Workflows/face-tools.mdx b/docs/src/content/docs/features/Workflows/face-tools.mdxnew file mode 100644index 0000000000..95959d158f--- /dev/null+++ b/docs/src/content/docs/features/Workflows/face-tools.mdx@@ -0,0 +1,94 @@+---+title: Face Tools Nodes+---++The Face Tools nodes detect faces with MediaPipe and provide utilities for identifying, masking, and extracting faces in workflows. The current nodes are in the `segmentation` category and use version `1.2.2`.++## FaceIdentifier++**FaceIdentifier** outputs a copy of the input image with detected face IDs printed on each face. Use it first when you need to target a specific face with FaceMask or FaceOff.++Face IDs are numbered from `0`. Detection order can change if the image changes, so run FaceIdentifier again after editing an image.++### Inputs++| Input | Description |+| --- | --- |+| Image | Image to face detect. |+| Minimum Confidence | Minimum confidence for face detection. Lower this if detection is failing. |+| Chunk | Bypass full-image face detection and use chunking. Chunking is also used automatically if no faces are found in the full image. |++### Outputs++| Output | Description |+| --- | --- |+| Image | The input image with face ID numbers drawn on detected faces. |+| Width | Output image width in pixels. |+| Height | Output image height in pixels. |++## FaceMask++**FaceMask** creates a mask for detected faces on the input image.++Leave **Face IDs** empty to mask all detected faces, or provide a comma-separated list such as `0,2,7` to target specific faces. Use FaceIdentifier to find the IDs.++The mask can be adjusted with X and Y offsets if detection is slightly too large or small. Enable **Invert Mask** to affect everything except the detected faces.++### Inputs++| Input | Description |+| --- | --- |+| Image | Image to face detect. |+| Face IDs | Comma-separated list of face IDs to mask. Leave empty to mask all detected faces. |+| Minimum Confidence | Minimum confidence for face detection. Lower this if detection is failing. |+| X Offset | Offset for the X-axis of the face mask. |+| Y Offset | Offset for the Y-axis of the face mask. |+| Chunk | Bypass full-image face detection and use chunking. Chunking is also used automatically if no faces are found in the full image. |+| Invert Mask | Toggle to invert the mask. |++### Outputs++| Output | Description |+| --- | --- |+| Image | The original image, converted to RGBA. |+| Width | Output image width in pixels. |+| Height | Output image height in pixels. |+| Mask | The generated face mask. |++## FaceOff++**FaceOff** extracts a single detected face into a bounded image and returns a matching mask plus paste coordinates. Use FaceIdentifier to find the face ID before targeting a specific face.++Padding expands the bounding box around the detected face. This gives downstream processing more context and increases the bounded image size while keeping the face in place within the crop.++### Inputs++| Input | Description |+| --- | --- |+| Image | Image for face detection. |+| Face ID | The face ID to process, numbered from `0`. Multiple faces are not supported. |+| Minimum Confidence | Minimum confidence for face detection. Lower this if detection is failing. |+| X Offset | X-axis offset of the mask. |+| Y Offset | Y-axis offset of the mask. |+| Padding | All-axis padding around the mask in pixels. |+| Chunk | Bypass full-image face detection and use chunking. Chunking is also used automatically if no faces are found in the full image. |++### Outputs++| Output | Description |+| --- | --- |+| Image | The bounded face image. If no face is found, the original image passes through. |+| Width | Output image width in pixels. |+| Height | Output image height in pixels. |+| Mask | Mask matching the bounded image. |+| X | X coordinate of the bounding box's left side. |+| Y | Y coordinate of the bounding box's top side. |++## Tips++- Use the same **Minimum Confidence** value in FaceIdentifier and the FaceMask or FaceOff node that consumes the IDs.+- Enable **Chunk** if not all target faces are detected. Full-image detection and chunked detection can produce different results.+- Lower **Minimum Confidence** when detection fails, but watch for false positives.+- Adjust X and Y offsets if the mask is too large, too small, or shifted.+- Add FaceOff padding when the extracted face needs more surrounding context.+- Face detection can fail on heavy face paint, hair covering the face, extreme angles, or other obstructions.diff --git a/docs/nodes/customNodeManager.md b/docs/src/content/docs/features/custom-node-manager.mdxsimilarity index 79%rename from docs/nodes/customNodeManager.mdrename to docs/src/content/docs/features/custom-node-manager.mdxindex 76a4b804a9..d91f4d8264 100644--- a/docs/nodes/customNodeManager.md+++ b/docs/src/content/docs/features/custom-node-manager.mdx@@ -1,4 +1,11 @@-# Custom Node Manager+---+title: Custom Node Manager+lastUpdated: 2026-05-23+sidebar:+ order: 4+---++import { Steps } from '@astrojs/starlight/components'The Custom Node Manager allows you to install, manage, and remove community node packs directly from the InvokeAI UI — no manual file copying required.@@ -8,10 +15,12 @@ Click the **Nodes** tab (circuit icon) in the left sidebar, between Models and Q## Installing a Node Pack-1. Navigate to the **Nodes** tab-2. On the right panel, select the **Git Repository URL** tab-3. Paste the Git URL of the node pack (e.g. `https://github.com/user/my-node-pack.git`)-4. Click **Install**+<Steps>+ 1. Navigate to the **Nodes** tab+ 2. On the right panel, select the **Git Repository URL** tab+ 3. Paste the Git URL of the node pack (e.g. `https://github.com/user/my-node-pack.git`)+ 4. Click **Install**+</Steps>The installer will:@@ -63,15 +72,19 @@ The **Scan Folder** tab shows the location of your nodes directory. Node packs p### Node pack fails to install-- Verify the Git URL is correct and accessible-- Check that the repository contains an `__init__.py` file at the top level-- Review the Install Log for error details+<Steps>+ 1. Verify the Git URL is correct and accessible+ 2. Check that the repository contains an `__init__.py` file at the top level+ 3. Review the Install Log for error details+</Steps>### Nodes don't appear after install-- Click the **Reload** button-- Check that the node pack's `__init__.py` imports its node classes-- Check the server console for error messages+<Steps>+ 1. Click the **Reload** button+ 2. Check that the node pack's `__init__.py` imports its node classes+ 3. Check the server console for error messages+</Steps>### Workflows show errors after uninstallingdiff --git a/docs/src/content/docs/features/gallery.mdx b/docs/src/content/docs/features/gallery.mdxindex 1d490b33d7..b48f3c1917 100644--- a/docs/src/content/docs/features/gallery.mdx+++ b/docs/src/content/docs/features/gallery.mdx@@ -3,7 +3,7 @@ title: Gallery Paneldescription: Learn how to manage, organize, and use your generated images and assets with the Gallery Panel in InvokeAI.lastUpdated: 2026-02-19sidebar:- order: 1+ order: 1---import { Card, CardGrid, Steps } from '@astrojs/starlight/components';diff --git a/docs/src/content/docs/features/prompt-tools.md b/docs/src/content/docs/features/prompt-tools.mdindex 988aeaa521..45bfd96170 100644--- a/docs/src/content/docs/features/prompt-tools.md+++ b/docs/src/content/docs/features/prompt-tools.md@@ -1,5 +1,8 @@---title: LLM Prompt Tools+sidebar:+ order: 3+lastUpdated: 2026-05-23---InvokeAI includes two built-in tools that use local language models to help you write better prompts. Both tools appear as small buttons in the top-right corner of the positive prompt area and are only visible when you have a compatible model installed.diff --git a/mkdocs.yml b/mkdocs.ymldeleted file mode 100644index 0307b0045b..0000000000--- a/mkdocs.yml+++ /dev/null@@ -1,183 +0,0 @@-# yaml-language-server: $schema=https://squidfunk.github.io/mkdocs-material/schema.json--# General-site_name: Invoke-site_url: https://invoke-ai.github.io/InvokeAI-site_author: mauwii-dev_addr: '127.0.0.1:8080'--# Repository-repo_name: 'invoke-ai/InvokeAI'-repo_url: 'https://github.com/invoke-ai/InvokeAI'-edit_uri: edit/main/docs-old/--# Copyright-copyright: Copyright © 2022-2024 InvokeAI Team--# Configuration-theme:- name: material- font:- text: 'Inter'- code: 'JetBrains Mono'- logo: img/invoke-symbol-wht-lrg.svg- icon:- repo: fontawesome/brands/github- edit: material/file-document-edit-outline- favicon: img/favicon.ico- palette:- scheme: slate- primary: black- features:- - navigation.instant- - navigation.tabs- - navigation.tabs.sticky- - navigation.tracking- - navigation.indexes- - navigation.path- - search.highlight- - search.suggest- - toc.integrate--# Extensions-markdown_extensions:- - abbr- - admonition- - attr_list- - def_list- - footnotes- - md_in_html- - toc:- permalink: '#'- - pymdownx.arithmatex:- generic: true- - pymdownx.betterem:- smart_enable: all- - pymdownx.caret- - pymdownx.details- - pymdownx.emoji:- emoji_index: !!python/name:material.extensions.emoji.twemoji- emoji_generator: !!python/name:material.extensions.emoji.to_svg- - pymdownx.highlight:- anchor_linenums: true- - pymdownx.inlinehilite- - pymdownx.keys- - pymdownx.magiclink:- repo_url_shorthand: true- user: 'invoke-ai'- repo: 'InvokeAI'- - pymdownx.mark- - pymdownx.smartsymbols- - pymdownx.superfences:- custom_fences:- - name: mermaid- class: mermaid- format: !!python/name:pymdownx.superfences.fence_code_format- - pymdownx.snippets- - pymdownx.tabbed:- alternate_style: true- - pymdownx.tasklist:- custom_checkbox: true- - pymdownx.tilde- - tables--plugins:- - search- - git-revision-date-localized:- enable_creation_date: true- - redirects:- redirect_maps:- 'installation/index.md': 'installation/quick_start.md'- 'installation/INSTALL_AUTOMATED.md': 'installation/quick_start.md'- 'installation/installer.md': 'installation/quick_start.md'- 'installation/INSTALL_MANUAL.md': 'installation/manual.md'- 'installation/INSTALL_SOURCE.md': 'installation/manual.md'- 'installation/INSTALL_DOCKER.md': 'installation/docker.md'- 'installation/INSTALLING_MODELS.md': 'installation/models.md'- 'installation/INSTALL_PATCHMATCH.md': 'installation/patchmatch.md'- 'installation/060_INSTALL_PATCHMATCH.md': 'installation/patchmatch.md'- - mkdocstrings:- handlers:- python:- options:- separate_signature: true- show_signature_annotations: true- parameter_headings: false- signature_crossrefs: true- show_source: false- summary: true- show_root_heading: true- show_root_full_path: false- show_bases: false--extra:- analytics:- provider: google- property: G-2X4JR4S4FB--nav:- - Home: 'index.md'- - Installation:- - Quick Start: 'installation/quick_start.md'- - Detailed Requirements: 'installation/requirements.md'- - Manual Install: 'installation/manual.md'- - Docker: 'installation/docker.md'- - PatchMatch: 'installation/patchmatch.md'- - Models: 'installation/models.md'- - Workflows & Nodes:- - Nodes Overview: 'nodes/overview.md'- - Workflow Editor Basics: 'nodes/NODES.md'- - List of Default Nodes: 'nodes/defaultNodes.md'- - Community Nodes: 'nodes/communityNodes.md'- - ComfyUI to InvokeAI: 'nodes/comfyToInvoke.md'- - Facetool Node: 'nodes/detailedNodes/faceTools.md'- - Contributing Nodes: 'nodes/contributingNodes.md'- - Migrating from v3 to v4: 'nodes/NODES_MIGRATION_V3_V4.md'- - Invocation API: 'nodes/invocation-api.md'- - Configuration: 'configuration.md'- - Features:- - LLM Prompt Tools: 'features/prompt-tools.md'- - New to InvokeAI?: 'help/gettingStartedWithAI.md'- - Low VRAM mode: 'features/low-vram.md'- - Database: 'features/database.md'- - Gallery: 'features/gallery.md'- - Hot Keys: 'features/hotkeys.md'- - External Models:- - Overview: 'features/external-models/index.md'- - Google Gemini: 'features/external-models/gemini.md'- - OpenAI: 'features/external-models/openai.md'- - BytePlus Seedream: 'features/external-models/seedream.md'- - Alibaba Cloud DashScope: 'features/external-models/alibabacloud.md'- - Multi-User Mode:- - User Guide: 'multiuser/user_guide.md'- - Administrator Guide: 'multiuser/admin_guide.md'- - API Guide: 'multiuser/api_guide.md'- - Specification: 'multiuser/specification.md'- - Contributing:- - Overview: 'contributing/index.md'- - Code of Conduct: 'CODE_OF_CONDUCT.md'- - Dev Environment: 'contributing/dev-environment.md'- - Development:- - Overview: 'contributing/contribution_guides/development.md'- - New Contributors: 'contributing/contribution_guides/newContributorChecklist.md'- - Model Manager v2: 'contributing/MODEL_MANAGER.md'- - Multiuser Mode: 'multiuser/specification.md'- - Local Development: 'contributing/LOCAL_DEVELOPMENT.md'- - System Architecture: 'contributing/ARCHITECTURE.md'- - Hotkeys: 'contributing/HOTKEYS.md'- - Testing: 'contributing/TESTS.md'- - Frontend:- - Overview: 'contributing/frontend/index.md'- - State Management: 'contributing/frontend/state-management.md'- - Workflows - Design and Implementation: 'contributing/frontend/workflows.md'- - Documentation: 'contributing/contribution_guides/documentation.md'- - Nodes: 'contributing/INVOCATIONS.md'- - Model Manager: 'contributing/MODEL_MANAGER.md'- - Download Queue: 'contributing/DOWNLOAD_QUEUE.md'- - Translation: 'contributing/contribution_guides/translation.md'- - Tutorials: 'contributing/contribution_guides/tutorials.md'- - Help:- - Getting Started: 'help/gettingStartedWithAI.md'- - Diffusion Overview: 'help/diffusion.md'- - Sampler Convergence: 'help/SAMPLER_CONVERGENCE.md'- - FAQ: 'faq.md'diff --git a/pyproject.toml b/pyproject.tomlindex 155471d906..57e741405f 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -102,12 +102,6 @@ dependencies = ["onnx-cuda" = ["onnxruntime-gpu"]"onnx-directml" = ["onnxruntime-directml"]"dist" = ["pip-tools", "pipdeptree", "twine"]-"docs" = [- "mkdocs-material>=9.5.36",- "mkdocs-git-revision-date-localized-plugin",- "mkdocs-redirects",- "mkdocstrings[python]>=0.26.1",-]"dev" = ["jurigged", "pudb", "snakeviz", "gprof2dot"]"test" = ["ruff~=0.11.2",diff --git a/scripts/update_config_docstring.py b/scripts/update_config_docstring.pydeleted file mode 100644index 081d03d62b..0000000000--- a/scripts/update_config_docstring.py+++ /dev/null@@ -1,82 +0,0 @@-import os-from typing import Literal, get_args, get_type_hints--from invokeai.app.services.config.config_default import InvokeAIAppConfig--_excluded = {"schema_version", "legacy_models_yaml_path"}---def generate_config_docstrings() -> str:- """Helper function for mkdocs. Generates a docstring for the InvokeAIAppConfig class.-- You shouldn't run this manually. Instead, run `scripts/update-config-docstring.py` to update the docstring.- A makefile target is also available: `make update-config-docstring`.-- See that script for more information about why this is necessary.- """- docstring = ' """Invoke\'s global app configuration.\n\n'- docstring += " Typically, you won't need to interact with this class directly. Instead, use the `get_config` function from `invokeai.app.services.config` to get a singleton config object.\n\n"- docstring += " Attributes:\n"-- field_descriptions: list[str] = []- type_hints = get_type_hints(InvokeAIAppConfig)-- for k, v in InvokeAIAppConfig.model_fields.items():- if v.exclude or k in _excluded:- continue- field_type = type_hints.get(k)- extra = ""- if getattr(field_type, "__origin__", None) is Literal:- # Get options for literals - the docs generator can't pull these out- options = [f"`{str(x)}`" for x in get_args(field_type)]- extra = f"<br>Valid values: {', '.join(options)}"- field_descriptions.append(f" {k}: {v.description}{extra}")-- docstring += "\n".join(field_descriptions)- docstring += '\n """'-- return docstring---# The pydantic app config can be documented automatically using mkdocs, but this requires that the docstring-# for the class is kept up to date. We use a pydantic model for the app config. Each config setting is a field-# with a `description` parameter. It is tedious to update both the description _and_ the docstring for the class.-#-# This script parses the pydantic model, generates a valid docstring and replaces the existing docstring in the file,-# so you don't need to worry about keeping the docstring up to date.-#-# A test is provided to ensure that the docstring is up to date. If the test fails, run this script.---def main():- # Change working directory to the repo root- os.chdir(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))-- docstring = generate_config_docstrings()-- # Replace the docstring in the file- with open("invokeai/app/services/config/config_default.py", "r") as f:- lines = f.readlines()-- # Find the class definition line- class_def_index = next(i for i, line in enumerate(lines) if "class InvokeAIAppConfig" in line)-- # Find the existing docstring start and end lines- docstring_start_index = next(i for i, line in enumerate(lines[class_def_index:]) if '"""' in line) + class_def_index- docstring_end_index = (- next(i for i, line in enumerate(lines[docstring_start_index + 1 :]) if '"""' in line)- + docstring_start_index- + 1- )-- # Replace the existing docstring with the new one, plus some line breaks in between. This _should_ result in a- # correctly-formatted file with no syntax errors.- lines = lines[:docstring_start_index] + [docstring, "\n"] + lines[docstring_end_index + 1 :]-- # Write the modified lines back to the file- with open("invokeai/app/services/config/config_default.py", "w") as f:- f.writelines(lines)---if __name__ == "__main__":- main()diff --git a/tests/test_docs.py b/tests/test_docs.pydeleted file mode 100644index e577c6bbfb..0000000000--- a/tests/test_docs.py+++ /dev/null@@ -1,17 +0,0 @@-from invokeai.app.services.config.config_default import InvokeAIAppConfig-from scripts.update_config_docstring import generate_config_docstrings---def test_app_config_docstrings_are_current():- # If this test fails, run `python scripts/update_config_docstring.py`. See the comments in that script for- # an explanation of why this is necessary.- #- # A make target is provided to run the script: `make update-config-docstring`.-- assert InvokeAIAppConfig.__doc__ is not None-- generated_docstring = generate_config_docstrings()-- formatted_dunder_docstring = f' """{InvokeAIAppConfig.__doc__.strip()}\n """'-- assert generated_docstring == formatted_dunder_docstringdiff --git a/uv.lock b/uv.lockindex ef0ad02217..f404527fe8 100644--- a/uv.lock+++ b/uv.lock@@ -122,15 +122,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/77/06/bb80f5f86020c4551da315d78b3ab75e8228f89f0162f2c3a819e407941a/attrs-25.3.0-py3-none-any.whl", hash = "sha256:427318ce031701fea540783410126f03899a97ffc6f61596ad581ac2e40e3bc3", size = 63815, upload-time = "2025-03-13T11:10:21.14Z" },]-[[package]]-name = "babel"-version = "2.17.0"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/7d/6b/d52e42361e1aa00709585ecc30b3f9684b3ab62530771402248b1b1d6240/babel-2.17.0.tar.gz", hash = "sha256:0c54cffb19f690cdcc52a3b50bcbf71e07a808d1c80d549f2459b9d2cf0afb9d", size = 9951852, upload-time = "2025-02-01T15:17:41.026Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/b7/b8/3fe70c75fe32afc4bb507f75563d39bc5642255d1d94f1f23604725780bf/babel-2.17.0-py3-none-any.whl", hash = "sha256:4d0b53093fdfb4b21c92b5213dba5a1b23885afa8383709427046b21c366e5f2", size = 10182537, upload-time = "2025-02-01T15:17:37.39Z" },-]-[[package]]name = "backports-tarfile"version = "1.2.0"@@ -140,18 +131,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/b9/fa/123043af240e49752f1c4bd24da5053b6bd00cad78c2be53c0d1e8b975bc/backports.tarfile-1.2.0-py3-none-any.whl", hash = "sha256:77e284d754527b01fb1e6fa8a1afe577858ebe4e9dad8919e34c862cb399bc34", size = 30181, upload-time = "2024-05-28T17:01:53.112Z" },]-[[package]]-name = "backrefs"-version = "5.9"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/eb/a7/312f673df6a79003279e1f55619abbe7daebbb87c17c976ddc0345c04c7b/backrefs-5.9.tar.gz", hash = "sha256:808548cb708d66b82ee231f962cb36faaf4f2baab032f2fbb783e9c2fdddaa59", size = 5765857, upload-time = "2025-06-22T19:34:13.97Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/19/4d/798dc1f30468134906575156c089c492cf79b5a5fd373f07fe26c4d046bf/backrefs-5.9-py310-none-any.whl", hash = "sha256:db8e8ba0e9de81fcd635f440deab5ae5f2591b54ac1ebe0550a2ca063488cd9f", size = 380267, upload-time = "2025-06-22T19:34:05.252Z" },- { url = "https://files.pythonhosted.org/packages/55/07/f0b3375bf0d06014e9787797e6b7cc02b38ac9ff9726ccfe834d94e9991e/backrefs-5.9-py311-none-any.whl", hash = "sha256:6907635edebbe9b2dc3de3a2befff44d74f30a4562adbb8b36f21252ea19c5cf", size = 392072, upload-time = "2025-06-22T19:34:06.743Z" },- { url = "https://files.pythonhosted.org/packages/9d/12/4f345407259dd60a0997107758ba3f221cf89a9b5a0f8ed5b961aef97253/backrefs-5.9-py312-none-any.whl", hash = "sha256:7fdf9771f63e6028d7fee7e0c497c81abda597ea45d6b8f89e8ad76994f5befa", size = 397947, upload-time = "2025-06-22T19:34:08.172Z" },- { url = "https://files.pythonhosted.org/packages/41/ff/392bff89415399a979be4a65357a41d92729ae8580a66073d8ec8d810f98/backrefs-5.9-py39-none-any.whl", hash = "sha256:f48ee18f6252b8f5777a22a00a09a85de0ca931658f1dd96d4406a34f3748c60", size = 380265, upload-time = "2025-06-22T19:34:12.405Z" },-]-[[package]]name = "bcrypt"version = "3.2.2"@@ -780,42 +759,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/fc/31/6a93a887617ee7deeaa602ca3d02d1c12a6cb8a742a695de5d128f5fa46a/gguf-0.17.1-py3-none-any.whl", hash = "sha256:7bc5aa7eeb1931f7d39b48fdc5b38fda6b294b9dca75cf607ac69557840a3943", size = 96224, upload-time = "2025-06-19T14:00:32.88Z" },]-[[package]]-name = "ghp-import"-version = "2.1.0"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "python-dateutil" },-]-sdist = { url = "https://files.pythonhosted.org/packages/d9/29/d40217cbe2f6b1359e00c6c307bb3fc876ba74068cbab3dde77f03ca0dc4/ghp-import-2.1.0.tar.gz", hash = "sha256:9c535c4c61193c2df8871222567d7fd7e5014d835f97dc7b7439069e2413d343", size = 10943, upload-time = "2022-05-02T15:47:16.11Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/f7/ec/67fbef5d497f86283db54c22eec6f6140243aae73265799baaaa19cd17fb/ghp_import-2.1.0-py3-none-any.whl", hash = "sha256:8337dd7b50877f163d4c0289bc1f1c7f127550241988d568c1db512c4324a619", size = 11034, upload-time = "2022-05-02T15:47:14.552Z" },-]--[[package]]-name = "gitdb"-version = "4.0.12"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "smmap" },-]-sdist = { url = "https://files.pythonhosted.org/packages/72/94/63b0fc47eb32792c7ba1fe1b694daec9a63620db1e313033d18140c2320a/gitdb-4.0.12.tar.gz", hash = "sha256:5ef71f855d191a3326fcfbc0d5da835f26b13fbcba60c32c21091c349ffdb571", size = 394684, upload-time = "2025-01-02T07:20:46.413Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/a0/61/5c78b91c3143ed5c14207f463aecfc8f9dbb5092fb2869baf37c273b2705/gitdb-4.0.12-py3-none-any.whl", hash = "sha256:67073e15955400952c6565cc3e707c554a4eea2e428946f7a4c162fab9bd9bcf", size = 62794, upload-time = "2025-01-02T07:20:43.624Z" },-]--[[package]]-name = "gitpython"-version = "3.1.44"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "gitdb" },-]-sdist = { url = "https://files.pythonhosted.org/packages/c0/89/37df0b71473153574a5cdef8f242de422a0f5d26d7a9e231e6f169b4ad14/gitpython-3.1.44.tar.gz", hash = "sha256:c87e30b26253bf5418b01b0660f818967f3c503193838337fe5e573331249269", size = 214196, upload-time = "2025-01-02T07:32:43.59Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/1d/9a/4114a9057db2f1462d5c8f8390ab7383925fe1ac012eaa42402ad65c2963/GitPython-3.1.44-py3-none-any.whl", hash = "sha256:9e0e10cda9bed1ee64bc9a6de50e7e38a9c9943241cd7f585f6df3ed28011110", size = 207599, upload-time = "2025-01-02T07:32:40.731Z" },-]-[[package]]name = "gprof2dot"version = "2025.4.14"@@ -825,18 +768,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/71/ed/89d760cb25279109b89eb52975a7b5479700d3114a2421ce735bfb2e7513/gprof2dot-2025.4.14-py3-none-any.whl", hash = "sha256:0742e4c0b4409a5e8777e739388a11e1ed3750be86895655312ea7c20bd0090e", size = 37555, upload-time = "2025-04-14T07:21:43.319Z" },]-[[package]]-name = "griffe"-version = "1.7.3"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "colorama" },-]-sdist = { url = "https://files.pythonhosted.org/packages/a9/3e/5aa9a61f7c3c47b0b52a1d930302992229d191bf4bc76447b324b731510a/griffe-1.7.3.tar.gz", hash = "sha256:52ee893c6a3a968b639ace8015bec9d36594961e156e23315c8e8e51401fa50b", size = 395137, upload-time = "2025-04-23T11:29:09.147Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/58/c6/5c20af38c2a57c15d87f7f38bee77d63c1d2a3689f74fefaf35915dd12b2/griffe-1.7.3-py3-none-any.whl", hash = "sha256:c6b3ee30c2f0f17f30bcdef5068d6ab7a2a4f1b8bf1a3e74b56fffd21e1c5f75", size = 129303, upload-time = "2025-04-23T11:29:07.145Z" },-]-[[package]]name = "h11"version = "0.16.0"@@ -1075,12 +1006,6 @@ dist = [{ name = "pipdeptree" },{ name = "twine" },]-docs = [- { name = "mkdocs-git-revision-date-localized-plugin" },- { name = "mkdocs-material" },- { name = "mkdocs-redirects" },- { name = "mkdocstrings", extra = ["python"] },-]onnx = [{ name = "onnxruntime" },]@@ -1136,10 +1061,6 @@ requires-dist = [{ name = "humanize", marker = "extra == 'test'", specifier = "==4.12.1" },{ name = "jurigged", marker = "extra == 'dev'" },{ name = "mediapipe", specifier = "==0.10.14" },- { name = "mkdocs-git-revision-date-localized-plugin", marker = "extra == 'docs'" },- { name = "mkdocs-material", marker = "extra == 'docs'", specifier = ">=9.5.36" },- { name = "mkdocs-redirects", marker = "extra == 'docs'" },- { name = "mkdocstrings", extras = ["python"], marker = "extra == 'docs'", specifier = ">=0.26.1" },{ name = "mypy", marker = "extra == 'test'" },{ name = "numpy", specifier = "<2.0.0" },{ name = "onnx", specifier = "==1.16.1" },@@ -1193,7 +1114,7 @@ requires-dist = [{ name = "uvicorn", extras = ["standard"] },{ name = "xformers", marker = "sys_platform != 'darwin' and extra == 'xformers'", specifier = ">=0.0.28.post1" },]-provides-extras = ["xformers", "cpu", "cuda", "rocm", "onnx", "onnx-cuda", "onnx-directml", "dist", "docs", "dev", "test"]+provides-extras = ["xformers", "cpu", "cuda", "rocm", "onnx", "onnx-cuda", "onnx-directml", "dist", "dev", "test"][[package]]name = "jaraco-classes"@@ -1405,15 +1326,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/8d/37/2351e48cb3309673492d3a8c59d407b75fb6630e560eb27ecd4da03adc9a/lsprotocol-2023.0.1-py3-none-any.whl", hash = "sha256:c75223c9e4af2f24272b14c6375787438279369236cd568f596d4951052a60f2", size = 70826, upload-time = "2024-01-09T17:21:14.491Z" },]-[[package]]-name = "markdown"-version = "3.8.2"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/d7/c2/4ab49206c17f75cb08d6311171f2d65798988db4360c4d1485bd0eedd67c/markdown-3.8.2.tar.gz", hash = "sha256:247b9a70dd12e27f67431ce62523e675b866d254f900c4fe75ce3dda62237c45", size = 362071, upload-time = "2025-06-19T17:12:44.483Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/96/2b/34cc11786bc00d0f04d0f5fdc3a2b1ae0b6239eef72d3d345805f9ad92a1/markdown-3.8.2-py3-none-any.whl", hash = "sha256:5c83764dbd4e00bdd94d85a19b8d55ccca20fe35b2e678a1422b380324dd5f24", size = 106827, upload-time = "2025-06-19T17:12:42.994Z" },-]-[[package]]name = "markdown-it-py"version = "3.0.0"@@ -1523,161 +1435,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/f0/26/d228fe6e9f2060dde7f7db738968bcd603e9340f064351655b5b2652a664/mediapipe-0.10.14-cp312-cp312-win_amd64.whl", hash = "sha256:ebb8350e860c8e00b7c84d71e15090fc3ac4cc9d4249892f85fb35011590e372", size = 50837898, upload-time = "2024-05-08T17:31:21.34Z" },]-[[package]]-name = "mergedeep"-version = "1.3.4"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/3a/41/580bb4006e3ed0361b8151a01d324fb03f420815446c7def45d02f74c270/mergedeep-1.3.4.tar.gz", hash = "sha256:0096d52e9dad9939c3d975a774666af186eda617e6ca84df4c94dec30004f2a8", size = 4661, upload-time = "2021-02-05T18:55:30.623Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/2c/19/04f9b178c2d8a15b076c8b5140708fa6ffc5601fb6f1e975537072df5b2a/mergedeep-1.3.4-py3-none-any.whl", hash = "sha256:70775750742b25c0d8f36c55aed03d24c3384d17c951b3175d898bd778ef0307", size = 6354, upload-time = "2021-02-05T18:55:29.583Z" },-]--[[package]]-name = "mkdocs"-version = "1.6.1"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "click" },- { name = "colorama", marker = "sys_platform == 'win32' or (extra == 'extra-8-invokeai-cpu' and extra == 'extra-8-invokeai-cuda') or (extra == 'extra-8-invokeai-cpu' and extra == 'extra-8-invokeai-rocm') or (extra == 'extra-8-invokeai-cuda' and extra == 'extra-8-invokeai-rocm')" },- { name = "ghp-import" },- { name = "jinja2" },- { name = "markdown" },- { name = "markupsafe" },- { name = "mergedeep" },- { name = "mkdocs-get-deps" },- { name = "packaging" },- { name = "pathspec" },- { name = "pyyaml" },- { name = "pyyaml-env-tag" },- { name = "watchdog" },-]-sdist = { url = "https://files.pythonhosted.org/packages/bc/c6/bbd4f061bd16b378247f12953ffcb04786a618ce5e904b8c5a01a0309061/mkdocs-1.6.1.tar.gz", hash = "sha256:7b432f01d928c084353ab39c57282f29f92136665bdd6abf7c1ec8d822ef86f2", size = 3889159, upload-time = "2024-08-30T12:24:06.899Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/22/5b/dbc6a8cddc9cfa9c4971d59fb12bb8d42e161b7e7f8cc89e49137c5b279c/mkdocs-1.6.1-py3-none-any.whl", hash = "sha256:db91759624d1647f3f34aa0c3f327dd2601beae39a366d6e064c03468d35c20e", size = 3864451, upload-time = "2024-08-30T12:24:05.054Z" },-]--[[package]]-name = "mkdocs-autorefs"-version = "1.4.2"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "markdown" },- { name = "markupsafe" },- { name = "mkdocs" },-]-sdist = { url = "https://files.pythonhosted.org/packages/47/0c/c9826f35b99c67fa3a7cddfa094c1a6c43fafde558c309c6e4403e5b37dc/mkdocs_autorefs-1.4.2.tar.gz", hash = "sha256:e2ebe1abd2b67d597ed19378c0fff84d73d1dbce411fce7a7cc6f161888b6749", size = 54961, upload-time = "2025-05-20T13:09:09.886Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/87/dc/fc063b78f4b769d1956319351704e23ebeba1e9e1d6a41b4b602325fd7e4/mkdocs_autorefs-1.4.2-py3-none-any.whl", hash = "sha256:83d6d777b66ec3c372a1aad4ae0cf77c243ba5bcda5bf0c6b8a2c5e7a3d89f13", size = 24969, upload-time = "2025-05-20T13:09:08.237Z" },-]--[[package]]-name = "mkdocs-get-deps"-version = "0.2.0"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "mergedeep" },- { name = "platformdirs" },- { name = "pyyaml" },-]-sdist = { url = "https://files.pythonhosted.org/packages/98/f5/ed29cd50067784976f25ed0ed6fcd3c2ce9eb90650aa3b2796ddf7b6870b/mkdocs_get_deps-0.2.0.tar.gz", hash = "sha256:162b3d129c7fad9b19abfdcb9c1458a651628e4b1dea628ac68790fb3061c60c", size = 10239, upload-time = "2023-11-20T17:51:09.981Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/9f/d4/029f984e8d3f3b6b726bd33cafc473b75e9e44c0f7e80a5b29abc466bdea/mkdocs_get_deps-0.2.0-py3-none-any.whl", hash = "sha256:2bf11d0b133e77a0dd036abeeb06dec8775e46efa526dc70667d8863eefc6134", size = 9521, upload-time = "2023-11-20T17:51:08.587Z" },-]--[[package]]-name = "mkdocs-git-revision-date-localized-plugin"-version = "1.4.7"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "babel" },- { name = "gitpython" },- { name = "mkdocs" },- { name = "pytz" },-]-sdist = { url = "https://files.pythonhosted.org/packages/5e/f8/a17ec39a4fc314d40cc96afdc1d401e393ebd4f42309d454cc940a2cf38a/mkdocs_git_revision_date_localized_plugin-1.4.7.tar.gz", hash = "sha256:10a49eff1e1c3cb766e054b9d8360c904ce4fe8c33ac3f6cc083ac6459c91953", size = 450473, upload-time = "2025-05-28T18:26:20.697Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/53/b6/106fcc15287e7228658fbd0ad9e8b0d775becced0a089cc39984641f4a0f/mkdocs_git_revision_date_localized_plugin-1.4.7-py3-none-any.whl", hash = "sha256:056c0a90242409148f1dc94d5c9d2c25b5b8ddd8de45489fa38f7fa7ccad2bc4", size = 25382, upload-time = "2025-05-28T18:26:18.907Z" },-]--[[package]]-name = "mkdocs-material"-version = "9.6.15"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "babel" },- { name = "backrefs" },- { name = "colorama" },- { name = "jinja2" },- { name = "markdown" },- { name = "mkdocs" },- { name = "mkdocs-material-extensions" },- { name = "paginate" },- { name = "pygments" },- { name = "pymdown-extensions" },- { name = "requests" },-]-sdist = { url = "https://files.pythonhosted.org/packages/95/c1/f804ba2db2ddc2183e900befe7dad64339a34fa935034e1ab405289d0a97/mkdocs_material-9.6.15.tar.gz", hash = "sha256:64adf8fa8dba1a17905b6aee1894a5aafd966d4aeb44a11088519b0f5ca4f1b5", size = 3951836, upload-time = "2025-07-01T10:14:15.671Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/1d/30/dda19f0495a9096b64b6b3c07c4bfcff1c76ee0fc521086d53593f18b4c0/mkdocs_material-9.6.15-py3-none-any.whl", hash = "sha256:ac969c94d4fe5eb7c924b6d2f43d7db41159ea91553d18a9afc4780c34f2717a", size = 8716840, upload-time = "2025-07-01T10:14:13.18Z" },-]--[[package]]-name = "mkdocs-material-extensions"-version = "1.3.1"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/79/9b/9b4c96d6593b2a541e1cb8b34899a6d021d208bb357042823d4d2cabdbe7/mkdocs_material_extensions-1.3.1.tar.gz", hash = "sha256:10c9511cea88f568257f960358a467d12b970e1f7b2c0e5fb2bb48cab1928443", size = 11847, upload-time = "2023-11-22T19:09:45.208Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/5b/54/662a4743aa81d9582ee9339d4ffa3c8fd40a4965e033d77b9da9774d3960/mkdocs_material_extensions-1.3.1-py3-none-any.whl", hash = "sha256:adff8b62700b25cb77b53358dad940f3ef973dd6db797907c49e3c2ef3ab4e31", size = 8728, upload-time = "2023-11-22T19:09:43.465Z" },-]--[[package]]-name = "mkdocs-redirects"-version = "1.2.2"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "mkdocs" },-]-sdist = { url = "https://files.pythonhosted.org/packages/f1/a8/6d44a6cf07e969c7420cb36ab287b0669da636a2044de38a7d2208d5a758/mkdocs_redirects-1.2.2.tar.gz", hash = "sha256:3094981b42ffab29313c2c1b8ac3969861109f58b2dd58c45fc81cd44bfa0095", size = 7162, upload-time = "2024-11-07T14:57:21.109Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/c4/ec/38443b1f2a3821bbcb24e46cd8ba979154417794d54baf949fefde1c2146/mkdocs_redirects-1.2.2-py3-none-any.whl", hash = "sha256:7dbfa5647b79a3589da4401403d69494bd1f4ad03b9c15136720367e1f340ed5", size = 6142, upload-time = "2024-11-07T14:57:19.143Z" },-]--[[package]]-name = "mkdocstrings"-version = "0.29.1"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "jinja2" },- { name = "markdown" },- { name = "markupsafe" },- { name = "mkdocs" },- { name = "mkdocs-autorefs" },- { name = "pymdown-extensions" },-]-sdist = { url = "https://files.pythonhosted.org/packages/41/e8/d22922664a627a0d3d7ff4a6ca95800f5dde54f411982591b4621a76225d/mkdocstrings-0.29.1.tar.gz", hash = "sha256:8722f8f8c5cd75da56671e0a0c1bbed1df9946c0cef74794d6141b34011abd42", size = 1212686, upload-time = "2025-03-31T08:33:11.997Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/98/14/22533a578bf8b187e05d67e2c1721ce10e3f526610eebaf7a149d557ea7a/mkdocstrings-0.29.1-py3-none-any.whl", hash = "sha256:37a9736134934eea89cbd055a513d40a020d87dfcae9e3052c2a6b8cd4af09b6", size = 1631075, upload-time = "2025-03-31T08:33:09.661Z" },-]--[package.optional-dependencies]-python = [- { name = "mkdocstrings-python" },-]--[[package]]-name = "mkdocstrings-python"-version = "1.16.12"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "griffe" },- { name = "mkdocs-autorefs" },- { name = "mkdocstrings" },-]-sdist = { url = "https://files.pythonhosted.org/packages/bf/ed/b886f8c714fd7cccc39b79646b627dbea84cd95c46be43459ef46852caf0/mkdocstrings_python-1.16.12.tar.gz", hash = "sha256:9b9eaa066e0024342d433e332a41095c4e429937024945fea511afe58f63175d", size = 206065, upload-time = "2025-06-03T12:52:49.276Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/3b/dd/a24ee3de56954bfafb6ede7cd63c2413bb842cc48eb45e41c43a05a33074/mkdocstrings_python-1.16.12-py3-none-any.whl", hash = "sha256:22ded3a63b3d823d57457a70ff9860d5a4de9e8b1e482876fc9baabaf6f5f374", size = 124287, upload-time = "2025-06-03T12:52:47.819Z" },-]-[[package]]name = "ml-dtypes"version = "0.5.1"@@ -2336,15 +2093,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/20/12/38679034af332785aac8774540895e234f4d07f7545804097de4b666afd8/packaging-25.0-py3-none-any.whl", hash = "sha256:29572ef2b1f17581046b3a2227d5c611fb25ec70ca1ba8554b24b0e69331a484", size = 66469, upload-time = "2025-04-19T11:48:57.875Z" },]-[[package]]-name = "paginate"-version = "0.5.7"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/ec/46/68dde5b6bc00c1296ec6466ab27dddede6aec9af1b99090e1107091b3b84/paginate-0.5.7.tar.gz", hash = "sha256:22bd083ab41e1a8b4f3690544afb2c60c25e5c9a63a30fa2f483f6c60c8e5945", size = 19252, upload-time = "2024-08-25T14:17:24.139Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/90/96/04b8e52da071d28f5e21a805b19cb9390aa17a47462ac87f5e2696b9566d/paginate-0.5.7-py2.py3-none-any.whl", hash = "sha256:b885e2af73abcf01d9559fd5216b57ef722f8c42affbb63942377668e35c7591", size = 13746, upload-time = "2024-08-25T14:17:22.55Z" },-]-[[package]]name = "parso"version = "0.8.4"@@ -2683,19 +2431,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/c7/21/705964c7812476f378728bdf590ca4b771ec72385c533964653c68e86bdc/pygments-2.19.2-py3-none-any.whl", hash = "sha256:86540386c03d588bb81d44bc3928634ff26449851e99741617ecb9037ee5ec0b", size = 1225217, upload-time = "2025-06-21T13:39:07.939Z" },]-[[package]]-name = "pymdown-extensions"-version = "10.16"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "markdown" },- { name = "pyyaml" },-]-sdist = { url = "https://files.pythonhosted.org/packages/1a/0a/c06b542ac108bfc73200677309cd9188a3a01b127a63f20cadc18d873d88/pymdown_extensions-10.16.tar.gz", hash = "sha256:71dac4fca63fabeffd3eb9038b756161a33ec6e8d230853d3cecf562155ab3de", size = 853197, upload-time = "2025-06-21T17:56:36.974Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/98/d4/10bb14004d3c792811e05e21b5e5dcae805aacb739bd12a0540967b99592/pymdown_extensions-10.16-py3-none-any.whl", hash = "sha256:f5dd064a4db588cb2d95229fc4ee63a1b16cc8b4d0e6145c0899ed8723da1df2", size = 266143, upload-time = "2025-06-21T17:56:35.356Z" },-]-[[package]]name = "pyparsing"version = "3.2.3"@@ -2899,17 +2634,8 @@ dependencies = [{ name = "setuptools", marker = "(sys_platform == 'linux' and extra == 'extra-8-invokeai-rocm') or (extra == 'extra-8-invokeai-cuda' and extra == 'extra-8-invokeai-rocm') or (extra == 'extra-8-invokeai-cpu' and extra == 'extra-8-invokeai-cuda') or (extra == 'extra-8-invokeai-cpu' and extra == 'extra-8-invokeai-rocm')" },]wheels = [- { url = "https://download.pytorch.org/whl/pytorch_triton_rocm-3.3.1-cp311-cp311-linux_x86_64.whl", hash = "sha256:8eb26aec84408b2be3d5b942a9edef9fadc6e249afe6aab795872e227ce8f579" },- { url = "https://download.pytorch.org/whl/pytorch_triton_rocm-3.3.1-cp312-cp312-linux_x86_64.whl", hash = "sha256:977423eee5c542a3f8aa4f527aec1688c4d485f207089cb595a8e638fcc3888a" },-]--[[package]]-name = "pytz"-version = "2025.2"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/f8/bf/abbd3cdfb8fbc7fb3d4d38d320f2441b1e7cbe29be4f23797b4a2b5d8aac/pytz-2025.2.tar.gz", hash = "sha256:360b9e3dbb49a209c21ad61809c7fb453643e048b38924c765813546746e81c3", size = 320884, upload-time = "2025-03-25T02:25:00.538Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/81/c4/34e93fe5f5429d7570ec1fa436f1986fb1f00c3e0f43a589fe2bbcd22c3f/pytz-2025.2-py2.py3-none-any.whl", hash = "sha256:5ddf76296dd8c44c26eb8f4b6f35488f3ccbf6fbbd7adee0b7262d43f0ec2f00", size = 509225, upload-time = "2025-03-25T02:24:58.468Z" },+ { url = "https://download-r2.pytorch.org/whl/pytorch_triton_rocm-3.3.1-cp311-cp311-linux_x86_64.whl", hash = "sha256:8eb26aec84408b2be3d5b942a9edef9fadc6e249afe6aab795872e227ce8f579", upload-time = "2025-06-03T22:26:32Z" },+ { url = "https://download-r2.pytorch.org/whl/pytorch_triton_rocm-3.3.1-cp312-cp312-linux_x86_64.whl", hash = "sha256:977423eee5c542a3f8aa4f527aec1688c4d485f207089cb595a8e638fcc3888a", upload-time = "2025-06-03T22:26:30Z" },][[package]]@@ -2974,18 +2700,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/0c/e8/4f648c598b17c3d06e8753d7d13d57542b30d56e6c2dedf9c331ae56312e/PyYAML-6.0.2-cp312-cp312-win_amd64.whl", hash = "sha256:7e7401d0de89a9a855c839bc697c079a4af81cf878373abd7dc625847d25cbd8", size = 156338, upload-time = "2024-08-06T20:32:41.93Z" },]-[[package]]-name = "pyyaml-env-tag"-version = "1.1"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "pyyaml" },-]-sdist = { url = "https://files.pythonhosted.org/packages/eb/2e/79c822141bfd05a853236b504869ebc6b70159afc570e1d5a20641782eaa/pyyaml_env_tag-1.1.tar.gz", hash = "sha256:2eb38b75a2d21ee0475d6d97ec19c63287a7e140231e4214969d0eac923cd7ff", size = 5737, upload-time = "2025-05-13T15:24:01.64Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/04/11/432f32f8097b03e3cd5fe57e88efb685d964e2e5178a48ed61e841f7fdce/pyyaml_env_tag-1.1-py3-none-any.whl", hash = "sha256:17109e1a528561e32f026364712fee1264bc2ea6715120891174ed1b980d2e04", size = 4722, upload-time = "2025-05-13T15:23:59.629Z" },-]-[[package]]name = "readme-renderer"version = "44.0"@@ -3277,15 +2991,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", size = 11050, upload-time = "2024-12-04T17:35:26.475Z" },]-[[package]]-name = "smmap"-version = "5.0.2"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/44/cd/a040c4b3119bbe532e5b0732286f805445375489fceaec1f48306068ee3b/smmap-5.0.2.tar.gz", hash = "sha256:26ea65a03958fa0c8a1c7e8c7a58fdc77221b8910f6be2131affade476898ad5", size = 22329, upload-time = "2025-01-02T07:14:40.909Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/04/be/d09147ad1ec7934636ad912901c5fd7667e1c858e19d355237db0d0cd5e4/smmap-5.0.2-py3-none-any.whl", hash = "sha256:b30115f0def7d7531d22a0fb6502488d879e75b260a9db4d0819cfb25403af5e", size = 24303, upload-time = "2025-01-02T07:14:38.724Z" },-]-[[package]]name = "snakeviz"version = "2.2.2"@@ -3492,13 +3197,13 @@ dependencies = [{ name = "typing-extensions", marker = "extra == 'extra-8-invokeai-cpu' or (extra == 'extra-8-invokeai-cuda' and extra == 'extra-8-invokeai-rocm')" },]wheels = [- { url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:5fe6045b8f426bf2d0426e4fe009f1667a954ec2aeb82f1bd0bf60c6d7a85445" },- { url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:a1684793e352f03fa14f78857e55d65de4ada8405ded1da2bf4f452179c4b779" },- { url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp311-cp311-win_amd64.whl", hash = "sha256:7b977eccbc85ae2bd19d6998de7b1f1f4bd3c04eaffd3015deb7934389783399" },- { url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:3bf2db5adf77b433844f080887ade049c4705ddf9fe1a32023ff84ff735aa5ad" },- { url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:8f8b3cfc53010a4b4a3c7ecb88c212e9decc4f5eeb6af75c3c803937d2d60947" },- { url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp312-cp312-win_amd64.whl", hash = "sha256:0bc887068772233f532b51a3e8c8cfc682ae62bef74bf4e0c53526c8b9e4138f" },- { url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp312-cp312-win_arm64.whl", hash = "sha256:a2618775f32eb4126c5b2050686da52001a08cffa331637d9cf51c8250931e00" },+ { url = "https://download-r2.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:5fe6045b8f426bf2d0426e4fe009f1667a954ec2aeb82f1bd0bf60c6d7a85445", upload-time = "2025-06-03T18:27:52Z" },+ { url = "https://download-r2.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:a1684793e352f03fa14f78857e55d65de4ada8405ded1da2bf4f452179c4b779", upload-time = "2025-06-03T18:27:53Z" },+ { url = "https://download-r2.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp311-cp311-win_amd64.whl", hash = "sha256:7b977eccbc85ae2bd19d6998de7b1f1f4bd3c04eaffd3015deb7934389783399", upload-time = "2025-06-03T18:27:58Z" },+ { url = "https://download-r2.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:3bf2db5adf77b433844f080887ade049c4705ddf9fe1a32023ff84ff735aa5ad", upload-time = "2025-06-03T18:27:57Z" },+ { url = "https://download-r2.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:8f8b3cfc53010a4b4a3c7ecb88c212e9decc4f5eeb6af75c3c803937d2d60947", upload-time = "2025-06-03T18:27:57Z" },+ { url = "https://download-r2.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp312-cp312-win_amd64.whl", hash = "sha256:0bc887068772233f532b51a3e8c8cfc682ae62bef74bf4e0c53526c8b9e4138f", upload-time = "2025-06-03T18:27:56Z" },+ { url = "https://download-r2.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp312-cp312-win_arm64.whl", hash = "sha256:a2618775f32eb4126c5b2050686da52001a08cffa331637d9cf51c8250931e00", upload-time = "2025-07-16T16:40:20Z" },][[package]]@@ -3538,12 +3243,12 @@ dependencies = [{ name = "typing-extensions", marker = "extra == 'extra-8-invokeai-cuda' or (extra == 'extra-8-invokeai-cpu' and extra == 'extra-8-invokeai-rocm')" },]wheels = [- { url = "https://download.pytorch.org/whl/cu128/torch-2.7.1%2Bcu128-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:3a0954c54fd7cb9f45beab1272dece2a05b0e77023c1da33ba32a7919661260f" },- { url = "https://download.pytorch.org/whl/cu128/torch-2.7.1%2Bcu128-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:c301dc280458afd95450af794924c98fe07522dd148ff384739b810e3e3179f2" },- { url = "https://download.pytorch.org/whl/cu128/torch-2.7.1%2Bcu128-cp311-cp311-win_amd64.whl", hash = "sha256:138c66dcd0ed2f07aafba3ed8b7958e2bed893694990e0b4b55b6b2b4a336aa6" },- { url = "https://download.pytorch.org/whl/cu128/torch-2.7.1%2Bcu128-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:268e54db9f0bc2b7b9eb089852d3e592c2dea2facc3db494100c3d3b796549fa" },- { url = "https://download.pytorch.org/whl/cu128/torch-2.7.1%2Bcu128-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:0b64f7d0a6f2a739ed052ba959f7b67c677028c9566ce51997f9f90fe573ddaa" },- { url = "https://download.pytorch.org/whl/cu128/torch-2.7.1%2Bcu128-cp312-cp312-win_amd64.whl", hash = "sha256:2bb8c05d48ba815b316879a18195d53a6472a03e297d971e916753f8e1053d30" },+ { url = "https://download-r2.pytorch.org/whl/cu128/torch-2.7.1%2Bcu128-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:3a0954c54fd7cb9f45beab1272dece2a05b0e77023c1da33ba32a7919661260f", upload-time = "2025-06-03T18:31:04Z" },+ { url = "https://download-r2.pytorch.org/whl/cu128/torch-2.7.1%2Bcu128-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:c301dc280458afd95450af794924c98fe07522dd148ff384739b810e3e3179f2", upload-time = "2025-06-03T18:31:06Z" },+ { url = "https://download-r2.pytorch.org/whl/cu128/torch-2.7.1%2Bcu128-cp311-cp311-win_amd64.whl", hash = "sha256:138c66dcd0ed2f07aafba3ed8b7958e2bed893694990e0b4b55b6b2b4a336aa6", upload-time = "2025-06-03T18:31:13Z" },+ { url = "https://download-r2.pytorch.org/whl/cu128/torch-2.7.1%2Bcu128-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:268e54db9f0bc2b7b9eb089852d3e592c2dea2facc3db494100c3d3b796549fa", upload-time = "2025-06-03T18:31:20Z" },+ { url = "https://download-r2.pytorch.org/whl/cu128/torch-2.7.1%2Bcu128-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:0b64f7d0a6f2a739ed052ba959f7b67c677028c9566ce51997f9f90fe573ddaa", upload-time = "2025-06-03T18:31:26Z" },+ { url = "https://download-r2.pytorch.org/whl/cu128/torch-2.7.1%2Bcu128-cp312-cp312-win_amd64.whl", hash = "sha256:2bb8c05d48ba815b316879a18195d53a6472a03e297d971e916753f8e1053d30", upload-time = "2025-06-03T18:31:46Z" },][[package]]@@ -3571,8 +3276,8 @@ dependencies = [{ name = "typing-extensions", marker = "(extra == 'extra-8-invokeai-cpu' and extra == 'extra-8-invokeai-cuda') or (extra != 'extra-8-invokeai-cuda' and extra == 'extra-8-invokeai-rocm') or (extra != 'extra-8-invokeai-cpu' and extra == 'extra-8-invokeai-rocm')" },]wheels = [- { url = "https://download.pytorch.org/whl/rocm6.3/torch-2.7.1%2Brocm6.3-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:73b7eb3777ffe6b73bf9881686dd659bd71231ac87ac3696d2477e2fe0c036fc" },- { url = "https://download.pytorch.org/whl/rocm6.3/torch-2.7.1%2Brocm6.3-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:b0c10342f64a34998ae8d5084aa1beae7e11defa46a4e05fe9aa6f09ffb0db37" },+ { url = "https://download-r2.pytorch.org/whl/rocm6.3/torch-2.7.1%2Brocm6.3-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:73b7eb3777ffe6b73bf9881686dd659bd71231ac87ac3696d2477e2fe0c036fc", upload-time = "2025-06-03T18:34:51Z" },+ { url = "https://download-r2.pytorch.org/whl/rocm6.3/torch-2.7.1%2Brocm6.3-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:b0c10342f64a34998ae8d5084aa1beae7e11defa46a4e05fe9aa6f09ffb0db37", upload-time = "2025-06-03T18:34:52Z" },][[package]]@@ -3639,10 +3344,10 @@ dependencies = [{ name = "torch", version = "2.7.1+cpu", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "extra == 'extra-8-invokeai-cpu' or (extra == 'extra-8-invokeai-cuda' and extra == 'extra-8-invokeai-rocm')" },]wheels = [- { url = "https://download-r2.pytorch.org/whl/cpu/torchvision-0.22.1%2Bcpu-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:4e0cbc165a472605d0c13da68ae22e84b17a6b815d5e600834777823e1bcb658" },- { url = "https://download-r2.pytorch.org/whl/cpu/torchvision-0.22.1%2Bcpu-cp311-cp311-win_amd64.whl", hash = "sha256:9482adee074f60a45fd69892f7488281aadfda7836948c94b0a9b0caf55d1d67" },- { url = "https://download-r2.pytorch.org/whl/cpu/torchvision-0.22.1%2Bcpu-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:b5fa7044bd82c6358e8229351c98070cf3a7bf4a6e89ea46352ae6c65745ef94" },- { url = "https://download-r2.pytorch.org/whl/cpu/torchvision-0.22.1%2Bcpu-cp312-cp312-win_amd64.whl", hash = "sha256:433cb4dbced7291f17064cea08ac1e5aebd02ec190e1c207d117ad62a8961f2b" },+ { url = "https://download-r2.pytorch.org/whl/cpu/torchvision-0.22.1%2Bcpu-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:4e0cbc165a472605d0c13da68ae22e84b17a6b815d5e600834777823e1bcb658", upload-time = "2025-06-03T18:37:22Z" },+ { url = "https://download-r2.pytorch.org/whl/cpu/torchvision-0.22.1%2Bcpu-cp311-cp311-win_amd64.whl", hash = "sha256:9482adee074f60a45fd69892f7488281aadfda7836948c94b0a9b0caf55d1d67", upload-time = "2025-06-03T18:37:22Z" },+ { url = "https://download-r2.pytorch.org/whl/cpu/torchvision-0.22.1%2Bcpu-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:b5fa7044bd82c6358e8229351c98070cf3a7bf4a6e89ea46352ae6c65745ef94", upload-time = "2025-06-03T18:37:22Z" },+ { url = "https://download-r2.pytorch.org/whl/cpu/torchvision-0.22.1%2Bcpu-cp312-cp312-win_amd64.whl", hash = "sha256:433cb4dbced7291f17064cea08ac1e5aebd02ec190e1c207d117ad62a8961f2b", upload-time = "2025-06-03T18:37:22Z" },][[package]]@@ -3663,10 +3368,10 @@ dependencies = [{ name = "torch", version = "2.7.1+cu128", source = { registry = "https://download.pytorch.org/whl/cu128" }, marker = "extra == 'extra-8-invokeai-cuda' or (extra == 'extra-8-invokeai-cpu' and extra == 'extra-8-invokeai-rocm')" },]wheels = [- { url = "https://download-r2.pytorch.org/whl/cu128/torchvision-0.22.1%2Bcu128-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:92568ac46b13a8c88b61589800b1b9c4629be091ea7ce080fc6fc622e11e0915" },- { url = "https://download-r2.pytorch.org/whl/cu128/torchvision-0.22.1%2Bcu128-cp311-cp311-win_amd64.whl", hash = "sha256:85ecd729c947151eccea502853be6efc2c0029dc26e6e5148e04684aed008390" },- { url = "https://download-r2.pytorch.org/whl/cu128/torchvision-0.22.1%2Bcu128-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:f64ef9bb91d71ab35d8384912a19f7419e35928685bc67544d58f45148334373" },- { url = "https://download-r2.pytorch.org/whl/cu128/torchvision-0.22.1%2Bcu128-cp312-cp312-win_amd64.whl", hash = "sha256:650561ba326d21021243f5e064133dc62dc64d52f79623db5cd76637a9665f96" },+ { url = "https://download-r2.pytorch.org/whl/cu128/torchvision-0.22.1%2Bcu128-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:92568ac46b13a8c88b61589800b1b9c4629be091ea7ce080fc6fc622e11e0915", upload-time = "2025-06-03T18:37:28Z" },+ { url = "https://download-r2.pytorch.org/whl/cu128/torchvision-0.22.1%2Bcu128-cp311-cp311-win_amd64.whl", hash = "sha256:85ecd729c947151eccea502853be6efc2c0029dc26e6e5148e04684aed008390", upload-time = "2025-06-03T18:37:28Z" },+ { url = "https://download-r2.pytorch.org/whl/cu128/torchvision-0.22.1%2Bcu128-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:f64ef9bb91d71ab35d8384912a19f7419e35928685bc67544d58f45148334373", upload-time = "2025-06-03T18:37:28Z" },+ { url = "https://download-r2.pytorch.org/whl/cu128/torchvision-0.22.1%2Bcu128-cp312-cp312-win_amd64.whl", hash = "sha256:650561ba326d21021243f5e064133dc62dc64d52f79623db5cd76637a9665f96", upload-time = "2025-06-03T18:37:28Z" },][[package]]@@ -3689,8 +3394,8 @@ dependencies = [{ name = "torch", version = "2.7.1+rocm6.3", source = { registry = "https://download.pytorch.org/whl/rocm6.3" }, marker = "(extra == 'extra-8-invokeai-cpu' and extra == 'extra-8-invokeai-cuda') or (extra != 'extra-8-invokeai-cuda' and extra == 'extra-8-invokeai-rocm') or (extra != 'extra-8-invokeai-cpu' and extra == 'extra-8-invokeai-rocm')" },]wheels = [- { url = "https://download-r2.pytorch.org/whl/rocm6.3/torchvision-0.22.1%2Brocm6.3-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:c150162c2e1de371e5a52c0eb4a98541f307e01716cfe5c850f25c7caa3d3fc4" },- { url = "https://download-r2.pytorch.org/whl/rocm6.3/torchvision-0.22.1%2Brocm6.3-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:0dce205fb04d9eb2f6feb74faf17cba9180aff70a8c8ac084912ce41b2dc0ab7" },+ { url = "https://download-r2.pytorch.org/whl/rocm6.3/torchvision-0.22.1%2Brocm6.3-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:c150162c2e1de371e5a52c0eb4a98541f307e01716cfe5c850f25c7caa3d3fc4", upload-time = "2025-06-03T18:37:32Z" },+ { url = "https://download-r2.pytorch.org/whl/rocm6.3/torchvision-0.22.1%2Brocm6.3-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:0dce205fb04d9eb2f6feb74faf17cba9180aff70a8c8ac084912ce41b2dc0ab7", upload-time = "2025-06-03T18:37:32Z" },][[package]]