Skip to content

Commit ec93239

Browse files
authored
[train_dreambooth_lora_sdxl] Add --image_interpolation_mode option for image resizing (default to lanczos) (#11490)
feat(train_dreambooth_lora_sdxl): support --image_interpolation_mode with default to lanczos
1 parent fc5e906 commit ec93239

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/dreambooth/train_dreambooth_lora_sdxl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ def __init__(
852852

853853
self.image_transforms = transforms.Compose(
854854
[
855-
transforms.Resize(size, interpolation=transforms.InterpolationMode.BILINEAR),
855+
transforms.Resize(size, interpolation=interpolation),
856856
transforms.CenterCrop(size) if center_crop else transforms.RandomCrop(size),
857857
transforms.ToTensor(),
858858
transforms.Normalize([0.5], [0.5]),

0 commit comments

Comments
 (0)