mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-05 15:39:59 +00:00
Update preprocessor_inpaint.py
This commit is contained in:
@@ -16,9 +16,9 @@ class PreprocessorInpaintOnly(PreprocessorInpaint):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.name = 'inpaint_only'
|
||||
self.tags = ['Inpaint']
|
||||
self.model_filename_filters = ['inpaint']
|
||||
self.slider_resolution = PreprocessorParameter(visible=False)
|
||||
|
||||
def __call__(self, input_image, resolution, slider_1=None, slider_2=None, slider_3=None, **kwargs):
|
||||
return input_image
|
||||
|
||||
def process_before_every_sampling(self, process, cond, *args, **kwargs):
|
||||
return
|
||||
@@ -31,9 +31,9 @@ class PreprocessorInpaintLama(PreprocessorInpaintOnly):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.name = 'inpaint_only+lama'
|
||||
self.tags = ['Inpaint']
|
||||
self.model_filename_filters = ['inpaint']
|
||||
self.slider_resolution = PreprocessorParameter(visible=False)
|
||||
|
||||
def __call__(self, input_image, resolution, slider_1=None, slider_2=None, slider_3=None, **kwargs):
|
||||
return input_image
|
||||
|
||||
|
||||
add_supported_preprocessor(PreprocessorInpaint())
|
||||
|
||||
Reference in New Issue
Block a user