Skip to content

Commit

Permalink
Swap Crop (#81)
Browse files Browse the repository at this point in the history
Fix crop bug
  • Loading branch information
Landanjs authored Oct 12, 2023
1 parent 4a97a46 commit dc51257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diffusion/datasets/image_caption.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def build_streaming_image_caption_dataloader(
sdxl = False

# Setup the transforms to apply
crop_transform = LargestCenterSquare(resize_size) if rand_crop else RandomCropSquare(resize_size)
crop_transform = RandomCropSquare(resize_size) if rand_crop else LargestCenterSquare(resize_size)
if transform is None:
if sdxl:
# Crop will return parameters so do separately
Expand Down

0 comments on commit dc51257

Please sign in to comment.