From 1d7bb7bae6e62315862add8df77457d0bb329d04 Mon Sep 17 00:00:00 2001 From: Saquib Alam Date: Tue, 8 Aug 2023 22:46:49 +0530 Subject: [PATCH] debug --- nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index fe736b8bc..c9f6af566 100644 --- a/nodes.py +++ b/nodes.py @@ -1342,7 +1342,7 @@ class LoadImage: image = np.array(image).astype(np.float32) / 255.0 image = torch.from_numpy(image)[None,] - smooth_image = image.copy() + smooth_image = image.detach().clone() if 'A' in i.getbands(): mask = np.array(i.getchannel('A')).astype(np.float32) / 255.0 mask = torch.from_numpy(mask)