Skip to content

Conversation

@lstein
Copy link
Collaborator

@lstein lstein commented Jul 23, 2023

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

  • Refactor
  • [ X] Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Community Node Submission

Have you discussed this change with the InvokeAI team?

  • [X ] Yes
  • No, because:

Have you updated all relevant documentation?

  • Yes
  • [ X] No - not yet WIP

Description

This PR adds support for loading and converting checkpoint-format ControlNet and SDXL models. The SDXL and SDXL-refiner model conversions are working; however saving the unet in safetensors format leads to corrupted model files, so currently is saving in .bin format (after scanning the input model).

ControlNet conversion seems to be working but needs further testing.

To use this PR, you will need to copy the files invokeai/configs/stable-diffusion/sd_xl_base.yaml and invokeai/configs/stable-diffusion/sd_xl_refiner.yaml into INVOKEAI/configs/stable-diffusion. You will also need to run invokeai-configure --yes --skip-sd in order to install additional core model files needed by the converter.

@lstein lstein marked this pull request as ready for review July 23, 2023 13:33
@Millu Millu mentioned this pull request Jul 24, 2023
1 task
@lstein lstein mentioned this pull request Jul 26, 2023
7 tasks
@lstein lstein requested a review from Kyle0654 as a code owner July 26, 2023 12:26
@blessedcoolant blessedcoolant merged commit 3dccc4d into main Jul 26, 2023
@blessedcoolant blessedcoolant deleted the feat/controlnet-and-sdxl-convert branch July 26, 2023 13: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.

3 participants