278 lines
5.8 KiB
JSON
278 lines
5.8 KiB
JSON
{
|
|
"id": "trellismac-mesh-only",
|
|
"revision": 0,
|
|
"last_node_id": 6,
|
|
"last_link_id": 4,
|
|
"nodes": [
|
|
{
|
|
"id": 6,
|
|
"type": "MarkdownNote",
|
|
"pos": [
|
|
-1320,
|
|
-560
|
|
],
|
|
"size": [
|
|
820,
|
|
560
|
|
],
|
|
"flags": {},
|
|
"order": 0,
|
|
"mode": 0,
|
|
"inputs": [],
|
|
"outputs": [],
|
|
"title": "Setup Notes",
|
|
"properties": {
|
|
"Node name for S&R": "MarkdownNote"
|
|
},
|
|
"widgets_values": [
|
|
"## ComfyUI-TrellisMac Setup\n\nThis workflow needs the **ComfyUI-TrellisMac** node pack and a working **trellis-mac** checkout.\n\n### Required repos\n\n- [ComfyUI-TrellisMac](https://github.com/dmvvilela/ComfyUI-TrellisMac)\n- [trellis-mac](https://github.com/shivampkumar/trellis-mac)\n\n### Gated Hugging Face models\n\nAccept access before first run:\n\n- [facebook/dinov3-vitl16-pretrain-lvd1689m](https://huggingface.co/facebook/dinov3-vitl16-pretrain-lvd1689m)\n- [briaai/RMBG-2.0](https://huggingface.co/briaai/RMBG-2.0)\n\nThen authenticate with:\n\n```bash\nhf auth login\n```\n\n### Install once\n\nRun with the same Python that launches ComfyUI:\n\n```bash\n/path/to/ComfyUI/.venv/bin/python custom_nodes/ComfyUI-TrellisMac/install.py \\\n --trellis-mac /path/to/trellis-mac\n\n/path/to/ComfyUI/.venv/bin/python custom_nodes/ComfyUI-TrellisMac/doctor.py\n```\n\n### Launch note\n\nApple Silicon needs this set before ComfyUI starts:\n\n```bash\nPYTORCH_ENABLE_MPS_FALLBACK=1\n```\n\nUse `launch_comfy_trellis.command`, or run:\n\n```bash\nlaunchctl setenv PYTORCH_ENABLE_MPS_FALLBACK 1\n```\n\nThen reopen ComfyUI normally.\n\n### Defaults\n\n- Use **512 - fast** first.\n- Keep **steps = 0** to use TRELLIS.2 pipeline defaults.\n- Use **glb** for ComfyUI Preview3D. Enable **also_obj** only if you want a Blender OBJ copy."
|
|
]
|
|
},
|
|
{
|
|
"id": 1,
|
|
"type": "LoadImage",
|
|
"pos": [
|
|
-900,
|
|
200
|
|
],
|
|
"size": [
|
|
320,
|
|
320
|
|
],
|
|
"flags": {},
|
|
"order": 0,
|
|
"mode": 0,
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "IMAGE",
|
|
"type": "IMAGE",
|
|
"links": [
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"name": "MASK",
|
|
"type": "MASK",
|
|
"links": null
|
|
}
|
|
],
|
|
"title": "Load Image",
|
|
"properties": {
|
|
"Node name for S&R": "LoadImage"
|
|
},
|
|
"widgets_values": [
|
|
"example.png",
|
|
"image"
|
|
]
|
|
},
|
|
{
|
|
"id": 2,
|
|
"type": "TrellisMacLoader",
|
|
"pos": [
|
|
-900,
|
|
-100
|
|
],
|
|
"size": [
|
|
320,
|
|
130
|
|
],
|
|
"flags": {},
|
|
"order": 1,
|
|
"mode": 0,
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "pipeline",
|
|
"type": "TRELLIS_PIPELINE",
|
|
"links": [
|
|
2
|
|
]
|
|
}
|
|
],
|
|
"title": "Load TrellisMac Pipeline",
|
|
"properties": {
|
|
"Node name for S&R": "TrellisMacLoader"
|
|
},
|
|
"widgets_values": [
|
|
"microsoft/TRELLIS.2-4B",
|
|
false,
|
|
""
|
|
]
|
|
},
|
|
{
|
|
"id": 3,
|
|
"type": "TrellisMacGenerate",
|
|
"pos": [
|
|
-480,
|
|
0
|
|
],
|
|
"size": [
|
|
340,
|
|
200
|
|
],
|
|
"flags": {},
|
|
"order": 2,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "pipeline",
|
|
"type": "TRELLIS_PIPELINE",
|
|
"link": 2
|
|
},
|
|
{
|
|
"name": "image",
|
|
"type": "IMAGE",
|
|
"link": 1
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "mesh",
|
|
"type": "MESHWITHVOXEL",
|
|
"links": [
|
|
3
|
|
]
|
|
}
|
|
],
|
|
"title": "TrellisMac Image to 3D",
|
|
"properties": {
|
|
"Node name for S&R": "TrellisMacGenerate"
|
|
},
|
|
"widgets_values": [
|
|
42,
|
|
"512 - fast",
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"id": 4,
|
|
"type": "TrellisMacExport",
|
|
"pos": [
|
|
-60,
|
|
0
|
|
],
|
|
"size": [
|
|
340,
|
|
170
|
|
],
|
|
"flags": {},
|
|
"order": 3,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "mesh",
|
|
"type": "MESHWITHVOXEL",
|
|
"link": 3
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "glb_path",
|
|
"type": "STRING",
|
|
"links": [
|
|
4
|
|
]
|
|
},
|
|
{
|
|
"name": "relative_path",
|
|
"type": "STRING",
|
|
"links": null
|
|
}
|
|
],
|
|
"title": "Export TrellisMac Mesh",
|
|
"properties": {
|
|
"Node name for S&R": "TrellisMacExport"
|
|
},
|
|
"widgets_values": [
|
|
"TrellisMac/3D",
|
|
"glb",
|
|
"1024",
|
|
true,
|
|
false
|
|
]
|
|
},
|
|
{
|
|
"id": 5,
|
|
"type": "Preview3D",
|
|
"pos": [
|
|
360,
|
|
0
|
|
],
|
|
"size": [
|
|
600,
|
|
600
|
|
],
|
|
"flags": {},
|
|
"order": 4,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "model_file",
|
|
"type": "STRING,FILE_3D_GLB,FILE_3D_GLTF,FILE_3D_OBJ,FILE_3D_STL,FILE_3D_PLY,FILE_3D",
|
|
"widget": {
|
|
"name": "model_file"
|
|
},
|
|
"link": 4
|
|
}
|
|
],
|
|
"outputs": [],
|
|
"title": "Preview 3D",
|
|
"properties": {
|
|
"Node name for S&R": "Preview3D"
|
|
},
|
|
"widgets_values": [
|
|
"",
|
|
""
|
|
]
|
|
}
|
|
],
|
|
"links": [
|
|
[
|
|
1,
|
|
1,
|
|
0,
|
|
3,
|
|
1,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
2,
|
|
2,
|
|
0,
|
|
3,
|
|
0,
|
|
"TRELLIS_PIPELINE"
|
|
],
|
|
[
|
|
3,
|
|
3,
|
|
0,
|
|
4,
|
|
0,
|
|
"MESHWITHVOXEL"
|
|
],
|
|
[
|
|
4,
|
|
4,
|
|
0,
|
|
5,
|
|
0,
|
|
"STRING"
|
|
]
|
|
],
|
|
"groups": [],
|
|
"config": {},
|
|
"extra": {
|
|
"ds": {
|
|
"scale": 0.8,
|
|
"offset": [
|
|
0,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
"version": 0.4
|
|
}
|