- Split flat node modules into categorized subpackages (tagging, detect, edge, pose, segment, restore, compare, judge, transform, utility) - Extract shared internals into _shared/ (bases, tensor, formatting) - Centralize node registration via register_nodes() helper - Clean up: remove dead is_scored return, unnecessary hasattr guard, inline imports
12 lines
464 B
Python
12 lines
464 B
Python
"""imgutils_nodes edge detection sub-package — Canny, Lineart, and Anime Lineart."""
|
|
|
|
from .._shared import register_nodes
|
|
|
|
NODES: list[tuple[str, str, str]] = [
|
|
("node_canny", "ImgUtilsCanny", "Imgutils Edge (Canny)"),
|
|
("node_lineart", "ImgUtilsLineart", "Imgutils Edge (Lineart)"),
|
|
("node_lineart_anime", "ImgUtilsLineartAnime", "Imgutils Edge (Lineart Anime)"),
|
|
]
|
|
|
|
NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS = register_nodes(__name__, NODES)
|