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