mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-09 21:04:41 +08:00
clamp colormatch output
This commit is contained in:
parent
07ba67864a
commit
24f27c5b82
@ -104,7 +104,10 @@ https://github.com/hahnec/color-matcher/
|
||||
print(f"Error occurred during transfer: {e}")
|
||||
break
|
||||
out.append(torch.from_numpy(image_result))
|
||||
return (torch.stack(out, dim=0).to(torch.float32), )
|
||||
|
||||
out = torch.stack(out, dim=0).to(torch.float32)
|
||||
out.clamp_(0, 1)
|
||||
return (out,)
|
||||
|
||||
class SaveImageWithAlpha:
|
||||
def __init__(self):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user