1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

Revert "Fix the order of width and height of original size in SDXL training script" (#5614)

Revert "Fix the order of width and height of original size in SDXL training script (#5382)"

This reverts commit 45db049973.
This commit is contained in:
Patrick von Platen
2023-11-01 22:04:47 +01:00
committed by GitHub
parent 29cf163b95
commit 4f2bf67355
2 changed files with 2 additions and 2 deletions

View File

@@ -840,7 +840,7 @@ def main(args):
all_images = []
crop_top_lefts = []
for image in images:
original_sizes.append((image.width, image.height))
original_sizes.append((image.height, image.width))
image = train_resize(image)
if args.center_crop:
y1 = max(0, int(round((image.height - args.resolution) / 2.0)))

View File

@@ -825,7 +825,7 @@ def main(args):
all_images = []
crop_top_lefts = []
for image in images:
original_sizes.append((image.width, image.height))
original_sizes.append((image.height, image.width))
image = train_resize(image)
if args.center_crop:
y1 = max(0, int(round((image.height - args.resolution) / 2.0)))