ComfyUI  >  Nodes  >  comfyui_facetools >  Jonathandinu Mask

ComfyUI Node: Jonathandinu Mask

Class Name

JonathandinuMask

Category
facetools
Author
dchatel (Account age: 4558 days)
Extension
comfyui_facetools
Latest Updated
6/26/2024
Github Stars
0.0K

How to Install comfyui_facetools

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

Jonathandinu Mask Description

Generate detailed facial masks from cropped images using advanced face-parsing techniques for AI artists to isolate and manipulate specific facial features with precise control.

Jonathandinu Mask:

The JonathandinuMask node is designed to generate detailed facial masks from cropped images, leveraging advanced face-parsing techniques. This node is particularly useful for AI artists who need to isolate specific facial features for further processing or artistic manipulation. By utilizing a pre-trained model, the JonathandinuMask can accurately segment various facial components such as skin, nose, eyes, eyebrows, ears, mouth, lips, hair, and more. This segmentation allows for precise control over individual facial elements, enabling more refined and targeted edits. The primary goal of the JonathandinuMask node is to provide high-quality, feature-specific masks that can be used in a variety of creative and technical applications, enhancing the overall workflow for AI-driven art projects.

Jonathandinu Mask Input Parameters:

crop

The crop parameter represents the cropped image of the face that you want to process. This image serves as the input for the face-parsing model to generate the masks. The quality and resolution of the crop can impact the accuracy of the resulting masks.

skin

The skin parameter is a boolean flag that, when set to True, includes the skin region in the generated mask. This allows you to isolate and manipulate the skin area separately. The default value is True.

nose

The nose parameter is a boolean flag that, when set to True, includes the nose region in the generated mask. This enables specific edits to the nose area. The default value is True.

eye_g

The eye_g parameter is a boolean flag that, when set to True, includes the eyeglasses region in the generated mask. This is useful for isolating and editing eyeglasses. The default value is True.

l_eye

The l_eye parameter is a boolean flag that, when set to True, includes the left eye region in the generated mask. This allows for targeted edits to the left eye. The default value is True.

r_eye

The r_eye parameter is a boolean flag that, when set to True, includes the right eye region in the generated mask. This allows for targeted edits to the right eye. The default value is True.

l_brow

The l_brow parameter is a boolean flag that, when set to True, includes the left eyebrow region in the generated mask. This enables specific edits to the left eyebrow. The default value is True.

r_brow

The r_brow parameter is a boolean flag that, when set to True, includes the right eyebrow region in the generated mask. This enables specific edits to the right eyebrow. The default value is True.

l_ear

The l_ear parameter is a boolean flag that, when set to True, includes the left ear region in the generated mask. This allows for targeted edits to the left ear. The default value is True.

r_ear

The r_ear parameter is a boolean flag that, when set to True, includes the right ear region in the generated mask. This allows for targeted edits to the right ear. The default value is True.

mouth

The mouth parameter is a boolean flag that, when set to True, includes the mouth region in the generated mask. This enables specific edits to the mouth area. The default value is True.

u_lip

The u_lip parameter is a boolean flag that, when set to True, includes the upper lip region in the generated mask. This allows for targeted edits to the upper lip. The default value is True.

l_lip

The l_lip parameter is a boolean flag that, when set to True, includes the lower lip region in the generated mask. This allows for targeted edits to the lower lip. The default value is True.

hair

The hair parameter is a boolean flag that, when set to True, includes the hair region in the generated mask. This enables specific edits to the hair area. The default value is False.

hat

The hat parameter is a boolean flag that, when set to True, includes the hat region in the generated mask. This is useful for isolating and editing hats. The default value is False.

ear_r

The ear_r parameter is a boolean flag that, when set to True, includes the earring region in the generated mask. This allows for targeted edits to earrings. The default value is False.

neck_l

The neck_l parameter is a boolean flag that, when set to True, includes the neck (left side) region in the generated mask. This enables specific edits to the left side of the neck. The default value is False.

neck

The neck parameter is a boolean flag that, when set to True, includes the neck region in the generated mask. This allows for targeted edits to the neck area. The default value is False.

cloth

The cloth parameter is a boolean flag that, when set to True, includes the clothing region in the generated mask. This enables specific edits to the clothing area. The default value is False.

Jonathandinu Mask Output Parameters:

masks

The masks output parameter is a tuple containing the generated masks for the specified facial features. Each mask corresponds to a different facial component, allowing for precise and targeted edits. The masks are returned in the same order as the input parameters, providing a comprehensive set of segmented facial regions for further processing.

Jonathandinu Mask Usage Tips:

  • Ensure that the cropped image (crop) is of high quality and resolution to achieve more accurate mask generation.
  • Use the boolean flags to selectively include or exclude specific facial features based on your project requirements.
  • Experiment with different combinations of included features to see how they affect the final output and find the best configuration for your needs.

Jonathandinu Mask Common Errors and Solutions:

"CUDA out of memory"

  • Explanation: This error occurs when the GPU does not have enough memory to process the image.
  • Solution: Try reducing the resolution of the input image or processing the image on a CPU by setting the device to "cpu".

"Invalid input image"

  • Explanation: This error occurs when the input image is not in the expected format or is corrupted.
  • Solution: Ensure that the input image is a valid, high-quality image and is correctly preprocessed before passing it to the node.

"Model not found"

  • Explanation: This error occurs when the pre-trained model is not correctly loaded.
  • Solution: Verify that the model files are correctly downloaded and accessible. If necessary, re-download the model from the specified source.

"KeyError: 'mask_type'"

  • Explanation: This error occurs when an invalid mask type is specified.
  • Solution: Ensure that the mask type is one of the supported types: simple_square, convex_hull, BiSeNet, or jonathandinu.

Jonathandinu Mask Related Nodes

Go back to the extension to check out more related nodes.
comfyui_facetools
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.