Git Product home page Git Product logo

acdm's Introduction

Aesthetic Color Distance Metric

This project is for the ACDM we proposed in the paper "Artwork Protection Against Neural Style Transfer Using Locally Adaptive Adversarial Color Attack", which is accepted by 50th European Conference on Artificial Intelligence (ECAI 2024).

The eval.py contains the settings for reproducing the result of Table 1 in the main paper.

We use the EFDM (the pre-trained vgg and decoder can be found in the link) to generate the image pairs which have:

  1. same content but different style
  2. same style but different content

For datasets, we use the COCO and WikiArt (painter by numbers). As some images are too huge to be processed by PIL, so I filtered some files, the files we kept for the project are listed in the style.csv and content.csv.

We used 10,000 pairs of images with random_seed=3407, the result is:

IQA positive pair negative pair
SSIMc 0.2871 0.4072
LPIPS_vgg 0.5851 0.5459
ACDM 0.0464 0.2982

Enviroment

lpips==0.1.4
numpy==2.0.0
Pillow==9.2.0
torch==2.0.0
torchvision==0.15.1
tqdm==4.65.0

Cite

@incollection{guo2024artwork,
  title={Artwork Protection Against Neural Style Transfer Using Locally Adaptive Adversarial Color Attack},
  author={Guo, Zhongliang and Dong, Junhao and Qian, Yifei and Wang, Kaixuan and Li, Weiye and Guo, Ziheng and Wang, Yuheng and Li, Yanli and Arandjelovi{\'c}, Ognjen and Fang, Lei},
  booktitle={ECAI 2024},
  year={2024},
  publisher={IOS Press}
}

acdm's People

Contributors

zhongliangguo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.