mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-22 07:43:58 +00:00
Update legacy_preprocessors.py
This commit is contained in:
@@ -98,8 +98,8 @@ class LegacyPreprocessor(Preprocessor):
|
|||||||
with context:
|
with context:
|
||||||
result, is_image = self.call_function(img=input_image, res=resolution, thr_a=slider_1, thr_b=slider_2, **kwargs)
|
result, is_image = self.call_function(img=input_image, res=resolution, thr_a=slider_1, thr_b=slider_2, **kwargs)
|
||||||
|
|
||||||
del is_image # Not used anymore
|
if is_image:
|
||||||
result = HWC3(result)
|
result = HWC3(result)
|
||||||
|
|
||||||
if self.unload_function is not None:
|
if self.unload_function is not None:
|
||||||
self.unload_function()
|
self.unload_function()
|
||||||
|
|||||||
Reference in New Issue
Block a user