30 lines
631 B
Python
30 lines
631 B
Python
import os.path
|
|
import folder_paths
|
|
from nodes import LoadImage
|
|
|
|
|
|
class OpenPoseEditorPlus:
|
|
@classmethod
|
|
def INPUT_TYPES(s):
|
|
return {"required":
|
|
{"image": ("STRING", { "default": "" })},
|
|
}
|
|
|
|
RETURN_TYPES = ("IMAGE",)
|
|
FUNCTION = "load_image"
|
|
|
|
CATEGORY = "image"
|
|
|
|
def load_image(self, image):
|
|
image, mask = LoadImage.load_image(self, image)
|
|
return (image,)
|
|
|
|
|
|
NODE_CLASS_MAPPINGS = {
|
|
"CDL.OpenPoseEditorPlus": OpenPoseEditorPlus
|
|
}
|
|
|
|
NODE_DISPLAY_NAME_MAPPINGS = {
|
|
"CDL.OpenPoseEditorPlus": "Openpose Editor Plus",
|
|
}
|