Extra networks loading fix

This commit is contained in:
invincibledude 2023-01-29 19:13:27 +03:00
parent c92ec3a925
commit 6127d2ff1b
1 changed files with 2 additions and 2 deletions

View File

@ -600,7 +600,7 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
if not p.disable_extra_networks: if not p.disable_extra_networks:
if type(p) == StableDiffusionProcessingTxt2Img: if type(p) == StableDiffusionProcessingTxt2Img:
if p.enable_hr and p.hr_prompt != '': if p.enable_hr and p.hr_prompt != '':
extra_networks.activate(p, extra_network_data + hr_extra_network_data) extra_networks.activate(p, extra_network_data | hr_extra_network_data)
else: else:
extra_networks.activate(p, extra_network_data) extra_networks.activate(p, extra_network_data)
@ -755,7 +755,7 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
if not p.disable_extra_networks: if not p.disable_extra_networks:
if type(p) == StableDiffusionProcessingTxt2Img: if type(p) == StableDiffusionProcessingTxt2Img:
if p.enable_hr and p.hr_prompt != '': if p.enable_hr and p.hr_prompt != '':
extra_networks.deactivate(p, extra_network_data + hr_extra_network_data) extra_networks.deactivate(p, extra_network_data | hr_extra_network_data)
else: else:
extra_networks.deactivate(p, extra_network_data) extra_networks.deactivate(p, extra_network_data)