Files

34 lines
1.1 KiB
Python

"""ComfyUI-LensTurbo — Microsoft Lens / Lens-Turbo wrapper.
Exposes two nodes:
* LensTurboLoader — load `LensPipeline` from a local or HF repo id,
with cache + evict + cpu-offload toggles.
* LensTurboSampler — run prompt -> IMAGE.
Banner is printed to BOTH stdout and stderr so a `grep` of comfy.log
always reveals which copy of this pack is actually loaded (defends against
the `*.bak` shadowing trap documented in custom_nodes loading).
"""
from __future__ import annotations
import os as _os
import sys as _sys
__version__ = "0.1.6"
_BANNER = (
f"[ComfyUI-LensTurbo] v{__version__} loaded from "
f"{_os.path.abspath(__file__)}"
)
print(_BANNER, flush=True)
print(_BANNER, file=_sys.stderr, flush=True)
# Node registrations live in nodes/__init__.py; re-export so ComfyUI can
# find NODE_CLASS_MAPPINGS / NODE_DISPLAY_NAME_MAPPINGS at the pack root.
from .nodes import ( # noqa: E402 (banner must print first)
NODE_CLASS_MAPPINGS,
NODE_DISPLAY_NAME_MAPPINGS,
)
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "__version__"]