Skip to content

Commit

Permalink
crop funciton
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonks684 committed Aug 15, 2024
1 parent 2e5375b commit f6565cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def crop(img, crop_size, type=None):
ndarray: The cropped image array.
"""
# Dimension of input array
_, width, height = img.shape
width, height = img.shape

# Generate random coordinates for the crop
max_y = height - crop_size
Expand Down

0 comments on commit f6565cf

Please sign in to comment.