Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TLFZ1 opened this issue Feb 12, 2025 · 1 comment
Open

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

TLFZ1 opened this issue Feb 12, 2025 · 1 comment

Comments

@TLFZ1
Copy link

TLFZ1 commented Feb 12, 2025

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?

@rockerBOO
Copy link
Contributor

Can not be set at the moment but could be something added to support it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants