对ComfyUI进行可靠的面部检测、分化和增强,采用经过定制的模型,这些模型在动感、现实主义、极端姿势和隔离等方面都发挥作用.
对ComfyUI进行可靠的面部检测、分化和增强,采用经过定制的模型,这些模型在动感、现实主义、极端姿势和隔离等方面都发挥作用.
Built as a modern replacement for ADetailer and Impact Pack's FaceDetailer, Forbidden Vision doesn't rely on general-purpose models. Instead, it ships three models trained from scratch on hand-curated data — purpose-built for face work across styles, content types, and edge cases that other tools struggle with.
comfyui_workflows/Forbidden_Vision_Full_All_In_One.jsonModels download automatically on first run from HuggingFace. This may take a minute.
The Fixer node replaces complex face restoration workflows with a single, reliable node solution. Using 2 custom trained models for detection and mask segmentation you get consistent results with fast performance. Works with both realistic and anime styles for any level of face modification.
Note: While the detection and segmentation models are trained on thousands of images, edge cases and failures can still occur—especially with extreme stylization, heavy occlusion, or unusual compositions. If you encounter detection failures, report them via GitHub Issues. For NSFW images, upload to an external host (Catbox.moe, ImgBB, etc.) and share the link in your issue.
Key Features:
[SEP] to assign different prompts to each detected face, with ordering control ([ASC], [DSC], [ASC-SIZE], [DSC-SIZE]) and [SKIP] to leave specific faces untouched. Works in both positive and negative prompts. Inspired by Impact Pack's wildcard syntax for easy migration.The Refiner automatically fixes common image problems: flat lighting, washed out colors, weak contrast—without manual tweaking. A trained model analyzes your image and applies the right corrections, plus optional AI upscaling and depth of field effects.
Tip: Works great as a pre-pass before your second sampling stage for cleaner, more polished results.
Also perfect as a standalone one-click enhancer.
First-pass and second-pass sampling nodes with integrated useful features to reduce clutter.
Key Features:
Install Custom NodesForbidden Vision and click Installcd ComfyUI/custom_nodes
git clone https://github.com/luxdelux7/ComfyUI-Forbidden-Vision.git
cd ComfyUI-Forbidden-Vision
# For ComfyUI portable:
..\..\..\python_embeded\python.exe -m pip install -r requirements.txt
# For standard Python:
pip install -r requirements.txtThen restart ComfyUI.
[ Upscale Models ]
Use any upscale model you prefer, however for both speed and quality I found Phhofm models to be great, specifically:
For Fixer:
For Builder:
Generally, for faces you want a 4x model, and for the refiner (if using before second pass sampling) you want around 2x for speed, but feel free to use what you prefer.
[ Fixer Settings ]
face_selection
0 = process all detected faces. Set 1 or higher to target a specific detected face in order (e.g., the closest face or the one you want edited).
detection_confidence
YOLO’s confidence threshold for face detection. 0.75 works for about 90% of images. Strong detections typically fall between 0.86–0.90+. Lower only if your image has extreme stylization or very small faces.
manual_rotation
Useful for images where faces appear at unusual angles (including upside-down). The node rotates the face for optimal processing and automatically rotates it back during blending.
processing_resolution
The 1:1 square resolution used for cropping the detected face during sampling (default: 1024). Adjust based on the resolution sweet-spot of your model. Higher = more detail, but also more VRAM and time.
enable_pre_upscale
Pre-upscales the cropped face region before feeding it into sampling. This improves detail restoration on low-resolution faces. Enabled by default and recommended for most workflows.
upscaler_model
Choose between Bicubic/Lanczos (fast Python scaling) or an AI upscaler (recommended: 4×). AI models give sharper and more stable facial details.
crop_padding
Determines how much surrounding context is included around the face (default: 1.6). More padding = better inpainting consistency, since the model sees more of the original image’s lighting and style.
CLIP input must be connected for these options to work.
face_positive_prompt / face_negative_prompt
Tags added here are prepended to the connected conditioning. Great for adding or guiding face details without altering the global prompt.
replace toggles
Instead of adding tags, these toggles completely replace the connected conditioning for the face sample. Useful when you want full control over the facial generation prompt.
exclusions
Removes specific tags from the positive conditioning. Ideal for removing unwanted traits (e.g., “smile”, “angry”, “glasses”) while keeping the rest of your prompt intact.
Assign different prompts to individual detected faces using Impact Pack-inspired wildcard syntax. Works in both face_positive_prompt and face_negative_prompt.
Basic syntax:
Use [SEP] to separate prompts for each face:
detailed eyes, sharp focus [SEP] soft skin, gentle expression [SEP] angry, scarred
Face 1 gets the first segment, face 2 the second, and so on. If there are more faces than segments, extra faces reuse the last segment.
Ordering tags:
Place one of these at the very start of the prompt to control which face gets which segment:
[ASC] — Left-to-right, top-to-bottom (default when using [SEP])[DSC] — Right-to-left, bottom-to-top[ASC-SIZE] — Smallest face first[DSC-SIZE] — Largest face firstExample: [DSC-SIZE] detailed eyes, hero character [SEP] soft focus, background character The largest face gets "detailed eyes, hero character" and the next largest gets "soft focus, background character".
Skipping faces:
Use [SKIP] to leave a face unprocessed:
[ASC] beautiful eyes [SEP] [SKIP] [SEP] freckles
Face 1 and 3 are processed, face 2 is left untouched.
Notes:
face_selection is automatically overridden to process all faces.[SKIP] in either the positive or negative prompt will skip that face entirely.[SEP] syntax, the other prompt applies its full text to all faces normally.blend_softness
Applies subtle feathering to the blended region, improving the transition between the generated face and the original background.
mask_expansion
Uniformly expands the segmentation mask by a set number of pixels (default: 2). Helps avoid harsh transitions by including slightly more skin and edge detail.
sampling_mask_blur_size
The radius of the blur applied to mask edges (default: 21). Larger values create a wider falloff area around the mask border.
sampling_mask_blur_strength
Determines how strongly the blur is applied (default: 1.0). Higher values further soften the mask edge for more natural blending.
enable_color_correction
Analyzes the entire image’s tone and lighting, then adjusts the newly sampled face to match it.
enable_lightness_rescue
An
暂无开放 Issues,或尚未同步最近议题。