All Projects → mahmoudnafifi → color-aware-style-transfer

mahmoudnafifi / color-aware-style-transfer

Licence: other
Reference code for the paper CAMS: Color-Aware Multi-Style Transfer.

Programming Languages

Jupyter Notebook
11667 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to color-aware-style-transfer

Image recoloring
Image Recoloring Based on Object Color Distributions (Eurographics 2019)
Stars: ✭ 30 (-16.67%)
Mutual labels:  style-transfer, image-manipulation, color-transfer
HistoGAN
Reference code for the paper HistoGAN: Controlling Colors of GAN-Generated and Real Images via Color Histograms (CVPR 2021).
Stars: ✭ 158 (+338.89%)
Mutual labels:  style-transfer, image-manipulation, color-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 (+77.78%)
Mutual labels:  style-transfer, neural-style-transfer
Keras-Style-Transfer
An implementation of "A Neural Algorithm of Artistic Style" in Keras
Stars: ✭ 36 (+0%)
Mutual labels:  style-transfer, neural-style-transfer
awesome style transfer
The style transfer paper collection in International CV conference
Stars: ✭ 42 (+16.67%)
Mutual labels:  style-transfer, styletransfer
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 (+136.11%)
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 (-36.11%)
Mutual labels:  style-transfer, neural-style-transfer
Tsit
[ECCV 2020 Spotlight] A Simple and Versatile Framework for Image-to-Image Translation
Stars: ✭ 141 (+291.67%)
Mutual labels:  style-transfer, image-manipulation
Domain-Aware-Style-Transfer
Official Implementation of Domain-Aware Universal Style Transfer
Stars: ✭ 84 (+133.33%)
Mutual labels:  style-transfer, neural-style-transfer
Scaffold-Map
Robust, efficient and low distortion bijective mapping in 2D and 3D
Stars: ✭ 51 (+41.67%)
Mutual labels:  texture-mapping
gocv-playground
This repo contains various https://gocv.io/ examples
Stars: ✭ 29 (-19.44%)
Mutual labels:  image-manipulation
style swap tensorflow
tensorflow code for Fast Patch-based Style Transfer of Arbitrary Style
Stars: ✭ 42 (+16.67%)
Mutual labels:  style-transfer
imagekit-php
PHP SDK for ImageKit.io API.
Stars: ✭ 34 (-5.56%)
Mutual labels:  image-manipulation
gans-2.0
Generative Adversarial Networks in TensorFlow 2.0
Stars: ✭ 76 (+111.11%)
Mutual labels:  style-transfer
StyleGAN demo
The re-implementation of style-based generator idea
Stars: ✭ 22 (-38.89%)
Mutual labels:  style-transfer
BusterNet
No description or website provided.
Stars: ✭ 49 (+36.11%)
Mutual labels:  image-manipulation
StyleCLIPDraw
Styled text-to-drawing synthesis method. Featured at IJCAI 2022 and the 2021 NeurIPS Workshop on Machine Learning for Creativity and Design
Stars: ✭ 247 (+586.11%)
Mutual labels:  style-transfer
Image-Style-Transfer-Using-CNNs
Implementation of Image Style Transfer Using CNNs using Pytorch.
Stars: ✭ 16 (-55.56%)
Mutual labels:  styletransfer
texturize
🤖🖌️ Generate photo-realistic textures based on source images. Remix, remake, mashup! Useful if you want to create variations on a theme or elaborate on an existing texture.
Stars: ✭ 495 (+1275%)
Mutual labels:  image-manipulation
casia2groundtruth
Groundtruth images of tampering dataset CASIA 2.0
Stars: ✭ 97 (+169.44%)
Mutual labels:  image-manipulation

CAMS: Color-Aware Multi-Style Transfer

Mahmoud Afifi1, Abdullah Abuolaim*1, Mostafa Hussien*2, Marcus A. Brubaker1, Michael S. Brown1

1York University
2École de technologie supérieure

* denotes equal contribution

Reference code for the paper CAMS: Color-Aware Multi-Style Transfer. Mahmoud Afifi, Abdullah Abuolaim, Mostafa Hussien, Marcus A. Brubaker, and Michael S. Brown. arXiv preprint, 2021. If you use this code, please cite our paper:

@article{afifi2021coloraware,
  title={CAMS: Color-Aware Multi-Style Transfer},
  author={Afifi, Mahmoud and Abuolaim, Abdullah and Hussien, Mostafa and Brubaker, Marcus A. and Brown, Michael S.},
  journal={arXiv preprint arXiv:2106.13920},
  year={2021}
}

github

Get Started

Run color_aware_st.py or check the Colab link from here.

To compute the color-aware loss between two images, see test_cams_loss.py. To report the average color-aware loss for a set of pair images, use report_losses_of_image_dir.py.

Manual Selection

Our method allows the user to manually select the color correspondences between palettes or ignore some colors when optimizing. user_selection

To enable this mode, use SELECT_MATCHES = True.

Other useful parameters:

  • SMOOTH: smooth generated mask before optimizing.
  • SHOW_MASKS: to visualize the generated masks during optimization.
  • SIGMA: to control the fall off in the radial basis function when generating the masks. Play with its value to get different results; generally, 0.25 and 0.3 work well in most cases.
  • PALETTE_SIZE: number of colors in each palette.
  • ADD_BLACK_WHITE: to append black and white colors to the final palette before optimizing.
  • STYLE_LOSS_WEIGHT: weight of style loss
  • CONTENT_LOSS_WEIGHT: weight of content loss.
  • COLOR_DISTANCE: similarity metric when computing the mask. Options include: 'chroma_L2' (L2 on chroma space) or 'L2' (L2 on RGB space).
  • STYLE_FEATURE_DISTANCE: similarity metric for style loss. Options include: 'L2' or 'COSINE' (for cosine similarity).
  • CONTENT_FEATURE_DISTANCE: = similarity metric for content loss. Options include: 'L2' or 'COSINE' (for cosine similarity).
  • OPTIMIZER: optimization algorithm. Options include: 'LBFGS', 'Adam', 'Adagrad'.

MIT License

Related Research Projects

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].