LoginSignup
4
10

More than 1 year has passed since last update.

UpSampling4つまとめ

Last updated at Posted at 2021-06-01

UpSampling4つ

1. Nearest Neighbor Interporation(最近傍補間)

  • kerasのupsampling2Dにはinterporation引数にnearest or bilinearの2つがあり、 デフォルトオプションはinterporation=nearest

スクリーンショット 2021-06-01 10.33.08.png

2. Bilinear Interporation(バイリニア補間)

  • kerasのupsampling2Dにはinterporation引数にnearest or bilinearの2つがあり、 要素間を連続的に補間したい時はinterporation=bilinearを選択。

スクリーンショット 2021-06-01 10.33.02.png

3. Bed of Nails(釘埋め)

  • 入力ピクセルの値を出力画像の対応する位置にコピーし、残りの位置にゼロを埋める。 スクリーンショット 2021-06-01 10.39.11.png

4. Max-Unpooling(最大値アンプーリング)

  • Encode部分のMax-Pooling層での最大値を取ったインデックスを保存しておき、Decode部分のMax-Unpooling層ではインデックスに基づいて最大値を入力し、他は全てゼロを埋める。 スクリーンショット 2021-06-01 10.40.48.png

5. Transposed Convolution(転地畳み込み)

  • いくつかの学習可能なパラメーターを使用して、入力特徴マップを目的の出力特徴マップにアップサンプリングする。
  • 入力特徴マップの間を0で埋めて畳み込むことで3x3→5x5のような特徴マップが得られる。
  • Deconvolutionと呼ぶときは一般的にTransposed Convolutionのことを指すことが多い。(稀にNearest Neighbor Interporation + convを指すこともある。) padding_strides_transposed.gif

参考:

4
10
1

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
4
10