Install this extension via the ComfyUI Manager by searching
for HivisionIDPhotos-ComfyUI
1. Click the Manager button in the main menu
2. Select Custom Nodes Manager button
3. Enter HivisionIDPhotos-ComfyUI 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
HivisionIDPhotos-ComfyUI is a custom node designed for integration with the HivisionIDPhotos project, enhancing its functionality within the ComfyUI framework.
HivisionIDPhotos-ComfyUI Introduction
HivisionIDPhotos-ComfyUI is an extension designed to integrate the powerful features of the HivisionIDPhotos project into the ComfyUI environment. This extension allows AI artists to create professional ID photos with ease, leveraging advanced AI models for tasks such as background removal, face alignment, and image enhancement. By using this extension, you can streamline the process of generating high-quality ID photos, making it accessible even for those without a strong technical background.
How HivisionIDPhotos-ComfyUI Works
HivisionIDPhotos-ComfyUI works by providing a set of custom nodes within the ComfyUI framework. These nodes are designed to handle various tasks involved in creating ID photos, such as:
Background Removal: Using AI models to accurately remove the background from a portrait.
Face Alignment: Automatically aligning the face to ensure it meets the required standards for ID photos.
Image Enhancement: Adjusting brightness, contrast, and sharpness to improve the overall quality of the photo.
Watermark Addition: Adding watermarks to the photos if needed.
Layout Generation: Creating layouts for printing multiple ID photos on a single sheet.
These tasks are performed using pre-trained AI models that have been integrated into the extension, making the process efficient and user-friendly.
HivisionIDPhotos-ComfyUI Features
Background Removal
MODNet: A real-time portrait matting model that works with RGB images to remove backgrounds.
BRIA AI: An open-source model for background removal.
BiRefNet: A high-resolution image segmentation model.
Face Alignment
RetinaFace: An offline face detection model with high accuracy, suitable for CPU inference.
Image Enhancement
Brightness, Contrast, and Sharpness Adjustment: Fine-tune the image quality to meet specific requirements.
Whitening: Enhance the skin tone for a more polished look.
Custom DPI
DPI Settings: Customize the DPI (dots per inch) for the final output to ensure it meets printing standards.
Watermark Addition
Watermark Customization: Add and customize watermarks to protect your images.
Layout Generation
Multiple Layout Options: Generate different layouts for printing multiple ID photos on a single sheet.
HivisionIDPhotos-ComfyUI Models
MODNet
Description: A model for real-time portrait matting with only RGB image input.
Use Case: Ideal for quick and efficient background removal.
BRIA AI
Description: An open-source background removal model.
Use Case: Suitable for general background removal tasks.
BiRefNet
Description: A high-resolution image segmentation model.
Use Case: Best for tasks requiring high precision and detail.
RetinaFace
Description: An offline face detection model with high accuracy.
Use Case: Used for aligning faces in ID photos.
What's New with HivisionIDPhotos-ComfyUI
Recent Updates
2024.09.16: Added face rotation alignment and adjustments for brightness, contrast, and sharpness.
2024.09.14: Introduced custom DPI settings.
2024.09.13: Added a whitening feature.
These updates enhance the functionality of the extension, making it more versatile and user-friendly for AI artists.
Troubleshooting HivisionIDPhotos-ComfyUI
Common Issues and Solutions
Background Removal Not Accurate
Solution: Ensure you are using the correct model for your task. MODNet is recommended for real-time tasks, while BiRefNet is better for high-resolution needs.
Face Not Aligned Properly
Solution: Check if the RetinaFace model is correctly loaded and configured.
Image Quality Issues
Solution: Use the image enhancement features to adjust brightness, contrast, and sharpness.
Frequently Asked Questions
Q: How do I change the DPI settings?
A: You can customize the DPI settings in the extension's configuration panel.
Q: Can I add custom watermarks?
A: Yes, you can add and customize watermarks through the watermark addition feature.
Learn More about HivisionIDPhotos-ComfyUI
For more information, tutorials, and community support, you can visit the following resources: