Merge pull request #13 from Thireus/patch-1

Fixes #10
This commit is contained in:
AUTOMATIC1111
2023-05-17 21:52:18 +03:00
committed by GitHub

View File

@@ -45,7 +45,7 @@ class ScriptPostprocessingUpscale(scripts_postprocessing.ScriptPostprocessing):
}
def process(self, pp: scripts_postprocessing.PostprocessedImage, model, return_mask, alpha_matting, alpha_matting_foreground_threshold, alpha_matting_background_threshold, alpha_matting_erode_size):
if model == "None":
if not model or model == "None":
return
pp.image = rembg.remove(