Skip to content

Commit 95d8713

Browse files
Missing parentheses.
1 parent 0d4e29f commit 95d8713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

comfy/ldm/common_dit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import comfy.ops
33

44
def pad_to_patch_size(img, patch_size=(2, 2), padding_mode="circular"):
5-
if padding_mode == "circular" and torch.jit.is_tracing() or torch.jit.is_scripting():
5+
if padding_mode == "circular" and (torch.jit.is_tracing() or torch.jit.is_scripting()):
66
padding_mode = "reflect"
77
pad_h = (patch_size[0] - img.shape[-2] % patch_size[0]) % patch_size[0]
88
pad_w = (patch_size[1] - img.shape[-1] % patch_size[1]) % patch_size[1]

0 commit comments

Comments
 (0)