Skip to content

Swapped width and height in DefaultBoxGenerator #6550

@nlgranger

Description

@nlgranger

In the DefaultBoxGenerator module, the image sizes in the image_size argument are given as (height, width) by SSD model but the code assumes (width, height).

x_f_k = image_size[0] / self.steps[k]
y_f_k = image_size[1] / self.steps[k]

I think this has gone unnoticed because the images are usually resized into squares.

cc @datumbox

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions