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:
committed by
GitHub
parent
29cf163b95
commit
4f2bf67355
@@ -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)))
|
||||
|
||||
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user