diff --git a/workflow/ComfyUI-ACE_Plus/ace_plus_fft_node.py b/workflow/ComfyUI-ACE_Plus/ace_plus_fft_node.py index 3101b01..1f40e33 100644 --- a/workflow/ComfyUI-ACE_Plus/ace_plus_fft_node.py +++ b/workflow/ComfyUI-ACE_Plus/ace_plus_fft_node.py @@ -379,7 +379,7 @@ class AcePlusFFTProcessor: slice_w = 0 H, W = edit_image.shape[-2:] - scale = min(1.0, math.sqrt(self.max_seq_len * 2 / ((H / self.d) * (W / self.d)))) + scale = min(1.0, math.sqrt(self.max_seq_len / ((H / self.d) * (W / self.d)))) rH = int(H * scale) // self.d * self.d rW = int(W * scale) // self.d * self.d slice_w = int(slice_w * scale) // self.d * self.d