Skip to content

Commit

Permalink
allow not using any unit
Browse files Browse the repository at this point in the history
  • Loading branch information
lllyasviel committed Dec 7, 2023
1 parent d0e79b3 commit 12c355b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions scripts/controlnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,13 +707,13 @@ def controlnet_main_entry(self, p):
if not batch_hijack.instance.is_batch:
self.enabled_units = Script.get_enabled_units(p)

if len(self.enabled_units) == 0:
self.latest_network = None
return

batch_option_uint_separate = self.ui_batch_option_state[0] == external_code.BatchOption.SEPARATE.value
batch_option_style_align = self.ui_batch_option_state[1]

if len(self.enabled_units) == 0 and not batch_option_style_align:
self.latest_network = None
return

logger.info(f"unit_separate = {batch_option_uint_separate}, style_align = {batch_option_style_align}")

detected_maps = []
Expand Down
2 changes: 1 addition & 1 deletion scripts/controlnet_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version_flag = 'v1.1.420'
version_flag = 'v1.1.421'

from scripts.logging import logger

Expand Down

0 comments on commit 12c355b

Please sign in to comment.