mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-03-28 01:50:49 +08:00
* CURVE node * remove curve to sigmas node * feat: add CurveInput ABC with MonotoneCubicCurve implementation (#12986) CurveInput is an abstract base class so future curve representations (bezier, LUT-based, analytical functions) can be added without breaking downstream nodes that type-check against CurveInput. MonotoneCubicCurve is the concrete implementation that: - Mirrors frontend createMonotoneInterpolator (curveUtils.ts) exactly - Pre-computes slopes as numpy arrays at construction time - Provides vectorised interp_array() using numpy for batch evaluation - interp() for single-value evaluation - to_lut() for generating lookup tables CurveEditor node wraps raw widget points in MonotoneCubicCurve. * linear curve * refactor: move CurveEditor to comfy_extras/nodes_curve.py with V3 schema * feat: add HISTOGRAM type and histogram support to CurveEditor * code improve --------- Co-authored-by: Christian Byrne <cbyrne@comfy.org>
16 lines
375 B
Python
16 lines
375 B
Python
from .basic_types import ImageInput, AudioInput, MaskInput, LatentInput
|
|
from .curve_types import CurvePoint, CurveInput, MonotoneCubicCurve, LinearCurve
|
|
from .video_types import VideoInput
|
|
|
|
__all__ = [
|
|
"ImageInput",
|
|
"AudioInput",
|
|
"VideoInput",
|
|
"MaskInput",
|
|
"LatentInput",
|
|
"CurvePoint",
|
|
"CurveInput",
|
|
"MonotoneCubicCurve",
|
|
"LinearCurve",
|
|
]
|