mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-07-21 21:01:24 +08:00
compatibility
This commit is contained in:
parent
dadae408ee
commit
dc17dd53ad
@ -487,6 +487,9 @@ class ControlNetForForgeOfficial(scripts.Script):
|
||||
|
||||
@torch.no_grad()
|
||||
def process(self, p, *args, **kwargs):
|
||||
if getattr(p, "control_net_disabled", False):
|
||||
return
|
||||
|
||||
self.current_params = {}
|
||||
enabled_units = self.get_enabled_units(args)
|
||||
Infotext.write_infotext(enabled_units, p)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user