Skip to content

Commit

Permalink
Disable ControlNet if model is SDXL
Browse files Browse the repository at this point in the history
  • Loading branch information
catboxanon authored Jul 26, 2023
1 parent efda6dd commit 907ffde
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/controlnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,11 @@ def process(self, p, *args):
if len(self.enabled_units) == 0:
self.latest_network = None
return

is_sdxl = getattr(p.sd_model, 'is_sdxl', False)
if is_sdxl:
logger.warning('ControlNet does not support SDXL -- disabling')
return

detected_maps = []
forward_params = []
Expand Down

0 comments on commit 907ffde

Please sign in to comment.