add mask api
This commit is contained in:
@@ -338,6 +338,7 @@ class ControlNetForForgeOfficial(scripts.Script):
|
|||||||
|
|
||||||
preprocessor_output = preprocessor(
|
preprocessor_output = preprocessor(
|
||||||
input_image=input_image,
|
input_image=input_image,
|
||||||
|
input_mask=input_mask,
|
||||||
resolution=unit.processor_res,
|
resolution=unit.processor_res,
|
||||||
slider_1=unit.threshold_a,
|
slider_1=unit.threshold_a,
|
||||||
slider_2=unit.threshold_b,
|
slider_2=unit.threshold_b,
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ class Preprocessor:
|
|||||||
def process_after_every_sampling(self, process, params, *args, **kwargs):
|
def process_after_every_sampling(self, process, params, *args, **kwargs):
|
||||||
return
|
return
|
||||||
|
|
||||||
def __call__(self, input_image, resolution, slider_1=None, slider_2=None, slider_3=None, **kwargs):
|
def __call__(self, input_image, resolution, slider_1=None, slider_2=None, slider_3=None, input_mask=None, **kwargs):
|
||||||
return input_image
|
return input_image
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user