MCPcopy Create free account
hub / github.com/DenOfEquity/ersatzForge / __init__

Method __init__

modules_forge/supported_preprocessor.py:83–91  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

81
82class PreprocessorCanny(Preprocessor):
83 def __init__(self):
84 super().__init__()
85 self.name = 'canny'
86 self.tags = ['Canny']
87 self.model_filename_filters = ['canny']
88 self.slider_1 = PreprocessorParameter(minimum=0, maximum=256, step=1, value=100, label='Low Threshold', visible=True)
89 self.slider_2 = PreprocessorParameter(minimum=0, maximum=256, step=1, value=200, label='High Threshold', visible=True)
90 self.sorting_priority = 100
91 self.use_soft_projection_in_hr_fix = True
92
93 def __call__(self, input_image, resolution, slider_1=None, slider_2=None, slider_3=None, **kwargs):
94 input_image, remove_pad = resize_image_with_pad(input_image, resolution)

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45

Tested by

no test coverage detected