fix: resolve import issues and add __init__.py for custom node
- Added __init__.py to register the custom node properly - Fixed folder structure for correct module imports - Updated node file to handle imports based on the environment
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
from .your_node_file import ComfyUIDepthEstimationNode
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"ComfyUIDepthEstimationNode": ComfyUIDepthEstimationNode
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"ComfyUIDepthEstimationNode": "Depth Estimation Node"
|
||||
}
|
||||
|
||||
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS"]
|
||||
Reference in New Issue
Block a user