This commit is contained in:
City
2023-10-07 16:56:12 +02:00
parent 91bb2fb78b
commit 5dd1fa7410
5 changed files with 29 additions and 48 deletions
+8 -48
View File
@@ -1,48 +1,8 @@
NODE_CLASS_MAPPINGS = {}
NODE_DISPLAY_NAME_MAPPINGS = {}
def remote_control():
global NODE_CLASS_MAPPINGS
global NODE_DISPLAY_NAME_MAPPINGS
from .nodes.remote_control import QueueRemoteChainStart, QueueRemoteChainEnd, QueueRemote, FetchRemote
NODE_CLASS_MAPPINGS.update({
"QueueRemoteChainStart": QueueRemoteChainStart,
"QueueRemoteChainEnd": QueueRemoteChainEnd,
"QueueRemote": QueueRemote,
"FetchRemote": FetchRemote,
})
NODE_DISPLAY_NAME_MAPPINGS.update({
"QueueRemoteChainStart": "Queue on remote (start of chain)",
"QueueRemoteChainEnd": "Queue on remote (end of chain)",
"QueueRemote": "Queue on remote",
"FetchRemote": "Fetch from remote",
})
def remote_images():
global NODE_CLASS_MAPPINGS
global NODE_DISPLAY_NAME_MAPPINGS
from .nodes.remote_images import LoadImageUrl, SaveImageUrl
NODE_CLASS_MAPPINGS.update({
"LoadImageUrl": LoadImageUrl,
"SaveImageUrl": SaveImageUrl,
})
NODE_DISPLAY_NAME_MAPPINGS.update({
"LoadImageUrl": "Load Image (URL)",
"SaveImageUrl": "Save Image (URL)",
})
def remote_misc():
global NODE_CLASS_MAPPINGS
global NODE_DISPLAY_NAME_MAPPINGS
from .nodes.misc import CombineImageBatch
NODE_CLASS_MAPPINGS.update({
"CombineImageBatch": CombineImageBatch,
})
NODE_DISPLAY_NAME_MAPPINGS.update({
"CombineImageBatch": "Combine images",
})
print("Loading network distribution node pack")
remote_control()
remote_images()
remote_misc()
# only import if running as a custom node
try:
import comfy.utils
except ImportError:
pass
else:
from .nodes.nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']