Skip to content

Commit

Permalink
Update ImageNode.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowcz007 committed Jan 25, 2024
1 parent 3d68e48 commit 3a3da49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nodes/ImageNode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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,)

Expand Down

0 comments on commit 3a3da49

Please sign in to comment.