HiresFix and Adetailer Guide for LightDiffusion-Next¶
Welcome to the HiresFix and Adetailer guide for LightDiffusion-Next. This document will help you understand how to use these features to enhance your generated images.
Table of Contents¶
- Introduction
- HiresFix - Overview - Usage in GUI - Usage in CLI - Tips and Tricks
- Adetailer - Overview - Usage in GUI - Usage in CLI - Tips and Tricks
- Using with Other Features
- Troubleshooting
Introduction¶
LightDiffusion-Next offers powerful tools like HiresFix and Adetailer to improve the quality and details of your generated images. These features are available in both the GUI and command-line interfaces, allowing you to achieve higher resolution and more refined details in your outputs.
HiresFix¶
Overview¶
HiresFix is a feature that enhances the resolution of your generated images. It uses advanced upscaling algorithms to increase image resolution while preserving and refining details. This technique is particularly useful when you want to create high-resolution images with sharp details.
Usage in GUI¶
To use HiresFix in the GUI:
- Launch LightDiffusion-Next: Start the application using
run.bat
(Windows) orrun.sh
(Linux). - Enable HiresFix: In the LightDiffusion-Next GUI, check the “HiresFix” checkbox.
- Configure Settings: Set your desired width, height, and other generation parameters.
- Generate Image: Click the “Generate” button to create your image with HiresFix applied.
Usage in CLI¶
To use HiresFix in the command-line interface:
./pipeline.bat "your prompt here" width height number_of_images batch_size --hires-fix
For example:
Tips and Tricks¶
- Balance Resolution and Performance: Higher resolutions require more VRAM and processing time. Find a balance that works with your hardware.
- Combine with Stable-Fast: Use the –stable-fast flag with HiresFix for improved performance, especially on high-resolution images.
- Adjust Batch Size: When using HiresFix, consider reducing batch size to manage memory usage.
- Try Different Resolutions: Experiment with various width and height combinations to find the optimal resolution for your specific image.
Adetailer¶
Overview¶
Adetailer (Automatic Detailer) is a feature that enhances specific details in your generated images, particularly focusing on faces, eyes, and human features. It uses advanced detection models to identify and refine these elements, resulting in more realistic and polished outputs.


Usage in GUI¶
To use Adetailer in the GUI:
- Launch LightDiffusion-Next: Start the application using run.bat (Windows) or run.sh (Linux).
- Enable Adetailer: In the LightDiffusion-Next GUI, check the “Adetailer” checkbox.
- Configure Settings: Set your desired width, height, and other generation parameters.
- Generate Image: Click the “Generate” button to create your image with Adetailer applied.
Usage in CLI¶
To use Adetailer in the command-line interface:
./pipeline.bat "your prompt here" width height number_of_images batch_size --adetailer
For example:
./pipeline.bat "portrait of a woman with blue eyes" 512 768 1 1 --adetailer
Tips and Tricks¶
- Focus on Human Subjects: Adetailer works best with images containing human faces and bodies.
- Combine with HiresFix: For optimal results, use Adetailer together with HiresFix by enabling both options.
- Use Quality Prompts: Include detailed descriptions of faces and features in your prompts to guide Adetailer.
- Be Patient: Adetailer performs additional processing steps, which may increase generation time.
Using with Other Features¶
HiresFix and Adetailer can be combined with other LightDiffusion-Next features for even better results:
With Stable-Fast¶
./pipeline.bat "your prompt here" width height number_of_images batch_size --hires-fix --adetailer --stable-fast
With Prompt Enhancement¶
./pipeline.bat "your prompt here" width height number_of_images batch_size --hires-fix --adetailer --enhance-prompt
With AutoHDR¶
./pipeline.bat "your prompt here" width height number_of_images batch_size --hires-fix --adetailer --autohdr
Troubleshooting¶
If you encounter issues with HiresFix or Adetailer, consider the following:
- Check VRAM Usage: High-resolution images with HiresFix and Adetailer may require significant VRAM. If you’re experiencing out-of-memory errors, try reducing image dimensions or batch size.
- Update Dependencies: Ensure you have the latest version of LightDiffusion-Next and all its dependencies.
- Check Log Files: Review the application logs for specific error messages. Try Different Models: Some models work better with HiresFix and Adetailer than others. Experiment with different checkpoint files.
- Simplify Your Workflow: If you’re experiencing issues, try running with fewer features enabled to isolate the problem. Refer to the FAQ: Check the FAQ for common issues and solutions.
Wish you good generations!