From 9cef9f572251b5e9359cbd0d93f8bf994b1c95b9 Mon Sep 17 00:00:00 2001 From: keineahnung2345 Date: Mon, 24 Jun 2019 10:45:30 +0800 Subject: [PATCH] Fix typos in ROIAlign_cpu.cpp --- maskrcnn_benchmark/csrc/cpu/ROIAlign_cpu.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maskrcnn_benchmark/csrc/cpu/ROIAlign_cpu.cpp b/maskrcnn_benchmark/csrc/cpu/ROIAlign_cpu.cpp index d35aedf27..d531da623 100644 --- a/maskrcnn_benchmark/csrc/cpu/ROIAlign_cpu.cpp +++ b/maskrcnn_benchmark/csrc/cpu/ROIAlign_cpu.cpp @@ -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 pc; pc.pos1 = y_low * width + x_low; pc.pos2 = y_low * width + x_high; @@ -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> pre_calc( roi_bin_grid_h * roi_bin_grid_w * pooled_width * pooled_height); pre_calc_for_bilinear_interpolate(