kohya-ss / kohya-ss/sd-scripts

Can the algorithm for automatic scaling of ARB buckets be specified?

Open
#1,928 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

Currently, there is already an option to enable or disable the automatic upscaling of images that are smaller than the training resolution to match the training resolution. Could we add another option that allows us to choose the scaling algorithm for either upscaling or downscaling? For example, when training pixel art, I would like to specify that the script uses the nearest neighbor method, while for training regular images, it could use Lanczos or a similar algorithm. Alternatively, the script could automatically detect whether the corresponding txt annotation file contains any pixel-related tags—if it does, it would use the nearest neighbor method, and if not, it would default to Lanczos. This would not only save time by eliminating manual processing of the training set but could also improve the training results, since the scaling algorithm for pixel images shouldn’t be the same as that for regular images, right?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the existing automatic upscaling option and the image-resizing path used when building ARB buckets. Clarify whether completion means a user-selectable algorithm, pixel-tag detection, or both, then define how the chosen behavior should apply to upscaling and downscaling.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.