Skip to content

bxy might be 0 value in train.py #2

Description

@Mary-xl

Dear author,
Many thanks for your great work.
Just found an issue with train.py:
bxy = [[yb // length_0, xb // length_1] for (yb, xb) in coord]
will give you 0 values in the target building process. Could it be a minor mistake, or caused by a different version of python?
How about replacing it with:
bxy= [[torch.true_divide(yb, length_0),torch.true_divide(xb, length_1)] for (yb, xb) in coord]

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