All Projects → Kibeom-Hong → Domain-Aware-Style-Transfer

Kibeom-Hong / Domain-Aware-Style-Transfer

Licence: other
Official Implementation of Domain-Aware Universal Style Transfer

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to Domain-Aware-Style-Transfer

Shakespearizing-Modern-English
Code for "Jhamtani H.*, Gangal V.*, Hovy E. and Nyberg E. Shakespearizing Modern Language Using Copy-Enriched Sequence to Sequence Models" Workshop on Stylistic Variation, EMNLP 2017
Stars: ✭ 64 (-23.81%)
Mutual labels:  style-transfer, neural-style-transfer
color-aware-style-transfer
Reference code for the paper CAMS: Color-Aware Multi-Style Transfer.
Stars: ✭ 36 (-57.14%)
Mutual labels:  style-transfer, neural-style-transfer
pytorch-neural-style-transfer-johnson
Reconstruction of the fast neural style transfer (Johnson et al.). Some portions of the paper have been improved by the follow-up work like the instance normalization, etc. Checkout transformer_net.py's header for details.
Stars: ✭ 85 (+1.19%)
Mutual labels:  style-transfer, neural-style-transfer
Keras-Style-Transfer
An implementation of "A Neural Algorithm of Artistic Style" in Keras
Stars: ✭ 36 (-57.14%)
Mutual labels:  style-transfer, neural-style-transfer
PyTorch-deep-photo-styletransfer
PyTorch implementation of "Deep Photo Style Transfer": https://arxiv.org/abs/1703.07511
Stars: ✭ 23 (-72.62%)
Mutual labels:  style-transfer, neural-style-transfer
Zi2zi
Learning Chinese Character style with conditional GAN
Stars: ✭ 1,988 (+2266.67%)
Mutual labels:  style-transfer
Tensorflow Fast Style Transfer
A simple, concise tensorflow implementation of fast style transfer
Stars: ✭ 224 (+166.67%)
Mutual labels:  style-transfer
Msg Net
Multi-style Generative Network for Real-time Transfer
Stars: ✭ 152 (+80.95%)
Mutual labels:  style-transfer
Avatar Net
Avatar-Net: Multi-scale Zero-shot Style Transfer by Feature Decoration
Stars: ✭ 150 (+78.57%)
Mutual labels:  style-transfer
awesome-text-style-transfer
A list of resources about Text Style Transfer
Stars: ✭ 43 (-48.81%)
Mutual labels:  style-transfer
Neural-Tile
A better tiling script for Neural-Style
Stars: ✭ 35 (-58.33%)
Mutual labels:  style-transfer
Style transfer
CNN image style transfer 🎨.
Stars: ✭ 210 (+150%)
Mutual labels:  style-transfer
Cartoonify
Deploy and scale serverless machine learning app - in 4 steps.
Stars: ✭ 157 (+86.9%)
Mutual labels:  style-transfer
MIDI-VAE
No description or website provided.
Stars: ✭ 56 (-33.33%)
Mutual labels:  style-transfer
Ai Art
PyTorch (and PyTorch Lightning) implementation of Neural Style Transfer, Pix2Pix, CycleGAN, and Deep Dream!
Stars: ✭ 153 (+82.14%)
Mutual labels:  style-transfer
MeuralPaint
TensorFlow implementation of CNN fast neural style transfer ⚡️ 🎨 🌌
Stars: ✭ 19 (-77.38%)
Mutual labels:  style-transfer
Neural Tools
Tools made for usage alongside artistic style transfer projects
Stars: ✭ 150 (+78.57%)
Mutual labels:  style-transfer
Cyclegan Music Style Transfer
Symbolic Music Genre Transfer with CycleGAN
Stars: ✭ 201 (+139.29%)
Mutual labels:  style-transfer
mlmodelzoo
Build your iOS 11+ apps with the ready-to-use Core ML models below
Stars: ✭ 17 (-79.76%)
Mutual labels:  style-transfer
Vincent Ai Artist
Style transfer using deep convolutional neural nets
Stars: ✭ 176 (+109.52%)
Mutual labels:  style-transfer

Domain Aware Universal Style Transfer

Official Pytorch Implementation of 'Domain Aware Universal Style Transfer' (ICCV 2021)

teaser

Domain Aware Universal Style Transfer

Kibeom Hong (Yonsei Univ.), Seogkyu Jeon (Yonsei Univ.), Huan Yang (Microsoft Research), Jianlong Fu (Microsoft Research), Hyeran Byun (Yonsei Univ.)

Paper : https://openaccess.thecvf.com/content/ICCV2021/html/Hong_Domain-Aware_Universal_Style_Transfer_ICCV_2021_paper.html

Paper[Arxiv] : https://arxiv.org/abs/2108.04441

Abstract: Style transfer aims to reproduce content images with the styles from reference images. Existing universal style transfer methods successfully deliver arbitrary styles to original images either in an artistic or a photo-realistic way. However, the range of “arbitrary style” defined by existing works is bounded in the particular domain due to their structural limitation. Specifically, the degrees of content preservation and stylization are established according to a predefined target domain. As a result, both photo-realistic and artistic models have difficulty in performing the desired style transfer for the other domain. To overcome this limitation, we propose a unified architecture, Domain-aware Style Transfer Networks (DSTN) that transfer not only the style but also the property of domain (i.e., domainness) from a given reference image. To this end, we design a novel domainness indicator that captures the domainness value from the texture and structural features of reference images. Moreover, we introduce a unified framework with domain-aware skip connection to adaptively transfer the stroke and palette to the input contents guided by the domainness indicator. Our extensive experiments validate that our model produces better qualitative results and outperforms previous methods in terms of proxy metrics on both artistic and photo-realistic stylizations.

Notice

Due to the policy change of google-drive which is saving pre-trained weights, it is no longer available on google drive! If you need pre-trained wieght, please contact us via personal email([email protected]) and we will send it to you right away. Thank you :)

Prerequisites

Dependency

  • Python 3.6
  • CUDA 11.1
  • Pytorch 1.7
  • Check the requirements.txt
pip install -r requirements.txt

Usage

Set pretrained weights

  • Pretrained models for encoder(VGG-19) can be found in the ./baseline_checkpoints
  • Prepare pretrained models for Domainnes Indicator

  • Prepare pretrained models for Decoder

  • Move these pretrained weights to each folders:

    • style_indicator.pth -> ./train_results/StyleIndicator/log/
    • decoder.pth -> ./train_results/Decoder/log/
    • decoder_adversarial.pth -> ./train_results/Decoder_adversarial/log/

    (Please rename decoder_adversarial.pth -> decoder.pth)

Inference (Automatic)

  • Vanilla decoder
bash scripts/transfer.sh
  • Decoder with adversarial loss
bash scripts/transfer_adversarial.sh

Inference (User Guided)

  • Vanilla decoder (You should set --alpha value in script file)
bash scripts/transfer_user_guided.sh
  • Decoder with adversarial loss (You should set --alpha value in script file)
bash scripts/transfer_adversarial_user_guided.sh

Inference (Interpolation)

bash scripts/interpolate.sh

Training

Our networks could be trained with end-to-end manner. However, we recommend to train StyleIndicator and Decoder respectively.

  • (1 step) Train StyleIndicator
bash scripts/train_indicator.sh
  • (2 step) Train Decoder
bash scripts/train_decoder.sh

Evaluation

Available soon

Citation

If you find this work useful for your research, please cite:

@InProceedings{Hong_2021_ICCV,
    author    = {Hong, Kibeom and Jeon, Seogkyu and Yang, Huan and Fu, Jianlong and Byun, Hyeran},
    title     = {Domain-Aware Universal Style Transfer},
    booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
    month     = {October},
    year      = {2021},
    pages     = {14609-14617}
}
@article{Hong2021DomainAwareUS,
  title={Domain-Aware Universal Style Transfer},
  author={Kibeom Hong and Seogkyu Jeon and Huan Yang and Jianlong Fu and H. Byun},
  journal={ArXiv},
  year={2021},
  volume={abs/2108.04441}
}

Contact

If you have any question or comment, please contact the first author of this paper - Kibeom Hong

[email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].