Open Andy91xx opened 6 months ago
Same issue here. The Problem only occurs when Adetailer is enabled together with Controlnet.
So the error only occurs if:
in txt2img: Controlnet Enabled + Adetailer enabled + Batch count > 1 in img2img: Controlnet Enabled + Adetailer enabled + SD Upscale Script enabled
having the same issue on:
Version: v1.7.0-914-g1c0a0c4c Commit hash: 1c0a0c4c26f78c32095ebc7f8af82f5c04fca8c0 CUDA 12.1 ... [-] ADetailer initialized. version: 24.4.2, num models: 10 2024-08-30 15:02:40,327 - ControlNet - INFO - ControlNet v1.1.448
Thanks for posting
turning off ADetailer fixes the issue so not a ControlNet Bug?
Is there an existing issue for this?
What happened?
When batch count is above 1 with control net enabled i get a NansException: A tensor with all NaNs was produced in Unet. This could be either because there's not enough precision to represent the picture, or because your video card does not support half type. Try setting the "Upcast cross attention layer to float32" option in Settings > Stable Diffusion or using the --no-half commandline argument to fix this. Use --disable-nan-check commandline argument to disable this check
when batch count is set at 1 the generation works as intended or while control net is disabled i can generation multiple generations as normal .
Steps to reproduce the problem
1 enable controlnet select settings etc 2 write prompts etc set batch count above 1 for example i usually select 5 and run generation 3 nan expection
What should have happened?
i should be able to set the batch count above 1 and generation desired number of generations with control net enabled
Commit where the problem happens
webui: controlnet:
What browsers do you use to access the UI ?
No response
Command Line Arguments
List of enabled extensions
LDSR Lora ScuNET SwinIR canvas-zoom-and-pan extra-options-section hypertile mobile postprocessing-for-training prompt-bracket-checker soft-inpainting a1111-sd-webui-tagcomplete adetailer openpose-editor sd-civitai-browser-plus sd-dynamic-prompts sd-dynamic-thresholding sd-ratio-lock sd-webui-bg-mask sd-webui-controlnet sd-webui-prompt-history sd-webui-regional-prompter stable-diffusion-webui-rembg
Console logs
Additional information
same problem exists on two seperate instances of SD