Skip to content

Commit

Permalink
Remove comfy.samplers self-import (#6506)
Browse files Browse the repository at this point in the history
  • Loading branch information
catboxanon authored Jan 18, 2025
1 parent 3a3910f commit b1a0213
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions comfy/samplers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from comfy import model_management
import math
import logging
import comfy.samplers
import comfy.sampler_helpers
import comfy.model_patcher
import comfy.patcher_extension
Expand Down Expand Up @@ -178,7 +177,7 @@ def finalize_default_conds(model: 'BaseModel', hooked_to_run: dict[comfy.hooks.H
cond = default_conds[i]
for x in cond:
# do get_area_and_mult to get all the expected values
p = comfy.samplers.get_area_and_mult(x, x_in, timestep)
p = get_area_and_mult(x, x_in, timestep)
if p is None:
continue
# replace p's mult with calculated mult
Expand Down Expand Up @@ -215,7 +214,7 @@ def _calc_cond_batch(model: 'BaseModel', conds: list[list[dict]], x_in: torch.Te
default_c.append(x)
has_default_conds = True
continue
p = comfy.samplers.get_area_and_mult(x, x_in, timestep)
p = get_area_and_mult(x, x_in, timestep)
if p is None:
continue
if p.hooks is not None:
Expand Down

0 comments on commit b1a0213

Please sign in to comment.