diff --git a/nodes/ImageNode.py b/nodes/ImageNode.py index 13eab4a0..766a167a 100644 --- a/nodes/ImageNode.py +++ b/nodes/ImageNode.py @@ -2120,7 +2120,7 @@ def run(self,width,height,scale_option,image=None,average_color=['on'],fill_colo average_images.append(a_im) hexs.append(hex) - if mask!=None: + try: for mas in mask: for ma in mas: ma=tensor2pil(ma) @@ -2129,6 +2129,8 @@ def run(self,width,height,scale_option,image=None,average_color=['on'],fill_colo ma=ma.convert('L') ma=pil2tensor(ma) masks.append(ma) + except: + print('') return (imgs,average_images,hexs,masks,)