Skip to content

ValueError: zero-size array to reduction operation minimum which has no identity #6

@che525538919

Description

@che525538919

mini = dst[np.where(dst>0)].min()
在执行generate_score_map.py时出现了错误。
下面是某一张出错的图片等label数据,是仿照您提供的blw_0.json的格式制作的。
{
"imageHeight": 415,
"imagePath": "train_ReCTS_000024.jpg",
"imageWidth": 307,
"shapes": [
{
"label": "舊",
"points": [
[
90,
80
],
[
152,
80
],
[
152,
144
],
[
90,
144
]
]
},
{
"label": "街",
"points": [
[
155,
76
],
[
223,
76
],
[
223,
140
],
[
155,
140
]
]
},
{
"label": "糖",
"points": [
[
132,
156
],
[
176,
156
],
[
176,
198
],
[
132,
198
]
]
},
{
"label": "水",
"points": [
[
132,
200
],
[
175,
200
],
[
175,
241
],
[
132,
241
]
]
},
{
"label": "铺",
"points": [
[
132,
243
],
[
176,
243
],
[
176,
284
],
[
132,
284
]
]
}
]
}

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