Browse Source

Fix differential diffusion node for batches.

pull/3267/head
comfyanonymous 9 months ago
parent
commit
0490ce8244
  1. 2
      comfy_extras/nodes_differential_diffusion.py

2
comfy_extras/nodes_differential_diffusion.py

@ -27,7 +27,7 @@ class DifferentialDiffusion():
ts_from = model.inner_model.model_sampling.timestep(sigma_from) ts_from = model.inner_model.model_sampling.timestep(sigma_from)
ts_to = model.inner_model.model_sampling.timestep(sigma_to) ts_to = model.inner_model.model_sampling.timestep(sigma_to)
current_ts = model.inner_model.model_sampling.timestep(sigma) current_ts = model.inner_model.model_sampling.timestep(sigma[0])
threshold = (current_ts - ts_to) / (ts_from - ts_to) threshold = (current_ts - ts_to) / (ts_from - ts_to)

Loading…
Cancel
Save