mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-19 10:53:29 +00:00
Merge branch 'comfyanonymous:master' into chroma-support
This commit is contained in:
commit
4c33a576f6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user