Update controlnet.py

This commit is contained in:
lllyasviel 2024-01-29 15:11:54 -08:00
parent 1be2399c20
commit 497b52f62e

View File

@ -942,9 +942,12 @@ class ControlNetForForgeOfficial(scripts.Script):
self.post_processors = post_processors
def process_unit_after_click_generate(self, p, unit, params, *args, **kwargs):
h, w, hr_y, hr_x = self.get_target_dimensions(p)
return
def process_unit_before_every_sampling(self, p, unit, params, *args, **kwargs):
h, w, hr_y, hr_x = self.get_target_dimensions(p)
is_hr_pass = p.is_hr_pass
return
def process(self, p, *args, **kwargs):