"...git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "83303bc73efcd44d037833e57234b772c9810fda"
Commit a8705dbf authored by comfyanonymous's avatar comfyanonymous
Browse files

Speed up the mask save and fix refresh replacing copied image.

parent a7ebd5aa
...@@ -179,7 +179,7 @@ class PromptServer(): ...@@ -179,7 +179,7 @@ class PromptServer():
# alpha copy # alpha copy
new_alpha = mask_pil.getchannel('A') new_alpha = mask_pil.getchannel('A')
original_pil.putalpha(new_alpha) original_pil.putalpha(new_alpha)
original_pil.save(filepath) original_pil.save(filepath, compress_level=4)
return image_upload(post, image_save_function) return image_upload(post, image_save_function)
......
...@@ -1300,7 +1300,7 @@ export class ComfyApp { ...@@ -1300,7 +1300,7 @@ export class ComfyApp {
if(widget.type == "combo" && def["input"]["required"][widget.name] !== undefined) { if(widget.type == "combo" && def["input"]["required"][widget.name] !== undefined) {
widget.options.values = def["input"]["required"][widget.name][0]; widget.options.values = def["input"]["required"][widget.name][0];
if(!widget.options.values.includes(widget.value)) { if(widget.name != 'image' && !widget.options.values.includes(widget.value)) {
widget.value = widget.options.values[0]; widget.value = widget.options.values[0];
widget.callback(widget.value); widget.callback(widget.value);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment