Merge branch 'comfyanonymous:master' into chroma-support

This commit is contained in:
Silver 2025-04-04 19:58:36 +02:00 committed by GitHub
commit 4c33a576f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,5 +50,5 @@ def image_alpha_fix(destination, source):
source = source[...,:destination.shape[-1]]
elif destination.shape[-1] > source.shape[-1]:
destination = torch.nn.functional.pad(destination, (0, 1))
destination[..., -1] = source[..., -1]
destination[..., -1] = 1.0
return destination, source