ComfyUI > Nodes > ComfyUI_PartPacker > PartPacker_Sampler

ComfyUI Node: PartPacker_Sampler

Class Name

PartPacker_Sampler

Category
PartPacker
Author
smthemex (Account age: 893days)
Extension
ComfyUI_PartPacker
Latest Updated
2025-06-25
Github Stars
0.03K

How to Install ComfyUI_PartPacker

Install this extension via the ComfyUI Manager by searching for ComfyUI_PartPacker
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_PartPacker in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

PartPacker_Sampler Description

Specialized node for sampling in PartPacker, generates 3D meshes from images for AI artists.

PartPacker_Sampler:

The PartPacker_Sampler is a specialized node designed to facilitate the sampling process within the PartPacker framework. Its primary function is to generate 3D meshes from input images by leveraging a model that processes the image data and outputs a mesh representation. This node is particularly useful for AI artists who are looking to convert 2D images into 3D models, providing a seamless transition from visual data to a tangible 3D structure. The node is equipped with various parameters that allow you to control the granularity and quality of the mesh, such as the number of faces and grid resolution. By adjusting these parameters, you can achieve the desired level of detail and complexity in the resulting 3D model. The PartPacker_Sampler is an essential tool for those looking to explore the intersection of AI and 3D modeling, offering a robust and flexible solution for generating high-quality 3D meshes from images.

PartPacker_Sampler Input Parameters:

model

This parameter specifies the model to be used for the sampling process. It is crucial as it determines the underlying algorithm and approach for converting the image into a 3D mesh. The model should be compatible with the PartPacker framework.

image

The image parameter is the input image that will be processed to generate the 3D mesh. It is expected to be in BHWC format, which stands for Batch, Height, Width, and Channels. This parameter is essential as it provides the visual data that the model will convert into a 3D structure.

target_num_faces

This integer parameter defines the target number of faces for the resulting 3D mesh. It allows you to control the complexity and detail of the mesh, with a default value of 100,000. The minimum value is 1,000, and the maximum is determined by the system's capabilities, represented by MAX_SEED. Adjusting this parameter can help balance between performance and detail.

grid_res

The grid_res parameter sets the grid resolution for the sampling process, influencing the level of detail in the mesh. It has a default value of 384, with a minimum of 128 and a maximum of 2048. This parameter allows you to fine-tune the resolution to match your specific needs, with higher values providing more detail.

seed

This integer parameter is used to initialize the random number generator, ensuring reproducibility of the sampling process. The default value is 0, with a range from 0 to MAX_SEED. By setting a specific seed, you can achieve consistent results across different runs.

steps

The steps parameter determines the number of steps the sampling process will take, affecting the quality and accuracy of the resulting mesh. It has a default value of 50, with a minimum of 3 and a maximum of 1024. More steps generally lead to a more refined mesh but may increase processing time.

cfg_scale

This floating-point parameter controls the scale of the configuration, influencing the balance between adherence to the input image and the model's creativity. It has a default value of 7.0, with a range from 1 to 20. Adjusting this parameter can help achieve the desired artistic effect in the mesh.

simplify_mesh

The simplify_mesh parameter is a boolean that determines whether the resulting mesh should be simplified. By default, it is set to False. Enabling this option can reduce the complexity of the mesh, making it easier to handle and process, especially for large models.

mask

This optional parameter allows you to provide a mask for the image, specifying areas to be included or excluded in the sampling process. The default mask format is such that the masked area is black, contrary to the traditional white mask. This parameter can be used to focus the sampling on specific regions of the image.

PartPacker_Sampler Output Parameters:

trimesh

The trimesh output is a 3D mesh representation of the input image, structured as a triangle mesh. This output is crucial for further processing or visualization, providing a detailed and accurate 3D model derived from the image data.

mesh

The mesh output is another representation of the 3D model, potentially in a different format or structure than trimesh. It serves as an alternative output for applications that require a specific mesh format.

model_path

The model_path output provides the file path to the model used in the sampling process. This output is useful for documentation and reproducibility, allowing you to track which model was used to generate the 3D mesh.

PartPacker_Sampler Usage Tips:

  • To achieve a high level of detail in your 3D mesh, consider increasing the grid_res and target_num_faces parameters, but be mindful of the potential increase in processing time.
  • Use the seed parameter to ensure consistent results across multiple runs, which is particularly useful for iterative design processes.
  • Experiment with the cfg_scale parameter to find the right balance between fidelity to the input image and creative interpretation by the model.

PartPacker_Sampler Common Errors and Solutions:

"Invalid model type"

  • Explanation: The model specified is not compatible with the PartPacker framework.
  • Solution: Ensure that the model parameter is set to a valid PartPacker model type.

"Image format not supported"

  • Explanation: The input image is not in the expected BHWC format.
  • Solution: Convert your image to the BHWC format before inputting it into the node.

"Target number of faces exceeds maximum limit"

  • Explanation: The target_num_faces parameter is set to a value higher than the system can handle.
  • Solution: Reduce the target_num_faces value to be within the acceptable range.

"Grid resolution out of bounds"

  • Explanation: The grid_res parameter is set outside the allowed range.
  • Solution: Adjust the grid_res value to be between 128 and 2048.

PartPacker_Sampler Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_PartPacker
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.