Files
workflow-templates-broken-z…/templates/04_hunyuan_3d_2.1_subgraphed.json
2026-06-07 20:47:45 -07:00

821 lines
20 KiB
JSON

{
"id": "4125c6df-9bca-430d-8e85-7cff9cc592d4",
"revision": 1,
"last_node_id": 23,
"last_link_id": 24,
"nodes": [
{
"id": 10,
"type": "SaveGLB",
"pos": [
990.9999517005296,
-405.9999805298452
],
"size": [
810,
861.6666666666667
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "mesh",
"type": "MESH",
"link": 24
}
],
"outputs": [],
"properties": {
"Node name for S&R": "SaveGLB",
"cnr_id": "comfy-core",
"ver": "0.3.59",
"Camera Info": {
"position": {
"x": 9.380174569468211,
"y": 10,
"z": 9.380174569468211
},
"target": {
"x": 0,
"y": 2.5,
"z": 0
},
"zoom": 1,
"cameraType": "perspective"
},
"Camera Config": {
"cameraType": "perspective",
"fov": 75,
"state": {
"position": {
"x": 7.278568522102301,
"y": 7.278568522102303,
"z": 7.278568522102302
},
"target": {
"x": 0,
"y": 0,
"z": 0
},
"zoom": 1,
"cameraType": "perspective"
}
}
},
"widgets_values": [
"mesh/HanzoStudio",
""
]
},
{
"id": 2,
"type": "LoadImage",
"pos": [
101.000073770842,
-405.9999805298452
],
"size": [
510.87239583333337,
619.2057291666667
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
23
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"Node name for S&R": "LoadImage",
"cnr_id": "comfy-core",
"ver": "0.3.59"
},
"widgets_values": [
"04_hunyuan_3d_2.1_subgraphed_input_image.png",
"image"
]
},
{
"id": 19,
"type": "d7344a5a-fd0d-4b8a-b5e1-1237e5b21937",
"pos": [
631.0000127356856,
-405.9999805298452
],
"size": [
340,
70
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 23
}
],
"outputs": [
{
"name": "MESH",
"type": "MESH",
"links": [
24
]
}
],
"properties": {
"proxyWidgets": [
[
"-1",
"ckpt_name"
]
],
"cnr_id": "comfy-core",
"ver": "0.3.65"
},
"widgets_values": [
"hunyuan_3d_v2.1.safetensors"
]
},
{
"id": 20,
"type": "MarkdownNote",
"pos": [
-358.99995674673625,
-405.9999805298452
],
"size": [
450,
628.1901041666667
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [],
"title": "Note: how to use this workflow",
"properties": {},
"widgets_values": [
"Huanyuan3D 2.1 is an image-to-3D model tool. It can turn any of your images into a 3D model.\n\n## For Comfy Cloud Users\n\nIf you are using [cloud.hanzo.ai](https://cloud.hanzo.ai/):\n1. Since the workflow in the Cloud will have the input image ready, for the first run, you can just click the run button to see what happens. \n\n2. Try to upload your own image; the input image requires a clean, simple background.\n3. You can also find some other 3D workflows in the left sidebar templates.\n\n## For Local Users\nIf you are using this workflow locally, you need to download all the models to your local storage. \n\nUse the right-click menu to edit the subgraph. Then you can find the original workflow and notes inside it.\nYou can find the tutorial and original workflow [here](https://raw.githubusercontent.com/hanzoui/workflow-templates/refs/heads/main/templates/3d_hunyuan3d-v2.1.json).\n\n## Model\nDownload [hunyuan_3d_v2.1.safetensors](https://huggingface.co/hanzoui/hunyuan3D_2.1_repackaged/resolve/main/hunyuan_3d_v2.1.safetensors) \n\nPut it under the **HanzoStudio/models/checkpoints** directory\n\n## Report Issues\n\nIf you have any problems running this workflow, please report template-related issues via this link: [report the template issue here](https://github.com/hanzoui/workflow-templates/issues)"
],
"color": "#432",
"bgcolor": "#000"
},
{
"id": 21,
"type": "Note",
"pos": [
990,
510
],
"size": [
440,
90
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [],
"title": "Download the 3D model.",
"properties": {},
"widgets_values": [
"On the SaveGLB node, you can find an `export` menu in the left-side menu. You can use it to export the 3D model. If you are running Hanzo Studio locally, you can find the saved model in \"HanzoStudio/output/3D\"."
],
"color": "#432",
"bgcolor": "#000"
}
],
"links": [
[
23,
2,
0,
19,
0,
"IMAGE"
],
[
24,
19,
0,
10,
0,
"MESH"
]
],
"groups": [],
"definitions": {
"subgraphs": [
{
"id": "d7344a5a-fd0d-4b8a-b5e1-1237e5b21937",
"version": 1,
"state": {
"lastGroupId": 2,
"lastNodeId": 18,
"lastLinkId": 23,
"lastRerouteId": 0
},
"revision": 0,
"config": {},
"name": "Hunyuan 2.1 Image-to-3D (Simplified)",
"inputNode": {
"id": -10,
"bounding": [
-138.94803619384766,
-392.62060546875,
120,
80
]
},
"outputNode": {
"id": -20,
"bounding": [
1090,
-310,
120,
60
]
},
"inputs": [
{
"id": "ab9b5b83-88f9-4698-954d-93f644bd07aa",
"name": "image",
"type": "IMAGE",
"linkIds": [
21
],
"localized_name": "image",
"pos": [
-38.948036193847656,
-372.62060546875
]
},
{
"id": "e15b0ba4-b5fe-41eb-9266-006ce1f1cf79",
"name": "ckpt_name",
"type": "COMBO",
"linkIds": [
23
],
"pos": [
-38.948036193847656,
-352.62060546875
]
}
],
"outputs": [
{
"id": "c8744662-e812-49b3-8bc8-744d557db6d6",
"name": "MESH",
"type": "MESH",
"linkIds": [
11
],
"localized_name": "MESH",
"pos": [
1110,
-290
]
}
],
"widgets": [],
"nodes": [
{
"id": 7,
"type": "KSampler",
"pos": [
760,
-510
],
"size": [
270,
262
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"localized_name": "model",
"name": "model",
"type": "MODEL",
"link": 19
},
{
"localized_name": "positive",
"name": "positive",
"type": "CONDITIONING",
"link": 5
},
{
"localized_name": "negative",
"name": "negative",
"type": "CONDITIONING",
"link": 6
},
{
"localized_name": "latent_image",
"name": "latent_image",
"type": "LATENT",
"link": 7
}
],
"outputs": [
{
"localized_name": "LATENT",
"name": "LATENT",
"type": "LATENT",
"links": [
8
]
}
],
"properties": {
"Node name for S&R": "KSampler",
"cnr_id": "comfy-core",
"ver": "0.3.59"
},
"widgets_values": [
894796671366012,
"randomize",
30,
5,
"euler",
"normal",
1
]
},
{
"id": 13,
"type": "CLIPVisionEncode",
"pos": [
450,
-410
],
"size": [
270,
80
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"localized_name": "clip_vision",
"name": "clip_vision",
"type": "CLIP_VISION",
"link": 20
},
{
"localized_name": "image",
"name": "image",
"type": "IMAGE",
"link": 21
}
],
"outputs": [
{
"localized_name": "CLIP_VISION_OUTPUT",
"name": "CLIP_VISION_OUTPUT",
"type": "CLIP_VISION_OUTPUT",
"links": [
22
]
}
],
"properties": {
"Node name for S&R": "CLIPVisionEncode",
"cnr_id": "comfy-core",
"ver": "0.3.59"
},
"widgets_values": [
"center"
]
},
{
"id": 6,
"type": "Hunyuan3Dv2Conditioning",
"pos": [
510,
-280
],
"size": [
217.82578125,
46
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"localized_name": "clip_vision_output",
"name": "clip_vision_output",
"type": "CLIP_VISION_OUTPUT",
"link": 22
}
],
"outputs": [
{
"localized_name": "positive",
"name": "positive",
"type": "CONDITIONING",
"links": [
5
]
},
{
"localized_name": "negative",
"name": "negative",
"type": "CONDITIONING",
"links": [
6
]
}
],
"properties": {
"Node name for S&R": "Hunyuan3Dv2Conditioning",
"cnr_id": "comfy-core",
"ver": "0.3.59"
},
"widgets_values": []
},
{
"id": 4,
"type": "EmptyLatentHunyuan3Dv2",
"pos": [
450,
-180
],
"size": [
270,
82
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"localized_name": "LATENT",
"name": "LATENT",
"type": "LATENT",
"links": [
7
]
}
],
"properties": {
"Node name for S&R": "EmptyLatentHunyuan3Dv2",
"cnr_id": "comfy-core",
"ver": "0.3.59"
},
"widgets_values": [
4096,
1
]
},
{
"id": 9,
"type": "VoxelToMesh",
"pos": [
760,
-40
],
"size": [
270,
82
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"localized_name": "voxel",
"name": "voxel",
"type": "VOXEL",
"link": 10
}
],
"outputs": [
{
"localized_name": "MESH",
"name": "MESH",
"type": "MESH",
"links": [
11
]
}
],
"properties": {
"Node name for S&R": "VoxelToMesh",
"cnr_id": "comfy-core",
"ver": "0.3.59"
},
"widgets_values": [
"surface net",
0.6
]
},
{
"id": 8,
"type": "VAEDecodeHunyuan3D",
"pos": [
760,
-200
],
"size": [
270,
102
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"localized_name": "samples",
"name": "samples",
"type": "LATENT",
"link": 8
},
{
"localized_name": "vae",
"name": "vae",
"type": "VAE",
"link": 18
}
],
"outputs": [
{
"localized_name": "VOXEL",
"name": "VOXEL",
"type": "VOXEL",
"links": [
10
]
}
],
"properties": {
"Node name for S&R": "VAEDecodeHunyuan3D",
"cnr_id": "comfy-core",
"ver": "0.3.59"
},
"widgets_values": [
8000,
256
]
},
{
"id": 1,
"type": "ImageOnlyCheckpointLoader",
"pos": [
60,
-510
],
"size": [
356.0005859375,
100
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"localized_name": "ckpt_name",
"name": "ckpt_name",
"type": "COMBO",
"widget": {
"name": "ckpt_name"
},
"link": 23
}
],
"outputs": [
{
"localized_name": "MODEL",
"name": "MODEL",
"type": "MODEL",
"links": [
16
]
},
{
"localized_name": "CLIP_VISION",
"name": "CLIP_VISION",
"type": "CLIP_VISION",
"links": [
20
]
},
{
"localized_name": "VAE",
"name": "VAE",
"type": "VAE",
"links": [
18
]
}
],
"properties": {
"Node name for S&R": "ImageOnlyCheckpointLoader",
"cnr_id": "comfy-core",
"ver": "0.3.59",
"models": [
{
"name": "hunyuan_3d_v2.1.safetensors",
"url": "https://huggingface.co/hanzoui/hunyuan3D_2.1_repackaged/resolve/main/hunyuan_3d_v2.1.safetensors",
"directory": "checkpoints"
}
]
},
"widgets_values": [
"hunyuan_3d_v2.1.safetensors"
]
},
{
"id": 3,
"type": "ModelSamplingAuraFlow",
"pos": [
450,
-510
],
"size": [
270,
58
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"localized_name": "model",
"name": "model",
"type": "MODEL",
"link": 16
}
],
"outputs": [
{
"localized_name": "MODEL",
"name": "MODEL",
"type": "MODEL",
"links": [
19
]
}
],
"properties": {
"Node name for S&R": "ModelSamplingAuraFlow",
"cnr_id": "comfy-core",
"ver": "0.3.59"
},
"widgets_values": [
1
]
}
],
"groups": [],
"links": [
{
"id": 16,
"origin_id": 1,
"origin_slot": 0,
"target_id": 3,
"target_slot": 0,
"type": "MODEL"
},
{
"id": 19,
"origin_id": 3,
"origin_slot": 0,
"target_id": 7,
"target_slot": 0,
"type": "MODEL"
},
{
"id": 5,
"origin_id": 6,
"origin_slot": 0,
"target_id": 7,
"target_slot": 1,
"type": "CONDITIONING"
},
{
"id": 6,
"origin_id": 6,
"origin_slot": 1,
"target_id": 7,
"target_slot": 2,
"type": "CONDITIONING"
},
{
"id": 7,
"origin_id": 4,
"origin_slot": 0,
"target_id": 7,
"target_slot": 3,
"type": "LATENT"
},
{
"id": 8,
"origin_id": 7,
"origin_slot": 0,
"target_id": 8,
"target_slot": 0,
"type": "LATENT"
},
{
"id": 18,
"origin_id": 1,
"origin_slot": 2,
"target_id": 8,
"target_slot": 1,
"type": "VAE"
},
{
"id": 10,
"origin_id": 8,
"origin_slot": 0,
"target_id": 9,
"target_slot": 0,
"type": "VOXEL"
},
{
"id": 20,
"origin_id": 1,
"origin_slot": 1,
"target_id": 13,
"target_slot": 0,
"type": "CLIP_VISION"
},
{
"id": 22,
"origin_id": 13,
"origin_slot": 0,
"target_id": 6,
"target_slot": 0,
"type": "CLIP_VISION_OUTPUT"
},
{
"id": 21,
"origin_id": -10,
"origin_slot": 0,
"target_id": 13,
"target_slot": 1,
"type": "IMAGE"
},
{
"id": 11,
"origin_id": 9,
"origin_slot": 0,
"target_id": -20,
"target_slot": 0,
"type": "MESH"
},
{
"id": 23,
"origin_id": -10,
"origin_slot": 1,
"target_id": 1,
"target_slot": 0,
"type": "COMBO"
}
],
"extra": {
"workflowRendererVersion": "LG"
}
}
]
},
"config": {},
"extra": {
"ds": {
"scale": 0.6209213230591554,
"offset": [
1038.8375633747019,
1016.8542667701035
]
},
"frontendVersion": "1.35.7",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true,
"workflowRendererVersion": "LG"
},
"version": 0.4
}