mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-23 10:57:58 +08:00
Fix problem.
This commit is contained in:
parent
c858e249b7
commit
de483750c0
@ -50,5 +50,5 @@ def image_alpha_fix(destination, source):
|
|||||||
source = source[...,:destination.shape[-1]]
|
source = source[...,:destination.shape[-1]]
|
||||||
elif destination.shape[-1] > source.shape[-1]:
|
elif destination.shape[-1] > source.shape[-1]:
|
||||||
destination = torch.nn.functional.pad(destination, (0, 1))
|
destination = torch.nn.functional.pad(destination, (0, 1))
|
||||||
destination[..., -1] = source[..., -1]
|
destination[..., -1] = 1.0
|
||||||
return destination, source
|
return destination, source
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user