Compensate for RES4LYF overwriting schedulers.

This commit is contained in:
Jordan Thompson
2026-04-27 09:42:06 -07:00
parent 5e5edac72f
commit 7de6bfdb38
2 changed files with 9 additions and 2 deletions
-1
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""
RES4SHO -- High-Frequency Detail Sampling for ComfyUI
+9 -1
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""
HF-Detail Sampling -- exponential integrator with spectral high-frequency
emphasis (HFE), tuned for realistic detail preservation.
@@ -1897,6 +1896,15 @@ def _register_schedulers() -> None:
names.append(name)
comfy_samplers.SCHEDULER_NAMES = names
KSampler = getattr(comfy_samplers, "KSampler", None)
if KSampler is not None and hasattr(KSampler, "SCHEDULERS"):
sched_list = getattr(KSampler, "SCHEDULERS")
if not isinstance(sched_list, list):
sched_list = list(sched_list)
if name not in sched_list:
sched_list.append(name)
KSampler.SCHEDULERS = sched_list
LOGGER.info("HFE schedulers registered: %s", list(_SCHEDULERS.keys()))