Skip to content

np.float is deprecated #8

@luc-rap

Description

@luc-rap

np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here.

Examples:
issia_dataset.py
return np.array(boxes, dtype=np.float), np.array(labels, dtype=np.int64)
rewrite to
return np.array(boxes, dtype=float), np.array(labels, dtype=np.int64)

np_float_deprecated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions