Problems in loading my first ComfyUI node. (Import Failed)
I am trying to load a dummy node to ComfyUI. I have put the file in the custom_nodes folder and I don't see why it should fail as all the packages are installed and the node effectively does nothing. I have also set security to weak in my ComfyUI manager... still nothing. Any idea?
import numpy as np
import time
import torch
import os
import PIL
class GcImagePass:
@classmethod
def INPUT_TYPES(s):
return {
"required": {
},
"optional": {
"image": ("IMAGE",),
},
}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "passthrough"
CATEGORY = "image"
DESCRIPTION = """
Passes the image through without modifying it.
"""
def passthrough(self, image=None):
return image,