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:
limbicnation
2024-09-05 04:11:01 +02:00
parent 59b55e66c5
commit 3a0fc65b64
+11
View File
@@ -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"]