This commit is contained in:
jakechai
2024-07-22 14:49:51 +08:00
parent 381b166888
commit 549107e8a4
9 changed files with 41 additions and 4 deletions
+10 -2
View File
@@ -31,6 +31,7 @@ Main:
- [JK_workflow_img2mesh_CRM&Zero123plus&MVDream&CharacterGen](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/Workflow/Main/JK_workflow_img2mesh_CRM&Zero123plus&MVDream&CharacterGen.json)
- [JK_workflow_img2mesh_Unique3D&Wonder3D&Era3D](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/Workflow/Main/JK_workflow_img2mesh_Unique3D&Wonder3D&Era3D.json)
- [JK_workflow_img2mesh_Zero123&SV3D](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/Workflow/Main/JK_workflow_img2mesh_Zero123&SV3D.json)
- [JK_workflow_img2mesh_3DGS](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/Workflow/Main/JK_workflow_img2mesh_3DGS.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.)
@@ -193,7 +194,7 @@ Install and copy | replace files (see in replacement folder):
Other:
TripoSR workflow is not included because it is straightforward.
3DGS workflow is not included but you can integrate LGM or GS3D nodes into the workflows I provided easily.
Triplane workflow is not included because it is straightforward.
## JK_workflow : img2mesh : Explanation
![image](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/imgs/img2mesh-types.png)
@@ -205,9 +206,12 @@ Install and copy | replace files (see in replacement folder):
![image](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/imgs/img2mesh_Unique3D&Wonder3D&Era3D-structure.png)
- Workflow breakdown: JUnique3D&Wonder3D&Era3D
![image](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/imgs/img2mesh_Zero123&SV3D-sturcture.png)
![image](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/imgs/img2mesh_Zero123&SV3D-structure.png)
- Workflow breakdown: Zero123&SV3D
![image](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/imgs/img2mesh_3DGS-structure.png)
- Workflow breakdown: 3DGS
![image](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/imgs/img2mesh_CRM&Zero123plus&MVDream&CharacterGen.png)
- Workflow Control Panels: CRM&Zero123plus&MVDream&CharacterGen
@@ -217,6 +221,9 @@ Install and copy | replace files (see in replacement folder):
![image](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/imgs/img2mesh_Zero123&SV3D.png)
- Workflow Control Panels: Zero123&SV3D
![image](https://github.com/jakechai/ComfyUI-JakeUpgrade/blob/master/imgs/img2mesh_3DGS.png)
- Workflow Control Panels: 3DGS
## JakeUpgrade Custom Nodes
Misc Nodes
SD1.5 Aspect Ratio JK🐉
@@ -382,6 +389,7 @@ Jake Upgrade Nodes are inspired by:
- 2024-07-11 - v1.0.6 Noise Injection for Upscale Workflow.
- 2024-07-16 - v1.0.7 Single Image to Mesh Workflow updated.
- 2024-07-21 - v1.0.8 Orbit Poses Constant nodes added. 3 Image to Mesh Workflows updated.
- 2024-07-22 - v1.0.9 3DGS workflow added.
## Workflow Todo List
- ControlNet Preprocess
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
@@ -91,6 +91,7 @@ NODE_CLASS_MAPPINGS = {
"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,
"CR Ply Input Switch JK": CR_PlyInputSwitch_JK,
"CR Orbit Pose Input Switch JK": CR_OrbitPoseInputSwitch_JK,
### ComfyMath Fix Nodes
"CM_BoolToInt JK": BoolToInt_JK,
@@ -228,6 +229,7 @@ NODE_DISPLAY_NAME_MAPPINGS = {
"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🐉",
"CR Ply Input Switch JK": "Ply Input Switch JK🐉",
"CR Orbit Pose Input Switch JK": "Orbit Pose Input Switch JK🐉",
### ComfyMath Fix Nodes
"CM_BoolToInt JK": "BoolToInt JK🐉",
Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 KiB

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

+26
View File
@@ -2825,6 +2825,30 @@ class CR_MeshInputSwitch_JK:
else:
return (mesh_false, boolean_value)
class CR_PlyInputSwitch_JK:
def __init__(self):
pass
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"boolean_value": ("BOOLEAN", {"default": False}),
"ply_false": ("GS_PLY", {"forceInput": True}),
"ply_true": ("GS_PLY", {"forceInput": True}),
}
}
RETURN_TYPES = ("GS_PLY", "BOOLEAN",)
FUNCTION = "ply_switch"
CATEGORY = icons.get("JK/Logic")
def mesh_switch(self, boolean_value, ply_false, ply_true):
if boolean_value == True:
return (ply_true, boolean_value)
else:
return (ply_false, boolean_value)
class CR_OrbitPoseInputSwitch_JK:
def __init__(self):
pass
@@ -4228,6 +4252,7 @@ NODE_CLASS_MAPPINGS = {
"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,
"CR Ply Input Switch JK": CR_PlyInputSwitch_JK,
"CR Obit Pose Input Switch JK": CR_ObitPoseInputSwitch_JK,
### ComfyMath Fix Nodes
"CM_BoolToInt JK": BoolToInt_JK,
@@ -4364,6 +4389,7 @@ NODE_DISPLAY_NAME_MAPPINGS = {
"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🐉",
"CR Ply Input Switch JK": "Ply Input Switch JK🐉",
"CR Orbit Pose Input Switch JK": "Orbit Pose Input Switch JK🐉",
### ComfyMath Fix Nodes
"CM_BoolToInt JK": "BoolToInt JK🐉",
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "ComfyUI-JakeUpgrade"
description = "ComfyUI workflow customization by Jake."
version = "1.0.8"
version = "1.0.9"
license = "LICENSE"
dependencies = ["opencv-python", "piexif", "torch", "numpy", "numexpr", "simpleeval"]