[X] The issue exists after disabling all extensions
[X] The issue exists on a clean installation of webui
[ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
[X] The issue exists in the current version of the webui
[X] The issue has not been reported before recently
[ ] The issue has been reported before but has not been fixed yet
What happened?
On my Mac Book Pro any img2img with sdxl checkpoints does not work when a VAE is baked into the checkpoint or a VAE is selected in webui, if it is selected and try to generate a image 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. error occures.
Using --no-half does indeed fix the problem but then it takes ages and I would not call it a fix due to the fact that it does work with SD1.5 checkpoints where VAE is activated without a problem and even SDXL img2img works without a problem as long as VAE is disabled (which would be fine for me if checkpoint creators would stop baking in the VAE all the time ._.). Normal txt2img does work without a problem with sdxl checkpoints and selected VAE without a problem.
Steps to reproduce the problem
Select a SDXL Model
Set the VAE to an usable sdxl vae (or choose a Model with baked in VAE)
go to img2img
wrtie a prompt
upload a image
Generate
What should have happened?
A new image should have been generated instead of throwing an NansException Error
Checklist
What happened?
On my Mac Book Pro any img2img with sdxl checkpoints does not work when a VAE is baked into the checkpoint or a VAE is selected in webui, if it is selected and try to generate a image 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.
error occures.Using
--no-half
does indeed fix the problem but then it takes ages and I would not call it a fix due to the fact that it does work with SD1.5 checkpoints where VAE is activated without a problem and even SDXL img2img works without a problem as long as VAE is disabled (which would be fine for me if checkpoint creators would stop baking in the VAE all the time ._.). Normal txt2img does work without a problem with sdxl checkpoints and selected VAE without a problem.Steps to reproduce the problem
What should have happened?
A new image should have been generated instead of throwing an NansException Error
What browsers do you use to access the UI ?
No response
Sysinfo
sysinfo-2024-04-28-08-27.json
Console logs
Additional information
I tried updating/downgrading torch but that did not make any difference...