kohya-ss / kohya-ss/sd-scripts

Nan norm

Open
#2,101 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7.2k
Forks
1.2k
Avg merge
11m
Merged PRs (30d)
2

Description

/home/admin188/AI/kohya_ss/sd-scripts/library/sdxl_lpw_stable_diffusion.py:975: RuntimeWarning: invalid value encountered in cast
images = (images * 255).round().astype("uint8")
steps: 32%|██████ | 640/2000 [34:52<1:14:06, 3.27s/it, Average key norm=nan, Keys Scaled=980, avr_loss=nan]

How could I figure the bug? I've no idea how to trace it.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at /home/admin188/AI/kohya_ss/sd-scripts/library/sdxl_lpw_stable_diffusion.py around line 975 and trace where the image values, average key norm, and loss become NaN. Reproduce the warning, identify the upstream source of the invalid values, and document or fix the behavior once the cause is confirmed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai, machine-learning
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.