# StyleFlow: Attribute-conditioned Exploration of StyleGAN-Generated Images using Conditional Continuous Normalizing Flows

StyleFlow：条件付き連続正規化フローを用いたStyleGAN生成画像の属性条件付き探索

Rameen Abdal, Peihao Zhu, Niloy Mitra, Peter Wonka · arXiv · 2020年8月6日

- **課題** 条件付きGANでは属性を学習時に指定する必要があり、無条件のStyleGANの潜在空間での編集は属性どうしの絡み合いにより、同一性が変わりやすい問題があります。
- **手法** StyleFlowは、StyleGANのW空間のwと属性ベクトルの対応を条件付き連続正規化フローで学習し、Joint Reverse Encoding、Conditional Forward Editing、編集ごとの部分集合選択によって画像を編集します。
- **結果** すべての編集をまとめた顔の同一性のコサイン類似度は、StyleFlow(V2)が0.941で、Image2StyleGANの0.870、InterfaceGANの0.895、GANSpaceの0.902より高いと報告されています。逐次編集のFIDは53.15で、比較手法より低いと報告されています。

## 研究課題と既存手法の限界

StyleGANは高解像度で写実的な顔や自動車の画像を無条件に生成しますが、年齢や表情といった意味的な属性で生成過程を制御する方法は限られています。条件付きGANでは属性を学習時に指定する必要があるため、新しい属性を追加しにくく、学習されていない属性が編集時に一緒に変わり、対象の同一性が失われることがあります。この論文は、この問題を条件付き生成ではなく、学習済みの無条件GANの潜在空間での条件付き探索の問題として扱います。扱う課題は2つで、属性条件付きサンプリングと属性制御編集です。サンプリングは目標の属性を満たす画像を複数得る課題であり、編集は与えられた画像の属性を変えつつ同一性を保つ課題です。

## 条件付き連続正規化フローの構成

StyleFlowは、StyleGANのW空間にあるベクトルwと属性ベクトルa\_tの対応を、条件付き連続正規化フローで学習します。事前分布のガウス分布zから出発し、目標の属性a\_tが条件として与えられたときにwを作る関数Φ(z, a)を学習します。このフローはneural ODEで定義され、対数密度の変化はヤコビアン行列式ではなくtraceで計算されます。学習データは、潜在ベクトルzをサンプリングしてW空間のwを得て、画像を生成したあと、顔の分類APIと照明推定モデルで属性を測定して作ります。属性ベクトルは顔について17次元で構成されます。複数の属性をまとめて入力に連結して学習する方法は、属性ごとに個別に学習する方法より絡み合いを減らすと、著者らは報告しています。

## 編集手順と適用範囲

実際の画像編集は3段階で行われます。1段階目のJoint Reverse Encodingでは、wと現在の属性を一緒に逆方向に推論してz0を得ます。2段階目のConditional Forward Editingでは、z0を固定し、目標の属性a′\_tで順方向に推論して編集後のw′を得ます。3段階目のEdit Specific Subset Selectionでは、編集の種類に応じて、W+空間の一部の層のインデックスだけにw′を適用します。たとえば照明は後半の層に、表情は中間の層に適用するように、著者らは経験的に決めています。実画像は、まずW+空間に投影してから、この手順を適用します。編集結果がW空間の分布内にとどまるように設計されているため、逐次編集が安定していると報告されています。

![Figure 9: Real image non-sequential edits using our StyleFlow framework. Note that the method is able to handle extreme pose (first and second rows), asymmetri…](https://refivu.com/papers/49804159-5719-4639-92c6-0d48431420f2/figures/figure-eb371b376e9148c1f5c5e7cdbf8ad381.png?thumb=512)

**Fig. 9** . Real image non-sequential edits using our StyleFlow framework. Note that the method is able to handle extreme pose (first and second rows), asymmetrical expressions (fourth row) and age diversity (first and last rows) well compared to the concurrent methods.

[出典](https://arxiv.org/abs/2008.02401v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rameen Abdal, Peihao Zhu, Niloy Mitra, Peter Wonka · StyleFlow: Attribute-conditioned Exploration of StyleGAN-Generated Images using Conditional Continuous Normalizing Flows · 論文の図を引用 · 元のPDFの11ページ目から図の部分を抽出しています。

## データセットと評価指標

実験は、FFHQの顔データセットとLSUN-Carの自動車データセットで行われました。評価指標は3つです。FIDは生成または編集された画像の現実感と多様性を測り、低いほど良い指標です。顔の同一性スコアは、編集前後の顔埋め込みのコサイン類似度とユークリッド距離で、照明、姿勢、表情の編集について計算されます。編集の一貫性スコアは、編集の順序を入れ替えても同じ属性が現れるかを、平均絶対誤差で確認します。比較対象はImage2StyleGAN、InterfaceGAN、GANSpaceで、StyleRigはユーザー調査と実画像での比較で扱われます。

## 主な比較結果

逐次編集のFIDでは、Our(V2)が53.15と報告されており、Image2StyleGANの82.49、InterfaceGANの67.08、GANSpaceの64.69より低い値です。顔の同一性の表では、すべての編集をまとめたコサイン類似度がV2で0.941と報告されており、Image2StyleGANの0.870、InterfaceGANの0.895、GANSpaceの0.902より高く報告されています。これらの数値は、著者がStyleGAN2をベースに再実装した比較条件で得られた結果です。編集の一貫性の評価でも、StyleFlow(V2)の平均絶対誤差は比較対象より低く現れています。

ただし表情の編集では、GANSpaceも同程度に良い結果を示しました。

![Figure 14: Real image editing comparison with competing methods](https://refivu.com/papers/49804159-5719-4639-92c6-0d48431420f2/figures/figure-403cc252363c4f1bc97c5fc4c445138f.png?thumb=512)

**Fig. 14** . Real image editing comparison with competing methods.

[出典](https://arxiv.org/abs/2008.02401v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rameen Abdal, Peihao Zhu, Niloy Mitra, Peter Wonka · StyleFlow: Attribute-conditioned Exploration of StyleGAN-Generated Images using Conditional Continuous Normalizing Flows · 論文の図を引用 · 元のPDFの16ページ目から図の部分を抽出しています。

![Figure 15: Real image editing comparison with competing methods (cont.)](https://refivu.com/papers/49804159-5719-4639-92c6-0d48431420f2/figures/figure-323d623f0d6307b28943636a12f9d551.png?thumb=512)

**Fig. 15** . Real image editing comparison with competing methods (cont.).

[出典](https://arxiv.org/abs/2008.02401v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rameen Abdal, Peihao Zhu, Niloy Mitra, Peter Wonka · StyleFlow: Attribute-conditioned Exploration of StyleGAN-Generated Images using Conditional Continuous Normalizing Flows · 論文の図を引用 · 元のPDFの17ページ目から図の部分を抽出しています。

![Figure 19: Comparison of StyleFlow with other contemporary systems Image2StyleGAN (Abdal et al. 2019) and InterfaceGAN (Shen et al. 2019)](https://refivu.com/papers/49804159-5719-4639-92c6-0d48431420f2/figures/figure-99579eb9027200e2b4b748bc947d8e84.png?thumb=512)

**Fig. 19** . Comparison of StyleFlow with other contemporary systems Image2StyleGAN (Abdal et al. 2019) and InterfaceGAN (Shen et al. 2019).

[出典](https://arxiv.org/abs/2008.02401v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rameen Abdal, Peihao Zhu, Niloy Mitra, Peter Wonka · StyleFlow: Attribute-conditioned Exploration of StyleGAN-Generated Images using Conditional Continuous Normalizing Flows · 論文の図を引用 · 元のPDFの20ページ目から図の部分を抽出しています。

## CNFの関数数と学習設定

CNFの関数数を2個から6個まで変えたアブレーション実験では、4個を重ねたモデルが選ばれたモデルとして報告されています。このモデルのパラメータ数は1128449で、最終的な対数尤度は-4327872です。6個を重ねたモデルは推論時間は短いものの、絡み合いの除去の品質がわずかに下がると説明されています。対数尤度は高いほど良い指標です。学習設定では、Adamオプティマイザと初期学習率1e-3を使用しており、この値は本研究のCNF学習設定に限った値です。

![Table 4: Ablation Study of StyleFlow CNF functions](https://refivu.com/papers/49804159-5719-4639-92c6-0d48431420f2/figures/figure-89e3e2e13c2a0b6683dbb3550b230fff.png?thumb=512)

**Table 4** . Ablation Study of StyleFlow CNF functions.

[出典](https://arxiv.org/abs/2008.02401v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rameen Abdal, Peihao Zhu, Niloy Mitra, Peter Wonka · StyleFlow: Attribute-conditioned Exploration of StyleGAN-Generated Images using Conditional Continuous Normalizing Flows · 論文の図を引用 · 元のPDFの13ページ目から図の部分を抽出しています。

## 限界と適用範囲

著者らは3つの限界を挙げています。1つ目は、この手法が属性ラベルの有無に依存するため、新しいデータセットでは手作業のラベル付けが必要になる場合があることです。2つ目は、良い結果は主に高品質なFFHQで学習したStyleGANで得られたことです。3つ目は、実画像の編集では合成画像に比べてアーティファクトが現れる場合があることです。また、属性分類器は顔の属性に合わせて選ばれているため、自動車の編集に関する定量評価は一部の測定に限られます。回転編集は定量評価のモデルがないため、視覚的な例としてのみ報告されています。

## 論文情報

- **著者**: Rameen Abdal, Peihao Zhu, Niloy Mitra, Peter Wonka
- **学会・ジャーナル**: arXiv · プレプリント
- **公開日**: 2020年8月6日
- **登録日**: 2026年11月6日
- **更新日**: 2020年9月20日
- **バージョン**: v2
- **arXiv**: 2008.02401
- **DOI**: 10.1145/3447648
- **カテゴリ**: cs.CV · cs.GR
- **ライセンス**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **掲載内容**: 論文情報・解説・論文の図

[元論文 ↗](https://arxiv.org/abs/2008.02401v2) · [PDF ↗](https://arxiv.org/pdf/2008.02401v2)

この解説は、Refivuの韓国語解説をAIで翻訳したものです。不正確な翻訳や誤りが含まれる可能性があります。論文と図の利用条件は各出典に従います。

## アブストラクト

High-quality, diverse, and photorealistic images can now be generated by unconditional GANs (e.g., StyleGAN). However, limited options exist to control the generation process using (semantic) attributes, while still preserving the quality of the output. Further, due to the entangled nature of the GAN latent space, performing edits along one attribute can easily result in unwanted changes along other attributes. In this paper, in the context of conditional exploration of entangled latent spaces, we investigate the two sub-problems of attribute-conditioned sampling and attribute-controlled editing. We present StyleFlow as a simple, effective, and robust solution to both the sub-problems by formulating conditional exploration as an instance of conditional continuous normalizing flows in the GAN latent space conditioned by attribute features. We evaluate our method using the face and the car latent space of StyleGAN, and demonstrate fine-grained disentangled edits along various attributes on both real photographs and StyleGAN generated images. For example, for faces, we vary camera pose, illumination variation, expression, facial hair, gender, and age. Finally, via extensive qualitative and quantitative comparisons, we demonstrate the superiority of StyleFlow to other concurrent works.

## この論文を引用

Rameen Abdal, Peihao Zhu, Niloy Mitra, Peter Wonka (2020). StyleFlow: Attribute-conditioned Exploration of StyleGAN-Generated Images using Conditional Continuous Normalizing Flows. arXiv:2008.02401v2. https://doi.org/10.1145/3447648

**BibTeX**

```
@article{abdal2020styleflow,
  title = {{StyleFlow: Attribute-conditioned Exploration of StyleGAN-Generated Images using Conditional Continuous Normalizing Flows}},
  author = {Rameen Abdal and Peihao Zhu and Niloy Mitra and Peter Wonka},
  year = {2020},
  eprint = {2008.02401},
  archivePrefix = {arXiv},
  doi = {10.1145/3447648},
  url = {https://arxiv.org/abs/2008.02401v2}
}
```

## この論文の用語

- [DPR](https://refivu.com/ja/terms/f295583cf0b4-dpr)
- [StyleGAN](https://refivu.com/ja/terms/cb0e94aec3fd-stylegan)
- [Continuous Normalizing Flows (CNF)](https://refivu.com/ja/terms/f2f923b2af6b-continuous-normalizing-flows-cnf)
- [FFHQ](https://refivu.com/ja/terms/77fa6feda97a-ffhq)
- [Neural ODE](https://refivu.com/ja/terms/651dc406d45a-neural-ode)
- [StyleGAN2](https://refivu.com/ja/terms/77cd7d2c5d81-stylegan2)

## 関連論文

- [Analyzing and Improving the Image Quality of StyleGAN](https://refivu.com/ja/papers/e2a72d06-1704-43a3-b07f-7a9c61ec260b-analyzing-and-improving-the-image-quality-of-stylegan.md)

## ほかの論文解説

- [Visual Spatial Reasoning](https://refivu.com/ja/papers/21c16be4-8990-40f5-8849-b7c6f46d36b4-visual-spatial-reasoning.md)
- [Machine learning-based network intrusion detection for big and imbalanced data using oversampling, stacking feature embedding and feature extraction](https://refivu.com/ja/papers/ffcd2c90-0ecb-4bf2-968e-883dd5d0ec8e-machine-learning-based-network-intrusion-detection-for-big.md)
- [Deep Visual Attention Prediction](https://refivu.com/ja/papers/f63842a2-f64a-4970-8075-0c7abdfe8be0-deep-visual-attention-prediction.md)
- [A Comprehensive Survey of Deep Learning for Image Captioning](https://refivu.com/ja/papers/c7cbf1e3-42d7-4d5f-b402-6cde0511793d-a-comprehensive-survey-of-deep-learning-for-image.md)
- [A Review and Comparative Study on Probabilistic Object Detection in Autonomous Driving](https://refivu.com/ja/papers/a821d485-d9f8-4b31-a6dd-8d37dd242cd9-a-review-and-comparative-study-on-probabilistic-object.md)
- [DL-Droid: Deep learning based android malware detection using real devices](https://refivu.com/ja/papers/e8c4fb2d-bb8d-43c7-b570-745e501ed499-dl-droid-deep-learning-based-android-malware-detection.md)
- [Deep Reinforcement Learning for Stochastic Computation Offloading in Digital Twin Networks](https://refivu.com/ja/papers/3abcd222-e3a8-4466-ab8d-04aeace1e847-deep-reinforcement-learning-for-stochastic-computation.md)
- [Federated Social Recommendation with Graph Neural Network](https://refivu.com/ja/papers/ce54fcd7-f119-4f48-9809-3fe4f5cc05cd-federated-social-recommendation-with-graph-neural-network.md)
- [An Introduction to Deep Generative Modeling](https://refivu.com/ja/papers/02e18aa5-91fb-46d1-afb1-87e9dbd71146-an-introduction-to-deep-generative-modeling.md)
- [Avoiding Overfitting: A Survey on Regularization Methods for Convolutional Neural Networks](https://refivu.com/ja/papers/726fc9f2-ea0b-4f5f-b42e-cc0c9f6e4c3a-avoiding-overfitting-a-survey-on-regularization-methods-for.md)
- [Mastering the Game of Stratego with Model-Free Multiagent Reinforcement Learning](https://refivu.com/ja/papers/c8ba1a5f-8040-4096-92b0-d848951ca124-mastering-the-game-of-stratego-with-model-free.md)
- [Learning Agile Soccer Skills for a Bipedal Robot with Deep Reinforcement Learning](https://refivu.com/ja/papers/3ef41329-5e9b-477a-9ece-c7d4b12b603d-learning-agile-soccer-skills-for-a-bipedal-robot.md)

---

AI解説には誤りが含まれることがあります。 [Refivu](https://refivu.com/ja/papers/49804159-5719-4639-92c6-0d48431420f2-styleflow-attribute-conditioned-exploration-of-stylegan)
