ComfyUI > Nodes > ComfyUI-ToonCrafter > ToonCrafter

ComfyUI Node: ToonCrafter

Class Name

ToonCrafterNode

Category
ToonCrafter
Author
AIGODLIKE (Account age: 499days)
Extension
ComfyUI-ToonCrafter
Latest Updated
2024-06-18
Github Stars
0.24K

How to Install ComfyUI-ToonCrafter

Install this extension via the ComfyUI Manager by searching for ComfyUI-ToonCrafter
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-ToonCrafter 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

ToonCrafter Description

Transform digital art into cartoon style using advanced machine learning for AI artists, simplifying creation process with pre-trained models.

ToonCrafter:

ToonCrafterNode is designed to transform your digital art into a stylized, cartoon-like appearance, leveraging advanced machine learning models. This node is particularly beneficial for AI artists looking to add a unique, artistic flair to their creations without extensive manual editing. By utilizing pre-trained models, ToonCrafterNode simplifies the process of generating high-quality, toon-styled images, making it accessible even to those with limited technical expertise. The node ensures that the output maintains the original resolution and quality, providing a seamless integration into your creative workflow. Its primary goal is to offer an easy-to-use tool that enhances your artwork with a distinctive, professional cartoon effect.

ToonCrafter Input Parameters:

resolution

The resolution parameter specifies the dimensions of the output image in the format height_width. This parameter is crucial as it determines the quality and detail of the final toon-styled image. Higher resolutions will result in more detailed and sharper images but may require more computational resources. There is no explicit minimum or maximum value provided, but it is recommended to use standard resolutions like 1080_1920 for optimal performance.

result_dir

The result_dir parameter defines the directory where the processed images will be saved. This is important for organizing and accessing your output files. The directory will be created if it does not exist, ensuring that your results are stored safely and systematically.

ckpt_name

The ckpt_name parameter indicates the name of the checkpoint file to be used for loading the pre-trained model. This file contains the weights and configurations necessary for the model to function correctly. If the specified checkpoint is not found, the node will attempt to use a default checkpoint based on the resolution. This ensures that the model is properly initialized and ready for inference.

gpu_num

The gpu_num parameter specifies the number of GPUs to be used for processing. Utilizing multiple GPUs can significantly speed up the processing time, especially for high-resolution images. The default value is 1, but this can be adjusted based on the available hardware to optimize performance.

ToonCrafter Output Parameters:

model_list

The model_list parameter is a list of instantiated models that are ready for inference. Each model in the list corresponds to a GPU, allowing for parallel processing. This parameter is essential for the node's operation as it ensures that the models are properly loaded and configured for generating toon-styled images.

ToonCrafter Usage Tips:

  • Ensure that the resolution parameter is set to a value that balances quality and performance based on your hardware capabilities.
  • Use a dedicated result_dir to keep your output files organized and easily accessible.
  • Verify that the ckpt_name corresponds to an existing checkpoint file to avoid initialization errors.
  • If you have multiple GPUs, increase the gpu_num parameter to speed up the processing time.

ToonCrafter Common Errors and Solutions:

ToonCrafter Error: <ckpt_path> Not Found!

  • Explanation: This error occurs when the specified checkpoint file is not found in the expected directory.
  • Solution: Ensure that the ckpt_name parameter is correctly set and that the checkpoint file exists in the specified path. If the file is missing, download or place the correct checkpoint file in the appropriate directory.

Error: checkpoint Not Found!

  • Explanation: This error indicates that the model checkpoint could not be loaded, which is essential for the node's operation.
  • Solution: Double-check the ckpt_name and ensure that the checkpoint file is present in the directory. If necessary, use the default checkpoint provided by the node.

CUDA not available

  • Explanation: This error occurs when the node attempts to use GPU processing, but CUDA is not available on the system.
  • Solution: Ensure that your system has a compatible NVIDIA GPU and that CUDA is properly installed. Alternatively, set the node to use CPU processing if GPU is not available.

MPS not available

  • Explanation: This error indicates that the Metal Performance Shaders (MPS) backend is not available on the system.
  • Solution: Ensure that your system supports MPS and that it is properly configured. This is typically relevant for macOS users.

CPU not available

  • Explanation: This error suggests that the node is unable to use the CPU for processing.
  • Solution: Verify that your system's CPU is functioning correctly and that there are no restrictions preventing the node from utilizing it.

ToonCrafter Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-ToonCrafter
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.