Skip to content

crop_img.resize bug #13

@bogeyturn

Description

@bogeyturn

While I as working on #12 I noticed that img.resize((256, 256)) blurs the image a bit. The green which had sharp borders or whatever you want to call it fades into the background. I exported the crop image and it seems like this bug is caused by crop_img.resize. I am not sure if this is an actual issue, but the input into the InpaintNN will be the image below. Which has a green outline because of the resizing.

for region_counter, region in enumerate(regions, 1):
        bounding_box = expand_bounding(ori, region, expand_factor=1.5)
        crop_img = ori.crop(bounding_box)

        # resize the cropped images
        crop_img = crop_img.resize((256, 256))

with_mask

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions