mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg.git
synced 2026-01-26 11:19:56 +00:00
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user