Skip to content

[train_dreambooth_lora_sdxl] Add --image_interpolation_mode option for image resizing (default to lanczos) - #11490

Merged
asomoza merged 2 commits into
huggingface:mainfrom
MinJu-Ha:lanczos
May 5, 2025
Merged

[train_dreambooth_lora_sdxl] Add --image_interpolation_mode option for image resizing (default to lanczos)#11490
asomoza merged 2 commits into
huggingface:mainfrom
MinJu-Ha:lanczos

Conversation

@MinJu-Ha

@MinJu-Ha MinJu-Ha commented May 5, 2025

Copy link
Copy Markdown
Contributor

related to #11390

This PR adds support for --image_interpolation_mode in train_dreambooth_lora_sdxl.py,
setting the default to lanczos for improved image resizing quality.

This is consistent with the changes made in #11206 to other training scripts.

@asomoza

@MinJu-Ha

MinJu-Ha commented May 5, 2025

Copy link
Copy Markdown
Contributor Author

Since train_dreambooth_lora_sdxl.py already has code blocks for lanczos as shown below, I only modified self.transforms part to make use of the parsed interpolation argument.

image image

@asomoza

asomoza commented May 5, 2025

Copy link
Copy Markdown
Member

yes, indeed I forgot to update that part of the code, thanks!

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@asomoza

asomoza commented May 5, 2025

Copy link
Copy Markdown
Member

thanks!

@asomoza
asomoza merged commit ec93239 into huggingface:main May 5, 2025
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

Successfully merging this pull request may close these issues.

3 participants