Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ui): regional prompting followups 3 #6256

Merged
merged 4 commits into from
Apr 22, 2024

Conversation

psychedelicious
Copy link
Collaborator

Summary

Trying a lot of different things as I iterated, so this is smooshed into one big commit... too hard to split it now.

  • Iterated on IP adapter handling and UI. Unfortunately there is an bug related to undo/redo. The IP adapter state is split across the controlAdapters slice and the regionalPrompts slice, but only the regionalPrompts slice supports undo/redo. If you delete the IP adapter and then undo/redo to a history state where it existed, you'll get an error. The fix is likely to merge the slices... Maybe there's a workaround.
  • Iterated on UI. I think the layers are OK now.
  • Removed ability to disable RP globally for now. It's enabled if you have enabled RP layers.
  • Many minor tweaks and fixes.

Each layer can can up to 1 positive prompt, up to 1 negative prompt ,and any number of IP adapters. Full, Style and Composition all work.

Quick demo:
https://github.com/invoke-ai/InvokeAI/assets/4822129/0ba5c8d8-2d5d-43ec-8876-a31b01d99dad

Related Issues / Discussions

n/a

QA Instructions

n/a

Merge Plan

n/a

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)

Trying a lot of different things as I iterated, so this is smooshed into one big commit... too hard to split it now.

- Iterated on IP adapter handling and UI. Unfortunately there is an bug related to undo/redo. The IP adapter state is split across the `controlAdapters` slice and the `regionalPrompts` slice, but only the `regionalPrompts` slice supports undo/redo. If you delete the IP adapter and then undo/redo to a history state where it existed, you'll get an error. The fix is likely to merge the slices... Maybe there's a workaround.
- Iterated on UI. I think the layers are OK now.
- Removed ability to disable RP globally for now. It's enabled if you have enabled RP layers.
- Many minor tweaks and fixes.
@github-actions github-actions bot added the frontend PRs that change frontend files label Apr 22, 2024
Copy link
Member

@hipsterusername hipsterusername left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent updates.

I'll need to think about how to fix this properly. For now, disable the check as the UI can still build fine.
@github-actions github-actions bot added the frontend-deps PRs that change frontend dependencies label Apr 22, 2024
@psychedelicious psychedelicious merged commit 714126b into main Apr 22, 2024
14 checks passed
@psychedelicious psychedelicious deleted the psyche/feat/ui/regional-prompting-4 branch April 22, 2024 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend PRs that change frontend files frontend-deps PRs that change frontend dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants