3dgenstudio-mirror/comfyui_workflows/Gen Mesh Only with Trellis2.json
Bruno Fargnoli 95c5a2f241 version 0.2.0
Added Inpainting function in Mesh Editor - 1 projection
Added ComfyUI workflow examples
2026-04-24 20:38:05 +02:00

281 lines
No EOL
5.3 KiB
JSON

{
"6": {
"inputs": {
"image": "Normal_00001_.png"
},
"class_type": "Trellis2LoadImageWithTransparency",
"_meta": {
"title": "Source Image"
}
},
"39": {
"inputs": {
"modelname": "microsoft/TRELLIS.2-4B",
"backend": "flash_attn",
"device": "cuda",
"low_vram": true,
"keep_models_loaded": false,
"conv_backend": "flex_gemm",
"sparse_backend": "flash_attn",
"use_reconviagen": false
},
"class_type": "Trellis2LoadModel",
"_meta": {
"title": "Trellis2 - LoadModel"
}
},
"161": {
"inputs": {
"remesh_band": 1,
"resolution": 1024,
"remove_floaters": true,
"remove_inner_faces": true,
"mesh": [
"193",
0
]
},
"class_type": "Trellis2ReconstructMeshWithQuad",
"_meta": {
"title": "Trellis2 - Reconstruct Mesh With Quad"
}
},
"193": {
"inputs": {
"max_permieters": 1,
"mesh": [
"217",
0
]
},
"class_type": "Trellis2FillHolesWithCuMesh",
"_meta": {
"title": "Trellis2 - Fill Holes with CuMesh"
}
},
"194": {
"inputs": {
"padding": 10,
"remove_background": false,
"max_size": 1024,
"image": [
"6",
2
]
},
"class_type": "Trellis2PreProcessImage",
"_meta": {
"title": "Trellis2 - PreProcess Image"
}
},
"202": {
"inputs": {
"reorient_vertices": "90 degrees",
"mesh": [
"257",
0
]
},
"class_type": "Trellis2MeshWithVoxelToTrimesh",
"_meta": {
"title": "Trellis2 - Mesh With Voxel To Trimesh"
}
},
"203": {
"inputs": {
"filename_prefix": [
"219",
0
],
"file_format": "glb",
"trimesh": [
"202",
0
]
},
"class_type": "Trellis2ExportMesh",
"_meta": {
"title": "Trellis2 - Export Mesh"
}
},
"209": {
"inputs": {
"value": 1000000
},
"class_type": "PrimitiveInt",
"_meta": {
"title": "Target Face Number"
}
},
"213": {
"inputs": {
"max_views": 1,
"pipeline": [
"39",
0
],
"image": [
"194",
0
]
},
"class_type": "Trellis2ImageCondGenerator",
"_meta": {
"title": "Trellis2 - ImageCond Generator"
}
},
"214": {
"inputs": {
"seed": 12345,
"sparse_structure_steps": 50,
"sparse_structure_guidance_strength": 7.5,
"sparse_structure_guidance_rescale": 0.01,
"sparse_structure_rescale_t": 5,
"sparse_structure_sampler": "heun",
"sparse_structure_resolution": 64,
"sparse_structure_guidance_interval_start": 0.1,
"sparse_structure_guidance_interval_end": 1,
"fill_holes": true,
"hole_iterations": 1,
"verbose": false,
"dino_lock": 0.6,
"dino_substeps": 2,
"hole_fill_algorithm": "flood_fill",
"dino_foundation_cap": 0.92,
"keep_only_shell": true,
"pipeline": [
"213",
2
],
"image_cond": [
"213",
0
]
},
"class_type": "Trellis2SparseGenerator",
"_meta": {
"title": "Trellis2 - Sparse Generator"
}
},
"215": {
"inputs": {
"resolution": 1024,
"shape_steps": 25,
"shape_guidance_strength": 7.5,
"shape_guidance_rescale": 0.01,
"shape_rescale_t": 3,
"shape_sampler": "heun",
"shape_guidance_interval_start": 0.1,
"shape_guidance_interval_end": 1,
"verbose": false,
"dino_lock": 0.35,
"dino_substeps": 2,
"dino_foundation_cap": 0.92,
"pipeline": [
"214",
2
],
"image_cond": [
"213",
1
],
"coords": [
"214",
0
]
},
"class_type": "Trellis2ShapeGenerator",
"_meta": {
"title": "Trellis2 - Shape Generator"
}
},
"217": {
"inputs": {
"resolution": [
"215",
1
],
"use_tiled_decoder": true,
"pipeline": [
"215",
2
],
"shape_slat": [
"215",
0
]
},
"class_type": "Trellis2DecodeLatents",
"_meta": {
"title": "Trellis2 - Decode Latents"
}
},
"218": {
"inputs": {
"target_face_num": [
"209",
0
],
"method": "Cumesh",
"mesh": [
"161",
0
]
},
"class_type": "Trellis2SimplifyMesh",
"_meta": {
"title": "Trellis2 - Simplify Mesh"
}
},
"219": {
"inputs": {
"value": "DwarfSorcerer"
},
"class_type": "PrimitiveString",
"_meta": {
"title": "Name"
}
},
"232": {
"inputs": {
"model_file": [
"203",
0
],
"image": ""
},
"class_type": "Preview3D",
"_meta": {
"title": "Preview 3D & Animation"
}
},
"250": {
"inputs": {
"mesh": [
"218",
0
]
},
"class_type": "Trellis2FillHolesNicelyWithMeshlib",
"_meta": {
"title": "Trellis2 - Fill Holes Nicely With Meshlib"
}
},
"257": {
"inputs": {
"target_face_num": [
"209",
0
],
"method": "Cumesh",
"mesh": [
"250",
0
]
},
"class_type": "Trellis2SimplifyMesh",
"_meta": {
"title": "Trellis2 - Simplify Mesh"
}
}
}