mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-20 11:32:58 +08:00
Merge branch 'master' into dr-support-pip-cm
This commit is contained in:
commit
ca04f8f401
@ -164,8 +164,11 @@ class IndexListContextHandler(ContextHandlerABC):
|
|||||||
return resized_cond
|
return resized_cond
|
||||||
|
|
||||||
def set_step(self, timestep: torch.Tensor, model_options: dict[str]):
|
def set_step(self, timestep: torch.Tensor, model_options: dict[str]):
|
||||||
indexes = torch.where(model_options["transformer_options"]["sample_sigmas"] == timestep[0])
|
mask = torch.isclose(model_options["transformer_options"]["sample_sigmas"], timestep, rtol=0.0001)
|
||||||
self._step = int(indexes[0])
|
matches = torch.nonzero(mask)
|
||||||
|
if torch.numel(matches) == 0:
|
||||||
|
raise Exception("No sample_sigmas matched current timestep; something went wrong.")
|
||||||
|
self._step = int(matches[0].item())
|
||||||
|
|
||||||
def get_context_windows(self, model: BaseModel, x_in: torch.Tensor, model_options: dict[str]) -> list[IndexListContextWindow]:
|
def get_context_windows(self, model: BaseModel, x_in: torch.Tensor, model_options: dict[str]) -> list[IndexListContextWindow]:
|
||||||
full_length = x_in.size(self.dim) # TODO: choose dim based on model
|
full_length = x_in.size(self.dim) # TODO: choose dim based on model
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
comfyui-frontend-package==1.25.8
|
comfyui-frontend-package==1.25.9
|
||||||
comfyui-workflow-templates==0.1.60
|
comfyui-workflow-templates==0.1.60
|
||||||
comfyui-embedded-docs==0.2.6
|
comfyui-embedded-docs==0.2.6
|
||||||
comfyui_manager
|
comfyui_manager
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user