diff --git a/README.md b/README.md index c3d462e..74d30d9 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,15 @@ Your ComfyUI Root Directory\python_embeded\python.exe install.py - For use cases please check out [Example Workflows](./_Example_Workflows/). [**Last update: 29/April/2025**] - **Note:** you need to put [Example Inputs Files & Folders](_Example_Workflows/_Example_Inputs_Files/) under ComfyUI Root Directory\ComfyUI\input folder before you can run the example workflow +- **Stable3DGen**: [Stable-X/Stable3DGen](https://github.com/Stable-X/Stable3DGen) + - Two models pipeline: + - Stable3DGen: Single image to 3D Mesh + - StableNormal: Image processing for normal map generation + - Model weights: + - Stable3DGen: https://huggingface.co/Stable-X/trellis-normal-v0-1 + - StableNormal: https://huggingface.co/Stable-X/yoso-normal-v1-8-1 + - [Workflow](./_Example_Workflows/Stable3DGen.json) + - **Hunyuan3D_V2**: turbo, mini, fast, multiview - Single image to 3D Mesh - Multi-views to 3D Mesh with RGB texture diff --git a/_Example_Workflows/Stable3DGen.json b/_Example_Workflows/Stable3DGen.json index 12c9b71..33c30c7 100644 --- a/_Example_Workflows/Stable3DGen.json +++ b/_Example_Workflows/Stable3DGen.json @@ -1,55 +1,9 @@ { "id": "e7d35c6d-c1bf-4f60-9b88-7dc8e70a7b70", "revision": 0, - "last_node_id": 9, - "last_link_id": 8, + "last_node_id": 14, + "last_link_id": 13, "nodes": [ - { - "id": 4, - "type": "[Comfy3D] StableGen StableX Process Image", - "pos": [ - 2500.21044921875, - -672.3021850585938 - ], - "size": [ - 316.2437438964844, - 150 - ], - "flags": {}, - "order": 3, - "mode": 0, - "inputs": [ - { - "name": "stablex_pipe", - "type": "DIFFUSERS_PIPE", - "link": 1 - }, - { - "name": "image", - "type": "IMAGE", - "link": 4 - } - ], - "outputs": [ - { - "name": "processed_image", - "type": "IMAGE", - "links": [ - 5, - 8 - ] - } - ], - "properties": { - "Node name for S&R": "[Comfy3D] StableGen StableX Process Image" - }, - "widgets_values": [ - 2048, - 1, - 365883176136580, - "randomize" - ] - }, { "id": 2, "type": "[Comfy3D] Load StableGen StableX Pipeline", @@ -83,48 +37,133 @@ ] }, { - "id": 1, - "type": "[Comfy3D] Load StableGen Trellis Pipeline", + "id": 9, + "type": "PreviewImage", "pos": [ - 2869.568603515625, - -928.1470336914062 + 2508.2578125, + -465.621337890625 ], "size": [ - 272.52362060546875, - 208.80685424804688 + 308.8748779296875, + 287.5449523925781 ], "flags": {}, - "order": 1, + "order": 4, "mode": 0, - "inputs": [], + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 8 + } + ], + "outputs": [], + "properties": { + "Node name for S&R": "PreviewImage" + }, + "widgets_values": [] + }, + { + "id": 4, + "type": "[Comfy3D] StableGen StableX Process Image", + "pos": [ + 2500.21044921875, + -672.3021850585938 + ], + "size": [ + 316.2437438964844, + 150 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "stablex_pipe", + "type": "DIFFUSERS_PIPE", + "link": 1 + }, + { + "name": "image", + "type": "IMAGE", + "link": 4 + } + ], "outputs": [ { - "name": "trellis_pipe", - "type": "DIFFUSERS_PIPE", + "name": "processed_image", + "type": "IMAGE", "links": [ - 2 + 8, + 11 ] } ], "properties": { - "Node name for S&R": "[Comfy3D] Load StableGen Trellis Pipeline" + "Node name for S&R": "[Comfy3D] StableGen StableX Process Image" }, "widgets_values": [ - "trellis-normal-v0-1", - "dinov2_vitl14_reg", - true, - "xformers", - "spconv", - "implicit_gemm", - true + 2048, + 1, + 124803681813284, + "randomize" + ] + }, + { + "id": 10, + "type": "[Comfy3D] StableGen Trellis Image To 3D", + "pos": [ + 2856.419189453125, + -632.1043701171875 + ], + "size": [ + 290.0210876464844, + 246 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "trellis_pipe", + "type": "DIFFUSERS_PIPE", + "link": 13 + }, + { + "name": "images", + "type": "IMAGE", + "link": 11 + } + ], + "outputs": [ + { + "name": "mesh", + "type": "MESH", + "links": [ + 12 + ] + } + ], + "properties": { + "Node name for S&R": "[Comfy3D] StableGen Trellis Image To 3D" + }, + "widgets_values": [ + "single", + 1101073855966261, + "randomize", + 7.5, + 12, + 3, + 12, + 0.95 ] }, { "id": 7, "type": "[Comfy3D] Preview 3DMesh", "pos": [ - 3201.992919921875, - -664.460693359375 + 3214.147705078125, + -658.788330078125 ], "size": [ 600, @@ -156,8 +195,8 @@ "id": 8, "type": "[Comfy3D] Save 3D Mesh", "pos": [ - 3206.273193359375, - -792.7405395507812 + 3228.152587890625, + -800.8438110351562 ], "size": [ 270, @@ -170,7 +209,7 @@ { "name": "mesh", "type": "MESH", - "link": 6 + "link": 12 } ], "outputs": [ @@ -190,79 +229,40 @@ ] }, { - "id": 9, - "type": "PreviewImage", + "id": 14, + "type": "[Comfy3D] Load StableGen Trellis Pipeline", "pos": [ - 2508.2578125, - -465.621337890625 + 2850.626220703125, + -921.305908203125 ], "size": [ - 308.8748779296875, - 287.5449523925781 + 295.4966735839844, + 202 ], "flags": {}, - "order": 5, + "order": 1, "mode": 0, - "inputs": [ - { - "name": "images", - "type": "IMAGE", - "link": 8 - } - ], - "outputs": [], - "properties": { - "Node name for S&R": "PreviewImage" - }, - "widgets_values": [] - }, - { - "id": 3, - "type": "[Comfy3D] StableGen Trellis Image To 3D", - "pos": [ - 2867.12841796875, - -667.4380493164062 - ], - "size": [ - 290.0210876464844, - 246 - ], - "flags": {}, - "order": 4, - "mode": 0, - "inputs": [ + "inputs": [], + "outputs": [ { "name": "trellis_pipe", "type": "DIFFUSERS_PIPE", - "link": 2 - }, - { - "name": "images", - "type": "IMAGE", - "link": 5 - } - ], - "outputs": [ - { - "name": "mesh", - "type": "MESH", "links": [ - 6 + 13 ] } ], "properties": { - "Node name for S&R": "[Comfy3D] StableGen Trellis Image To 3D" + "Node name for S&R": "[Comfy3D] Load StableGen Trellis Pipeline" }, "widgets_values": [ - "single", - 226815964612107, - "randomize", - 7.5, - 12, - 3, - 12, - 0.95 + "trellis-normal-v0-1", + "dinov2_vitl14_reg", + true, + "xformers", + "spconv", + "implicit_gemm", + true ] }, { @@ -312,14 +312,6 @@ 0, "DIFFUSERS_PIPE" ], - [ - 2, - 1, - 0, - 3, - 0, - "DIFFUSERS_PIPE" - ], [ 4, 5, @@ -328,22 +320,6 @@ 1, "IMAGE" ], - [ - 5, - 4, - 0, - 3, - 1, - "IMAGE" - ], - [ - 6, - 3, - 0, - 8, - 0, - "MESH" - ], [ 7, 8, @@ -359,21 +335,45 @@ 9, 0, "IMAGE" + ], + [ + 11, + 4, + 0, + 10, + 1, + "IMAGE" + ], + [ + 12, + 10, + 0, + 8, + 0, + "MESH" + ], + [ + 13, + 14, + 0, + 10, + 0, + "DIFFUSERS_PIPE" ] ], "groups": [], "config": {}, "extra": { "ds": { - "scale": 0.863837598531476, + "scale": 1.05, "offset": [ - -1991.379607854965, - 966.2832144724473 + -1983.6539415508826, + 996.2888539420522 ] }, "frontendVersion": "1.20.4", "node_versions": { - "ComfyUI-3D-Pack": "5a6f11c6a0f2f6f98ec0eb9e7a7c3264a24ec82a", + "ComfyUI-3D-Pack": "a1ce74e056c61e3e3eb3d927232b5f93bd3980e3", "comfy-core": "0.3.35" }, "VHS_latentpreview": false,