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

WIP: Regional Prompting #5868

Closed
wants to merge 49 commits into from
Closed

Conversation

RyanJDick
Copy link
Collaborator

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Community Node Submission

Have you discussed this change with the InvokeAI team?

  • Yes
  • No, because:

Have you updated all relevant documentation?

TODO: Update docs

  • Yes
  • No

Description

This branch is a WIP implementation of regional prompting.
TODO: Add description...

QA Instructions, Screenshots, Recordings

Test cases to consider:

  • CUDA, ROCm, mps, cpu
    • Check performance and memory utilization.
  • All possible attention settings(xformers, sliced, etc.)
    • Will xformers still work?
  • Compatibility with ControlNet, IP-Adapter, T2I-Adapter.
  • SD and SDXL
  • Combining prompts with / without regions.
  • Region prompts for both positive and negative conditioning.
  • ...

Merge Plan

DO NOT MERGE. This is a WIP.

Added/updated tests?

  • Yes
  • No

…n't have any functional effect, since this attention implementation was only being used for cross-attention, but the logic should be correct now in case we wanted to use it for self-attention.
… of RegionalPromptAttnProcessor2_0 into the UNet.
…licate _preprocess_regional_prompt_mask(...) function.
…ol is triggered when using multiple prompts.
@github-actions github-actions bot added python PRs that change python files invocations PRs that change invocations backend PRs that change backend files python-tests PRs that change python tests labels Mar 5, 2024
@RyanJDick
Copy link
Collaborator Author

Superseded by #5916

@RyanJDick RyanJDick closed this Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend PRs that change backend files invocations PRs that change invocations python PRs that change python files python-tests PRs that change python tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant