Skip to content

Commit

Permalink
fix bug in cpu code
Browse files Browse the repository at this point in the history
  • Loading branch information
廖明辉 committed Jul 27, 2018
1 parent 288771a commit 8feae1d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/caffe/util/bbox_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1330,10 +1330,10 @@ void DecodeBBoxPolygon(
decode_polygon->set_y1(y1);
decode_polygon->set_x2(x2);
decode_polygon->set_y2(y2);
decode_polygon->set_x1(x3);
decode_polygon->set_y1(y3);
decode_polygon->set_x2(x4);
decode_polygon->set_y2(y4);
decode_polygon->set_x3(x3);
decode_polygon->set_y3(y3);
decode_polygon->set_x4(x4);
decode_polygon->set_y4(y4);
} else if (code_type == PriorBoxParameter_CodeType_CORNER_SIZE) {
float prior_width = prior_bbox.xmax() - prior_bbox.xmin();
CHECK_GT(prior_width, 0);
Expand Down

0 comments on commit 8feae1d

Please sign in to comment.