プリンキピア

第14章コンピュータビジョン

14.5.2. Multiscale Detection14.5.2 マルチスケールの検出

Since we have generated multiscale anchor boxes, we will use them to detect objects of various sizes at different scales. In the following we introduce a CNN-based multiscale object detection method that we will implement in Section 14.7.
英語のヒント
マルチスケールのアンカーボックスを生成したので、それらを使って、異なるスケールでさまざまな大きさの物体を検出する。以下では、14.7節で実装する、CNNにもとづくマルチスケールの物体検出の手法を紹介する。
At some scale, say that we have c feature maps of shape h×w. Using the method in Section 14.5.1, we generate hw sets of anchor boxes, where each set has a anchor boxes with the same center. For example, at the first scale in the experiments in Section 14.5.1, given ten (number of channels) 4×4 feature maps, we generated 16 sets of anchor boxes, where each set contains 3 anchor boxes with the same center. Next, each anchor box is labeled with the class and offset based on ground-truth bounding boxes. At the current scale, the object detection model needs to predict the classes and offsets of hw sets of anchor boxes on the input image, where different sets have different centers.
英語のヒント
あるスケールで、形状がh×wの特徴マップがc枚あるとしよう。14.5.1節の方法を使って、hw組のアンカーボックスを生成する。各組は、中心が同じa個のアンカーボックスをもつ。たとえば、14.5.1節の実験の最初のスケールでは、10枚(チャネル数)の4×4の特徴マップが与えられ、16組のアンカーボックスを生成した。各組は中心が同じ3個のアンカーボックスを含む。次に、各アンカーボックスには、正解の境界ボックスにもとづいてクラスとオフセットのラベルがつけられる。現在のスケールでは、物体検出モデルは、入力画像上のhw組のアンカーボックスのクラスとオフセットを予測する必要がある。異なる組は中心が異なる。
Assume that the c feature maps here are the intermediate outputs obtained by the CNN forward propagation based on the input image. Since there are hw different spatial positions on each feature map, the same spatial position can be thought of as having c units. According to the definition of receptive field in Section 7.2, these c units at the same spatial position of the feature maps have the same receptive field on the input image: they represent the input image information in the same receptive field. Therefore, we can transform the c units of the feature maps at the same spatial position into the classes and offsets of the a anchor boxes generated using this spatial position. In essence, we use the information of the input image in a certain receptive field to predict the classes and offsets of the anchor boxes that are close to that receptive field on the input image.
英語のヒント
ここでのc枚の特徴マップは、入力画像にもとづくCNNの順伝播で得た途中の出力だとする。各特徴マップにはhw個の異なる空間の位置があるので、同じ空間の位置にはc個のユニットがあると考えられる。7.2節の受容野の定義によれば、特徴マップの同じ空間の位置にあるこれらc個のユニットは、入力画像上で同じ受容野をもつ。つまり、同じ受容野の中の入力画像の情報を表している。したがって、同じ空間の位置にある特徴マップのc個のユニットを、この空間の位置を使って生成したa個のアンカーボックスのクラスとオフセットに変換できる。本質的には、ある受容野の中の入力画像の情報を使って、入力画像上でその受容野に近いアンカーボックスのクラスとオフセットを予測する。
When the feature maps at different layers have varying-size receptive fields on the input image, they can be used to detect objects of different sizes. For example, we can design a neural network where units of feature maps that are closer to the output layer have wider receptive fields, so they can detect larger objects from the input image.
英語のヒント
異なる層の特徴マップが入力画像上で大きさの異なる受容野をもつとき、それらを使って異なる大きさの物体を検出できる。たとえば、出力層に近い特徴マップのユニットほど受容野が広くなるようにニューラルネットワークを設計すれば、それらは入力画像から大きな物体を検出できる。
In a nutshell, we can leverage layerwise representations of images at multiple levels by deep neural networks for multiscale object detection. We will show how this works through a concrete example in Section 14.7.
英語のヒント
手短に言えば、深いニューラルネットワークによる画像の複数のレベルでの層ごとの表現を、マルチスケールの物体検出に活用できる。14.7節では、これがどう働くかを具体的な例で示す。