Skip to content

cls_loss broadcast error #7

@coldgemini

Description

@coldgemini

this is when using custom dataset with nonuniform image sizes

File "/home/xiangyong/Workbench/RetinaNet-unsky/retinanet/core/metric.py", line 73, in update
cls_loss = np.sum(-1 * alpha * labels * np.power(1 - cls_+eps, gamma) * np.log(cls_+eps) - (1-labels)*(1-alpha) * np.power(1 - ( 1-cls_)+eps, gamma) * np.log( 1-cls_+eps))
ValueError: operands could not be broadcast together with shapes (1,20,123) (1,5,123)

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