未验证 提交 eb48cf1b 编写于 作者: baiyu33's avatar baiyu33 提交者: GitHub

fix tools/darknet/darknet2ncnn.cpp sign-compare warning (#2396)

上级 0de350ad
......@@ -751,7 +751,7 @@ void parse_cfg(std::deque<Section*>& dnet, int merge_output)
if (s->anchors.size() != p->anchors.size())
error("yolo layer anchor count not match, output cannot be merged.");
for (int i = 0; i < s->anchors.size(); i++)
for (size_t i = 0; i < s->anchors.size(); i++)
if (s->anchors[i] != p->anchors[i])
error("yolo anchor size not match, output cannot be merged.");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册