ComfyUI  >  Nodes  >  ComfyUI's ControlNet Auxiliary Preprocessors >  MiDaS Normal Map

ComfyUI Node: MiDaS Normal Map

Class Name

MiDaS-NormalMapPreprocessor

Category
ControlNet Preprocessors/Normal and Depth Estimators
Author
Fannovel16 (Account age: 3127 days)
Extension
ComfyUI's ControlNet Auxiliary Preproces...
Latest Updated
6/18/2024
Github Stars
1.6K

How to Install ComfyUI's ControlNet Auxiliary Preprocessors

Install this extension via the ComfyUI Manager by searching for  ComfyUI's ControlNet Auxiliary Preprocessors
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI's ControlNet Auxiliary Preprocessors 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

MiDaS Normal Map Description

Generate normal maps from images using MiDaS model for detailed surface orientation info, enhancing digital art quality.

MiDaS Normal Map:

The MiDaS-NormalMapPreprocessor is a powerful tool designed to generate normal maps from input images, leveraging the MiDaS (Monocular Depth Estimation) model. This node is particularly useful for AI artists who need to extract detailed surface orientation information from images, which can be used in various applications such as 3D modeling, game development, and augmented reality. By converting depth information into normal maps, this preprocessor helps in creating more realistic and detailed textures, enhancing the visual quality of digital art. The MiDaS-NormalMapPreprocessor simplifies the process of normal map generation, making it accessible even to those without a deep technical background.

MiDaS Normal Map Input Parameters:

a

This parameter controls the angle parameter used in the normal map generation process. It influences the way surface orientations are calculated from the depth information. The value of a can range from 0.0 to approximately 15.71 (5π), with a default value set to approximately 6.28 (2π). Adjusting this parameter can affect the appearance of the generated normal map, allowing for fine-tuning of the surface details.

bg_threshold

The bg_threshold parameter sets the background threshold, which helps in distinguishing the foreground from the background in the input image. This is crucial for accurate normal map generation, as it ensures that only relevant parts of the image are processed. The value of bg_threshold ranges from 0 to 1, with a default value of 0.1. Lower values make the node more sensitive to background elements, while higher values focus more on the foreground.

MiDaS Normal Map Output Parameters:

IMAGE

The output of the MiDaS-NormalMapPreprocessor is an image that represents the normal map generated from the input image. This normal map encodes the surface orientation information, which can be used in various digital art and 3D modeling applications to enhance the realism and detail of textures.

MiDaS Normal Map Usage Tips:

  • Experiment with the a parameter to achieve the desired level of detail in the normal map. Higher values can provide more pronounced surface orientations.
  • Adjust the bg_threshold parameter to ensure that the background is correctly excluded from the normal map generation, especially when working with images that have complex backgrounds.

MiDaS Normal Map Common Errors and Solutions:

Error: Model not found

  • Explanation: This error occurs when the MiDaS model is not properly loaded or cannot be found in the specified directory.
  • Solution: Ensure that the MiDaS model is correctly installed and the file path is accurate. Reinstall the model if necessary.

Error: Invalid input image

  • Explanation: This error indicates that the input image is not in a supported format or is corrupted.
  • Solution: Verify that the input image is in a valid format (e.g., JPEG, PNG) and is not corrupted. Try using a different image to see if the issue persists.

Error: Parameter out of range

  • Explanation: This error occurs when one of the input parameters is set outside its allowed range.
  • Solution: Check the values of a and bg_threshold to ensure they are within the specified ranges. Adjust the values accordingly and try again.

MiDaS Normal Map Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI's ControlNet Auxiliary Preprocessors
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.