nodes: add cable management node
This commit is contained in:
@@ -22,7 +22,8 @@ image_layering:
|
|||||||
color_correction:
|
color_correction:
|
||||||
- Adjusts the color of the target image according to another image; ported from stable diffusion WebUI
|
- Adjusts the color of the target image according to another image; ported from stable diffusion WebUI
|
||||||
|
|
||||||
|
model_router:
|
||||||
|
- Batch reroutes `model`, `clip`, `vae`, `condition_1` and `condition_2` for cleaner workflow
|
||||||
|
|
||||||
## External Nodes
|
## External Nodes
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -5,8 +5,8 @@ import custom_nodes.comfy_nodes_trojblue.model_router as model_router
|
|||||||
|
|
||||||
|
|
||||||
NODE_CLASS_MAPPINGS = {
|
NODE_CLASS_MAPPINGS = {
|
||||||
"layering": image_layering.Layering, # Layering
|
"trLayering": image_layering.Layering, # Layering
|
||||||
"color_correction": color_correction.ColorCorrectionNode, # ColorCorrectionNode
|
"trColorCorrection": color_correction.ColorCorrectionNode, # ColorCorrectionNode
|
||||||
"trRouter": model_router.ModelRouterPlugin, # ModelRouterPlugin
|
"trRouter": model_router.ModelRouterPlugin, # ModelRouterPlugin
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,6 +57,3 @@ class ColorCorrectionNode:
|
|||||||
|
|
||||||
return (out_image,)
|
return (out_image,)
|
||||||
|
|
||||||
NODE_CLASS_MAPPINGS = {
|
|
||||||
"ColorCorrectionNode": ColorCorrectionNode
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -90,9 +90,6 @@ class Layering:
|
|||||||
|
|
||||||
return (out_image,)
|
return (out_image,)
|
||||||
|
|
||||||
NODE_CLASS_MAPPINGS = {
|
|
||||||
"Layering": Layering,
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -43,9 +43,3 @@ class ModelRouterPlugin:
|
|||||||
def execute(self, model=None, clip=None, vae=None, conditioning1=None, conditioning2=None):
|
def execute(self, model=None, clip=None, vae=None, conditioning1=None, conditioning2=None):
|
||||||
return model, clip, vae, conditioning1, conditioning2
|
return model, clip, vae, conditioning1, conditioning2
|
||||||
|
|
||||||
|
|
||||||
# A dictionary that contains all nodes you want to export with their names
|
|
||||||
# NOTE: names should be globally unique
|
|
||||||
NODE_CLASS_MAPPINGS = {
|
|
||||||
"trRouter": ModelRouterPlugin
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user