This commit is contained in:
Thireus ☠
2023-04-02 20:03:59 +01:00
committed by GitHub
parent 64821f0476
commit 7970e27901

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(