Closed 158zd closed 6 months ago
The NansException
you're encountering suggests an issue with NaN (Not a Number) values during processing, likely due to insufficient precision or unsupported half type by your video card. To address this, try enabling the "Upcast cross attention layer to float32" in the settings or use the --no-half
command-line argument.
For the issue of unchanged facial features despite using ADetailer, it's important to adjust the ADetailer configuration for optimal facial feature detection and enhancement. Ensure the ADetailer parameters, such as ad_model
for the model specializing in facial features, ad_confidence
for detection confidence, and ad_dilate_erode
for improving the mask around facial features, are correctly set. Tweaking these parameters can significantly improve face detection and processing results.
Additionally, integrating ControlNet models with parameters like ad_controlnet_model
and ad_controlnet_weight
can enhance facial feature restoration and enhancement. Adjusting these settings according to your needs should help mitigate the issues you're facing.
For detailed configuration options, refer to the adetailer/args.py
file and the ADetailer extension's main script in the repository. Properly setting these parameters can lead to better detection and inpainting results for facial features.
To continue the conversation, mention @dosu.
redownload models. put in in seperate folder (fixed models) and give it a hard read only attribute. Use seperate checkpoint for adetailer, so it has to reload between txt2image and adetailer. also allow only 1 model in memory.
I've had no nans errors after doing that
Describe the bug
NansException:Using separate steps, the facial features in the image remain unchanged, just like when ADetailer is not used
Steps to reproduce
The error persists after restarting
Screenshots
Console logs, from start to end.
List of installed extensions
ADetailer