This commit is contained in:
jzhang-POP 2026-01-07 12:47:34 +01:00 committed by GitHub
commit 3550ef1216
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -49,6 +49,9 @@ class DifferentialDiffusion(io.ComfyNode):
threshold = (current_ts - ts_to) / (ts_from - ts_to)
# Move the threshold tensor to the same device as denoise mask tensor
threshold = threshold.to(denoise_mask.device)
# Generate the binary mask based on the threshold
binary_mask = (denoise_mask >= threshold).to(denoise_mask.dtype)