kohya-ss / kohya-ss/sd-scripts
A massive NPZ file when using alpha mask
- Dominant language
- Python
- Stars
- 7.2k
- Forks
- 1.2k
- Avg merge
- 11m
- Merged PRs (30d)
- 2
Description

When using --alpha_mask, the size of the SDXL NPZ file skyrockets from 25X KB to 4 MB.
Since it’s just a 1 channel mask, the storage requirement is excessively large.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing an SDXL run with --alpha_mask and compare the resulting NPZ file size and stored mask data with a run that does not use the option. Trace where the alpha mask is written, then verify that the one-channel mask no longer causes excessive storage growth while preserving the mask data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100