Style Cost Function

前言

這裡要介紹的就是Style Cost Function要如何被定義。

內容

  • Meaning of the “style” of an image

  • 首先,style很抽象,要先想辦法量化,才有辦法去計算相似。
  • 某一層的風格特徵:
    • 就是tensor中,每兩個channel之間的correlation。
    • 也就是當一個channel出現所對應的特徵時,另外一個channel裡對應的特徵出現機率有多少。
    • correlation越高,表示某個特徵同時出現在不同的channel的次數越多。
  • Intuition about style of an image

  • Style matrix

  • 複雜。
    • 每個channel都是一個wxh的matrix。
    • 讓任兩個channel的matrix中所對應的值,進行點對點相乘在相加,就得到一個correlation值。
    • 最後,會得到一組Style matrix。
  • Style cost function

  • 分別對S,G在某一層上,各自取得自己的Style matrix。
  • 然後計算這兩個style matrix的差異,就是我們的Style cost function。

該學到的

  • 如何量化style?
  • 什麼是Style matrix?
  • 怎樣定義Style cost function ?

results matching ""

    No results matching ""