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

Preparation for SDXL support #12

Merged
merged 4 commits into from
Aug 14, 2023
Merged

Preparation for SDXL support #12

merged 4 commits into from
Aug 14, 2023

Conversation

RyanJDick
Copy link
Collaborator

@RyanJDick RyanJDick commented Aug 9, 2023

This PR bundles a few related changes:

  • Refactoring to prepare for SDXL support in a future PR. Specifically, split training utility functions that can be re-used by SDXL out into a new file.

  • Added utility functions to check diffusers model versions (V1, V2, SDXL) for the purpose of providing more informative error messages if an unsupported base model is selected.

  • Merge previous PRs and change target branch to main

@RyanJDick RyanJDick marked this pull request as ready for review August 9, 2023 15:35
Base automatically changed from ryan/more-unet-lora-layers to main August 10, 2023 21:42

# This logic was copied from
# https://github.com/invoke-ai/InvokeAI/blob/e77400ab62d24acbdf2f48a7427705e7b8b97e4a/invokeai/backend/model_management/model_probe.py#L412-L421
# This seems fragile. If you see this and know of a better way to detect the base model version, your contribution
Copy link
Collaborator

Choose a reason for hiding this comment

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

This seems to be the standard way of doing it right now unfortunately. To specifically point out xl vs not xl, the diffusers class name is pretty clear in the root config of the model. Beyond that, I'm not sure of a better way.

@RyanJDick RyanJDick merged commit 456e6e9 into main Aug 14, 2023
1 check passed
@RyanJDick RyanJDick deleted the ryan/sdxl-lora branch August 14, 2023 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants