保留圖像色彩和內容的少樣本肖像風格轉換
Few-shot portrait style translation with color and content preservation
摘要
Training a style translation model on a small dataset, such as 5 samples, has been a challenging task. In this paper, we highlight the significance of developing a robust image content representation for a few-shot style adaptation. To achieve this, we employ a pre-trained vector quantized autoencoder with a context-rich codebook to effectively capture the visual elements as image context. Additionally, we emphasize the need to generate image context at multiple scale levels, allowing the model to capture more details in few-shot references. Moreover, we investigate the problem of color matching in few-shot style transfer scenarios. Typically, most methods aim to predict a color distribution that is similar to the few-shot references. However, users may prefer the transferred image to retain the original colors of the input image in order to preserve specific color characteristics, such as hair or skin color, and thus maintain the identity. Therefore, we propose a data augmentation technique called Hue Shift that enables the model to learn the image context in conjunction with color. This technique can encourage the model to generate a wider variety of colors and produce a style image that aligns with the color distribution of the input. The qualitative and quantitative evaluation shows that our method preserves more features from the source domain than the previous works.
訓練一個小資料集(例如只有5 個參考資料)的風格轉換模型一直是一項具有挑戰性的任務。在這篇論文中,我們強調開發強健的圖像內容表示對於少量樣本風格轉換的重要性。為了實現這一目標,我們使用一種預先訓練的向量量化自編碼器和上下文豐富碼本,以此有效地捕捉視覺元素作為圖像上下文。此外,我們還強調需要在多個縮放層級上生成圖像上下文,使模型能夠在少量參考資料中捕捉更多細節。此外,在少量樣本風格轉換場景中,我們探討了顏色匹配問題。在一般情況下,大多數方法旨在預測與少量參考資料相似的顏色分佈。然而,用戶可能希望轉換後的圖像保留輸入圖像原始顏色以保持特定的顏色特徵(如髮色或膚色),從而保持身份特徵。因此,我們提出了一種名為色調偏移的資料增強技術,使模型能夠學習圖像上下文和顏色之間的關聯。這種技術可以鼓勵模型生成更多不同的顏色,並產生與輸入圖像的顏色分佈相符合的風格圖像。定性和定量評估結果表明,我們的方法比過往的研究更好地保留了來源領域中的特徵。