LoginSignup
0
1

More than 5 years have passed since last update.

Object detection実装:anchor regression target生成

Posted at

このコミットではanchorに基づいたobject detectionに必要なanchor targetの生成コードを実装する。

Anchorは画像全体に張り巡らされたbounding boxのテンプレート群で、このanchorに基づいて
object detectionモデルは画像内の物体に対応する真のbounding boxへの相対位置および対応するクラスを推定する。
その際の相対位置・クラスをanchor/regression targetなどと呼び、学習時にラベルとして事前に作成しておく必要がある。

実際にanchor targetを作成するにあたっては、anchorと真のbounding boxとの間のIoUを計算し、
それが一定値を超えるものに対してのみanchor targetを計算する。これをforegroundと呼ぶ。
IoUが一定値超える物がないanchorはbackgroundと呼ばれ、anchor targetは計算されない。
ラベルとしてはこのforeground/background情報もobjectnessという二値ラベルとして設定しておく。
モデルはこのobjectnessも予測する事となる。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1