Browse Source

Update priorbox.cpp (#330)

tags/20180427
AlanNewImage nihui 8 years ago
parent
commit
e77eef3f3d
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/layer/priorbox.cpp

+ 4
- 4
src/layer/priorbox.cpp View File

@@ -135,10 +135,10 @@ int PriorBox::forward(const std::vector<Mat>& bottom_blobs, std::vector<Mat>& to

if (flip)
{
box[0] = (center_x - box_h * 0.5f) / image_h;
box[1] = (center_y - box_w * 0.5f) / image_w;
box[2] = (center_x + box_h * 0.5f) / image_h;
box[3] = (center_y + box_w * 0.5f) / image_w;
box[0] = (center_x - box_h * 0.5f) / image_w;
box[1] = (center_y - box_w * 0.5f) / image_h;
box[2] = (center_x + box_h * 0.5f) / image_w;
box[3] = (center_y + box_w * 0.5f) / image_h;

box += 4;
}


Loading…
Cancel
Save