Skip to content

Demo cannot handle input images of non 512x512 size #17

Description

@MarcusW03

I was running the demo of the mi-gan with my own set of testing images. I noticed that for images that aren't 512x512 an error is produced.
/scripts/demo.py", line 140, in main composed_img = img_resized * mask_resized + result_image * (1 - mask_resized) ~~~~~~~~~~~~^~~~~~~~~~~~~~ ValueError: operands could not be broadcast together with shapes (341,512,3) (340,512,1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions