ComfyUI Node
MeshFlow Remesh
A ComfyUI node in MeshFlow with 15 inputs and 1 output.
MeshFlow Remesh
- trimesh
- reference_image
- trimesh
◄model_namemeshflow►
◄steps28►
◄samplerheun►
◄guidance_scale2.5►
◄seed42►
◄base_num_verts4096►
◄points4096►
◄image_size512►
◄devicecuda►
◄dtypefp16►
◄compilefalse►
◄use_rmbgfalse►
◄fill_holesfalse►
CategoryMeshFlow
Inputs (15)
| Name | Type | Default | Description |
|---|---|---|---|
| trimesh | TRIMESH | The input 3D model to be remeshed. | |
| model_name | COMBO | meshflow | Select the MeshFlow model to use. 'meshflow' is the standard model. 'meshflow_w_num_verts_control' allows dynamic control of the generated mesh resolution. |
| steps | INT | 281–1000 | Number of diffusion sampling steps. Higher values can increase detail but take longer. |
| sampler | COMBO | heun | ODE solver for flow-matching sampling. Higher-order solvers (heun, rk4) produce more accurate trajectories; heun uses 2 model evals per step, rk4 uses 4. |
| guidance_scale | FLOAT | 2.50–100 | Classifier-Free Guidance (CFG) scale for visual conditioning. Only effective when reference_image is connected. |
| seed | INT | 420–18446744073709550000 | Random seed for sampling latents. |
| base_num_verts | COMBO | 4096 | The base resolution/point count of the loaded model checkpoint (sequence length). |
| points | COMBO | 4096 | Target resolution (points/vertices) of the generated output mesh. |
| image_size | COMBO | 512 | Resolution to resize and center crop the reference image to before processing. |
| device | COMBO | cuda | Computation device to run the model on (cuda or cpu). |
| dtype | COMBO | fp16 | Precision model dtype (fp16, bf16, or fp32). |
| compile | BOOLEAN | false | Whether to use torch.compile on CUDA for faster inference. |
| use_rmbg | BOOLEAN | false | Enable automatic background removal and foreground cropping for the reference image. |
| fill_holes | BOOLEAN | false | Automatically closes and triangulates boundary loops in the final mesh topology. |
| reference_imageopt | IMAGE | Optional reference image for image-conditioned generation. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| trimesh | TRIMESH | — |