mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-14 07:22:36 +08:00
debug
This commit is contained in:
parent
e9f9a50d6e
commit
1d7bb7bae6
2
nodes.py
2
nodes.py
@ -1342,7 +1342,7 @@ class LoadImage:
|
|||||||
image = np.array(image).astype(np.float32) / 255.0
|
image = np.array(image).astype(np.float32) / 255.0
|
||||||
image = torch.from_numpy(image)[None,]
|
image = torch.from_numpy(image)[None,]
|
||||||
|
|
||||||
smooth_image = image.copy()
|
smooth_image = image.detach().clone()
|
||||||
if 'A' in i.getbands():
|
if 'A' in i.getbands():
|
||||||
mask = np.array(i.getchannel('A')).astype(np.float32) / 255.0
|
mask = np.array(i.getchannel('A')).astype(np.float32) / 255.0
|
||||||
mask = torch.from_numpy(mask)
|
mask = torch.from_numpy(mask)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user