camenduru / kohya_ss-colab

The Unlicense
74 stars 12 forks source link

Cannot use generated LoRA - 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. #5

Open aksenovmedia opened 11 months ago

aksenovmedia commented 11 months ago

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.

I did all standard error message said, but nothing worked (checked Settings > Stable Diffusion, add --no-half and --disable-nan-check in colab, no luck )