Skip to content

replace np.float with float as it's deprecated since numpy 1.20.0 #37

@hubutui

Description

@hubutui

lvis-api/lvis/eval.py

Lines 361 to 362 in da5f65d

tp_sum = np.cumsum(tps, axis=1).astype(dtype=np.float)
fp_sum = np.cumsum(fps, axis=1).astype(dtype=np.float)

As descriped at upstream:

np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions