kohya-ss / kohya-ss/sd-scripts
NansException: A tensor with all NaNs was produced in Unet
- Dominant language
- Python
- Stars
- 7.2k
- Forks
- 1.2k
- Avg merge
- 11m
- Merged PRs (30d)
- 2
Description
After training a new LoRA, then running it on automatic1111's webui, I get this error. About a month ago, I was able to train and use a LoRA with no problems using the same setup.
I also followed the fixes from [this issue](https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/6923), but nothing has worked for me so far.
Side note, I also encountered the same issue with Civitai LoRAs (mentioned from the above issue), and re-downloading them fixed the issue. I'm not sure if the error is caused by the same bug or not, but figured I mention it in case it is helpful.
Contributor guide
No contributing guide indexed for this repository
Research direction
No repository file or test is identified. Start by reproducing the all-NaN UNet failure with the reported LoRA training and AUTOMATIC1111 setup, recording versions, configuration, and logs; compare it with the Civitai LoRA behavior and the linked issue. Done means identifying a reproducible cause and documenting or verifying an actionable fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100