Update legacy_preprocessors.py

This commit is contained in:
lllyasviel
2024-01-29 21:54:21 -08:00
parent 4c98a1c79b
commit 1e90fc83fd

View File

@@ -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()