0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

敵対的生成ネットワークGANに入門してみる

Last updated at Posted at 2023-03-15

1. はじめに

敵対的生成ネットワーク(Generative Adversarial Network:GAN)について勉強しました。
備忘録として残します。

2.どういう手順で学習させるのか?

アルゴリズム

  • step 1. 識別器の学習(贋作と本物を識別する人を育成します。)
  • step 2. GANの学習(贋作を作る人が本物に近づくように育成します。)
  • step 3. step 1.に戻る

2.1. 識別器の学習

識別器の学習では、贋作と本物を識別する人を育成します。

  • step 1. 画像のデータベースからランダムに抽出した画像に、教師ラベル1を割り当てます。
  • step 2. 画像データ生成器で生成した画像に、教師ラベル0を割り当てます。
  • step 3. 訓練画像のデータベースに、教師ラベルと画像を格納します。
  • step 4. 訓練画像のデータベースの教師ラベルと判定結果が、一致するように識別器を学習します。

GANの識別器の学習.jpg

2.2. GANの学習

GANの学習では、贋作を作る人が本物に近づくように育成します。

  • step 1. 識別器のパラメータ更新をオフにします。
  • step 2. 画像データ生成器と識別器の合成関数GANを定義します。
  • step 3. GANの判定結果と教師ラベルが一致するように、GANを学習します。間接的に、画像データ生成器が学習されます。

GANの生成器の学習.jpg

参考文献

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?