Skip to content

Instantly share code, notes, and snippets.

@OrsoEric
Created March 14, 2025 12:41
Show Gist options
  • Save OrsoEric/908bbbd350945c2c2a72f919af773671 to your computer and use it in GitHub Desktop.
Save OrsoEric/908bbbd350945c2c2a72f919af773671 to your computer and use it in GitHub Desktop.
ComfyuUI image to 3D
{
"last_node_id": 11,
"last_link_id": 8,
"nodes": [
{
"id": 1,
"type": "LoadImage",
"pos": [
-146.97756958007812,
-9.089515686035156
],
"size": [
315,
314.0000305175781
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
7
],
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [],
"slot_index": 1
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.25",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"2025-03-14-flux-unicorn-nobackground.png",
"image"
]
},
{
"id": 11,
"type": "Image Resize",
"pos": [
218.22389221191406,
-6.997629165649414
],
"size": [
315,
178
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 7
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
8
],
"slot_index": 0
}
],
"properties": {
"cnr_id": "was-node-suite-comfyui",
"ver": "9ae952b1b435d2bd846bfe6516919b5a8b9201aa",
"Node name for S&R": "Image Resize"
},
"widgets_values": [
"resize",
"true",
"lanczos",
1,
518,
518
]
},
{
"id": 2,
"type": "Note",
"pos": [
225.85289001464844,
209.64393615722656
],
"size": [
312.0663146972656,
88
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"The image encoder used works at 518x518, every input is resized to that automatically, but better to do it here first in controlled fashion"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 6,
"type": "Hy3DVAEDecode",
"pos": [
981.19580078125,
-194.50831604003906
],
"size": [
315,
174
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "vae",
"type": "HY3DVAE",
"link": 2
},
{
"name": "latents",
"type": "HY3DLATENT",
"link": 3
}
],
"outputs": [
{
"name": "trimesh",
"type": "TRIMESH",
"links": [
4
],
"slot_index": 0
}
],
"properties": {
"cnr_id": "comfyui-hunyan3dwrapper",
"ver": "6090a9051f109d2774d309cf6a8a22d4a11a1b15",
"Node name for S&R": "Hy3DVAEDecode"
},
"widgets_values": [
1.01,
384,
32000,
0,
"mc"
]
},
{
"id": 7,
"type": "Hy3DPostprocessMesh",
"pos": [
1339.6881103515625,
-198.98988342285156
],
"size": [
315,
174
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "trimesh",
"type": "TRIMESH",
"link": 4
},
{
"name": "mask",
"type": "MASK",
"shape": 7,
"link": null
}
],
"outputs": [
{
"name": "trimesh",
"type": "TRIMESH",
"links": [
5
],
"slot_index": 0
}
],
"properties": {
"cnr_id": "comfyui-hunyan3dwrapper",
"ver": "6090a9051f109d2774d309cf6a8a22d4a11a1b15",
"Node name for S&R": "Hy3DPostprocessMesh"
},
"widgets_values": [
true,
true,
true,
50000,
false
]
},
{
"id": 10,
"type": "Note",
"pos": [
2055.3125,
-394.71246337890625
],
"size": [
317.4715270996094,
108.64700317382812
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"If the Preview3D node doesn't work, right click on it and select \"fix node\" or re-create the whole node. It's part of ComfyUI and often gets updated causing mismatch with the version that's in the workflow."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 3,
"type": "Note",
"pos": [
228.54791259765625,
-342.771728515625
],
"size": [
312.0663146972656,
88
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"https://huggingface.co/Kijai/Hunyuan3D-2_safetensors/blob/main/hunyuan3d-dit-v2-0-fp16.safetensors"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 4,
"type": "Hy3DModelLoader",
"pos": [
166.54794311523438,
-187.97186279296875
],
"size": [
372.8913269042969,
126
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "compile_args",
"type": "HY3DCOMPILEARGS",
"shape": 7,
"link": null
}
],
"outputs": [
{
"name": "pipeline",
"type": "HY3DMODEL",
"links": [
1
],
"slot_index": 0
},
{
"name": "vae",
"type": "HY3DVAE",
"links": [
2
],
"slot_index": 1
}
],
"properties": {
"cnr_id": "comfyui-hunyan3dwrapper",
"ver": "6090a9051f109d2774d309cf6a8a22d4a11a1b15",
"Node name for S&R": "Hy3DModelLoader"
},
"widgets_values": [
"kijay-hunyuan3d-dit-v2-0-fp16.safetensors",
"sdpa",
false
]
},
{
"id": 5,
"type": "Hy3DGenerateMesh",
"pos": [
631.7476806640625,
-186.41561889648438
],
"size": [
315,
170
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "pipeline",
"type": "HY3DMODEL",
"link": 1
},
{
"name": "image",
"type": "IMAGE",
"link": 8
},
{
"name": "mask",
"type": "MASK",
"shape": 7,
"link": null
}
],
"outputs": [
{
"name": "latents",
"type": "HY3DLATENT",
"links": [
3
]
}
],
"properties": {
"cnr_id": "comfyui-hunyan3dwrapper",
"ver": "6090a9051f109d2774d309cf6a8a22d4a11a1b15",
"Node name for S&R": "Hy3DGenerateMesh"
},
"widgets_values": [
5.5,
50,
1082218203360433,
"randomize"
]
},
{
"id": 8,
"type": "Hy3DExportMesh",
"pos": [
1684.5928955078125,
-199.6122283935547
],
"size": [
315.6768493652344,
106
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "trimesh",
"type": "TRIMESH",
"link": 5
}
],
"outputs": [
{
"name": "glb_path",
"type": "STRING",
"links": [
6
],
"slot_index": 0
}
],
"properties": {
"cnr_id": "comfyui-hunyan3dwrapper",
"ver": "6090a9051f109d2774d309cf6a8a22d4a11a1b15",
"Node name for S&R": "Hy3DExportMesh"
},
"widgets_values": [
"3D/Hy3D",
"glb",
true
]
},
{
"id": 9,
"type": "Preview3D",
"pos": [
2035.2276611328125,
-213.21597290039062
],
"size": [
799.6446533203125,
714.999267578125
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "model_file",
"type": "STRING",
"widget": {
"name": "model_file"
},
"link": 6
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.25",
"Node name for S&R": "Preview3D",
"Camera Info": {
"position": {
"x": -2.9517055360917683,
"y": 5.748332729511697,
"z": 5.028113922953901
},
"target": {
"x": -0.4050400933995489,
"y": 1.4681358769893273,
"z": 0.00491396402280938
},
"zoom": 1,
"cameraType": "perspective"
},
"Show Grid": true,
"Material Mode": "normal"
},
"widgets_values": [
"3D/Hy3D_00003_.glb",
"original",
"original",
""
]
}
],
"links": [
[
1,
4,
0,
5,
0,
"HY3DMODEL"
],
[
2,
4,
1,
6,
0,
"HY3DVAE"
],
[
3,
5,
0,
6,
1,
"HY3DLATENT"
],
[
4,
6,
0,
7,
0,
"TRIMESH"
],
[
5,
7,
0,
8,
0,
"TRIMESH"
],
[
6,
8,
0,
9,
0,
"STRING"
],
[
7,
1,
0,
11,
0,
"IMAGE"
],
[
8,
11,
0,
5,
1,
"IMAGE"
]
],
"groups": [
{
"id": 1,
"title": "Group",
"bounding": [
-186.75497436523438,
-508.8556213378906,
3105.1474609375,
1118.0657958984375
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
}
],
"config": {},
"extra": {
"ds": {
"scale": 0.6830134553650706,
"offset": [
-374.65321098959555,
673.3179739313792
]
}
},
"version": 0.4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment