- Add ImageMaskComparer node: compares masked regions of two images with similarity scoring and automatic retry/re-queue on mismatch - Register ImageMaskComparer in __init__.py - Add pyproject.toml for Comfy Registry publishing (addresses PR #1) - Add GitHub Actions workflow for auto-publishing (addresses PR #2) - Add .gitignore for __pycache__ - Update README with documentation for both nodes Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
605 B
Python
22 lines
605 B
Python
import os
|
|
import sys
|
|
|
|
current_dir = os.path.dirname(os.path.abspath(__file__))
|
|
if current_dir not in sys.path:
|
|
sys.path.append(current_dir)
|
|
|
|
from aspect_outpaint_node import RandomAspectRatioMask
|
|
from image_mask_comparer import ImageMaskComparer
|
|
|
|
NODE_CLASS_MAPPINGS = {
|
|
"RandomAspectRatioMask": RandomAspectRatioMask,
|
|
"ImageMaskComparer": ImageMaskComparer
|
|
}
|
|
|
|
NODE_DISPLAY_NAME_MAPPINGS = {
|
|
"RandomAspectRatioMask": "Pad Image by Aspect for Outpaint",
|
|
"ImageMaskComparer": "Image Mask Comparer",
|
|
}
|
|
|
|
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS"]
|