Skip to content

A bug when cropping images? #11

Open
@yosider

Description

@yosider

Hi, thank you for your great research!
I'm afraid I think there is a bug at the random_crop function in utils.py:

curl/utils.py

Lines 244 to 245 in 23b0880

w1 = np.random.randint(0, crop_max, n)
h1 = np.random.randint(0, crop_max, n)

I think the crop_max should be modified as crop_max + 1.
If left as it is, the bottom and rightmost columns of the image are not included in cropped_image. Also, an error occurs when output_size==img_size.
I'm sorry if I'm wrong :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions