プリンキピア

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

14.4. Anchor Boxes14.4 アンカーボックス

Object detection algorithms usually sample a large number of regions in the input image, determine whether these regions contain objects of interest, and adjust the boundaries of the regions so as to predict the ground-truth bounding boxes of the objects more accurately. Different models may adopt different region sampling schemes. Here we introduce one of such methods: it generates multiple bounding boxes with varying scales and aspect ratios centered on each pixel. These bounding boxes are called anchor boxes. We will design an object detection model based on anchor boxes in Section 14.7.
英語のヒント
物体検出のアルゴリズムは、ふつう入力画像の中の多数の領域を抽出し、それらの領域が注目する物体を含むかどうかを判定し、物体の正解の境界ボックスをもっと正確に予測するように領域の境界を調整する。モデルによって、異なる領域の抽出方式を採用することがある。ここでは、そうした手法の一つを紹介する。それは、各画素を中心として、さまざまな縮尺と縦横比をもつ複数の境界ボックスを生成する。これらの境界ボックスはアンカーボックスと呼ばれる。14.7節では、アンカーボックスにもとづく物体検出モデルを設計する。
First, let’s modify the printing accuracy just for more concise outputs.
英語のヒント
まず、出力をもっと簡潔にするため、表示の精度を変更しよう。
%matplotlib inline
import torch
from d2l import torch as d2l

torch.set_printoptions(2)  # Simplify printing accuracy