mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-09 22:00:49 +08:00
Merge cc5d177b54 into a60b7b86c5
This commit is contained in:
commit
016c4c674b
@ -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)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user