Skip to content

RuntimeWarning: invalid value encountered in divide  #3

@dongfeicui

Description

@dongfeicui

I encountered the following error, will this affect the training? I got very bad results.
/mnt/4t_disk/sxq/CRGNet4/utils/tools.py:98: RuntimeWarning: invalid value encountered in divide
acc_cls = np.diag(hist) / hist.sum(axis=1)
/mnt/4t_disk/sxq/CRGNet4/utils/tools.py: 100 : RuntimeWarning: invalid value encountered in divide
iu = np.diag(hist) / (hist.sum(axis=1) + hist.sum(axis=0) - np.diag(hist))
VaihingenSeg_log.txt

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