Merge pull request #18 from jakechai/main

v1.0.7v3
This commit is contained in:
jakechai
2024-07-17 23:57:24 +08:00
committed by GitHub
13 changed files with 39 additions and 11 deletions
+8 -8
View File
@@ -26,20 +26,20 @@ A [ComfyUI](https://github.com/comfyanonymous/ComfyUI) workflow customization by
Main:
- [JK_workflow_tex2img_img2img_SDXL](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/Workflow/Main/JK_workflow_tex2img_img2img_SDXL.json)
- [JK_workflow_tex2img_img2img_SD15](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/Workflow/Main/JK_workflow_tex2img_img2img_SD15.json)
- [JK_workflow_Seamless Texture](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/Workflow/Main/JK_workflow_Seamless%20Texture.json)
- [JK_workflow_img2mesh_single_CRM&Zero123plus](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/Workflow/Main/JK_workflow_img2mesh_single_CRM&Zero123plus.json)
- [JK_workflow_img2mesh_single_CRM&Zero123plus&MVDream&CharacterGen](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/Workflow/Main/JK_workflow_img2mesh_single_CRM&Zero123plus&MVDream&CharacterGen.json)
- [JK_workflow_img2mesh_single_Unique&Wonder&Era3D](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/Workflow/Main/JK_workflow_img2mesh_single_Unique&Wonder&Era3D.json)
- [JK_workflow_img2mesh_multi](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/Workflow/Main/JK_workflow_img2mesh_multi.json)
(Tips: ComfyUI-3D-Pack needs pytorch 2.3.0+cu121 and xformers, but the latest ComfyUI_windows_portable version uses pytorch 2.3.1+cu121, you should separate those two ComfyUI.)
Other:
- [JK_workflow_Concept](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/Workflow/JK_workflow_Concept.json)
- [JK_workflow_Detailer](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/Workflow/JK_workflow_Detailer.json)
- [JK_workflow_Inpaint](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/Workflow/JK_workflow_Inpaint.json)
- [JK_workflow_tex2img_Simple](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/Workflow/JK_workflow_tex2img_Simple.json)
- [JK_workflow_Upscale](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/Workflow/JK_workflow_Upscale.json)
- [JK_Workflow_Mesh-ReMesh_Projection](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/Workflow/JK_Workflow_Mesh-ReMesh_Projection.json)
- [JK_workflow_Concept](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/Workflow/Module/JK_workflow_Concept.json)
- [JK_workflow_Seamless Texture](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/Workflow/Module/JK_workflow_Seamless%20Texture.json)
- [JK_workflow_Detailer](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/Workflow/Module/JK_workflow_Detailer.json)
- [JK_workflow_Inpaint](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/Workflow/Module/JK_workflow_Inpaint.json)
- [JK_workflow_tex2img_Simple](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/Workflow/Module/JK_workflow_tex2img_Simple.json)
- [JK_workflow_Upscale](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/Workflow/Module/JK_workflow_Upscale.json)
- [JK_Workflow_Mesh-ReMesh_Projection](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/Workflow/Module/JK_Workflow_Mesh-ReMesh_Projection.json)
## Required Custom Nodes
To use JK_workflow, you need to install:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2
View File
@@ -90,6 +90,7 @@ NODE_CLASS_MAPPINGS = {
"CR Switch Model and CLIP JK": CR_ModelAndCLIPInputSwitch_JK,
"CR Pipe Input Switch JK": CR_PipeInputSwitch_JK,
"CR Impact Pipe Input Switch JK": CR_ImpactPipeInputSwitch_JK,
"CR Mesh Input Switch JK": CR_MeshInputSwitch_JK,
### ComfyMath Fix Nodes
"CM_BoolToInt JK": BoolToInt_JK,
"CM_IntToBool JK": IntToBool_JK,
@@ -223,6 +224,7 @@ NODE_DISPLAY_NAME_MAPPINGS = {
"CR Switch Model and CLIP JK": "Switch Model and CLIP JK🐉",
"CR Pipe Input Switch JK": "Pipe Input Switch JK🐉",
"CR Impact Pipe Input Switch JK": "Impact Pipe Input Switch JK🐉",
"CR Mesh Input Switch JK": "Mesh Input Switch JK🐉",
### ComfyMath Fix Nodes
"CM_BoolToInt JK": "BoolToInt JK🐉",
"CM_IntToBool JK": "IntToBool JK🐉",
+27 -1
View File
@@ -2801,6 +2801,30 @@ class CR_ImpactPipeInputSwitch_JK:
else:
return (pipe_false, boolean_value)
class CR_MeshInputSwitch_JK:
def __init__(self):
pass
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"boolean_value": ("BOOLEAN", {"default": False}),
"mesh_false": ("MESH", {"forceInput": True}),
"mesh_true": ("MESH", {"forceInput": True}),
}
}
RETURN_TYPES = ("MESH", "BOOLEAN",)
FUNCTION = "mesh_switch"
CATEGORY = icons.get("JK/Logic")
def mesh_switch(self, boolean_value, mesh_false, mesh_true):
if boolean_value == True:
return (mesh_true, boolean_value)
else:
return (mesh_false, boolean_value)
#---------------------------------------------------------------------------------------------------------------------#
# ComfyMath Fix Nodes
#---------------------------------------------------------------------------------------------------------------------#
@@ -3976,7 +4000,7 @@ OrbitPoses = {
"Era3D(6)": [[0.0, 45.0, 90.0, 180.0, -90.0, -45.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0]], #[[radius], [radius], [radius], [radius], [radius], [radius]], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
"MVDream(4)": [[0.0, 90.0, 180.0, -90.0], [0.0, 0.0, 0.0, 0.0], [4.0, 4.0, 4.0, 4.0], [0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0]],
"Unique3D(4)": [[0.0, 90.0, 180.0, -90.0], [0.0, 0.0, 0.0, 0.0]], #[[radius], [radius], [radius], [radius]], [0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0]
"CharacterGen(4)": [[-90.0, 90.0, 180.0, 0.0], [0.0, 0.0, 0.0, 0.0]], #[[radius], [radius], [radius], [radius]], [0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0]
"CharacterGen(4)": [[-90.0, 180.0, 90.0, 0.0], [0.0, 0.0, 0.0, 0.0]], #[[radius], [radius], [radius], [radius]], [0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0]
}
class OrbitPoses_JK:
@@ -4108,6 +4132,7 @@ NODE_CLASS_MAPPINGS = {
"CR Switch Model and CLIP JK": CR_ModelAndCLIPInputSwitch_JK,
"CR Pipe Input Switch JK": CR_PipeInputSwitch_JK,
"CR Impact Pipe Input Switch JK": CR_ImpactPipeInputSwitch_JK,
"CR Mesh Input Switch JK": CR_MeshInputSwitch_JK,
### ComfyMath Fix Nodes
"CM_BoolToInt JK": BoolToInt_JK,
"CM_IntToBool JK": IntToBool_JK,
@@ -4240,6 +4265,7 @@ NODE_DISPLAY_NAME_MAPPINGS = {
"CR Switch Model and CLIP JK": "Switch Model and CLIP JK🐉",
"CR Pipe Input Switch JK": "Pipe Input Switch JK🐉",
"CR Impact Pipe Input Switch JK": "Impact Pipe Input Switch JK🐉",
"CR Mesh Input Switch JK": "Mesh Input Switch JK🐉",
### ComfyMath Fix Nodes
"CM_BoolToInt JK": "BoolToInt JK🐉",
"CM_IntToBool JK": "IntToBool JK🐉",