Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Fix typos in ROIAlign_cpu.cpp (#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
keineahnung2345 authored and fmassa committed Jun 24, 2019
1 parent 73ed879 commit 5018ca2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions maskrcnn_benchmark/csrc/cpu/ROIAlign_cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void pre_calc_for_bilinear_interpolate(
T hy = 1. - ly, hx = 1. - lx;
T w1 = hy * hx, w2 = hy * lx, w3 = ly * hx, w4 = ly * lx;

// save weights and indeces
// save weights and indices
PreCalc<T> pc;
pc.pos1 = y_low * width + x_low;
pc.pos2 = y_low * width + x_high;
Expand Down Expand Up @@ -168,8 +168,8 @@ void ROIAlignForward_cpu_kernel(
// We do average (integral) pooling inside a bin
const T count = roi_bin_grid_h * roi_bin_grid_w; // e.g. = 4

// we want to precalculate indeces and weights shared by all chanels,
// this is the key point of optimiation
// we want to precalculate indices and weights shared by all channels,
// this is the key point of optimization
std::vector<PreCalc<T>> pre_calc(
roi_bin_grid_h * roi_bin_grid_w * pooled_width * pooled_height);
pre_calc_for_bilinear_interpolate(
Expand Down

0 comments on commit 5018ca2

Please sign in to comment.