Coder Social home page Coder Social logo

agv-project's Introduction

AGV-Project

This is the official repository of the AGV-Project for crafting evolutionay adversarial attacks using Instagram inspired image filters.

AGV-emotions_attacks

Agv_emotions_attacks contains the code to attack an Emotion Recognizer. The Emotion Recognizer has been trained using the AffectNet dataset that can be downloaded from this link upon request.

Before running the code make sure to add the images for the adversarial attack in the following folder: datasets/images_dataset/emo_images/selected_balanced_images_renamed.

The weights of the trained model can be found in the folder: models/emo_weights.

1. Install dependencies.

pip install -r requirements_cpu.txt

To run the code on GPU, install this list instead:

pip install -r requirements_gpu.txt

2. Example of how to run the code:

python attacks_emotions/agv/agv_attack.py -l TEST.txt -o TEST.json -bs 1 -e 10 -pp 
"offsprings" -ps "direct" -po "ES"  -np 10 -el true -s pareto -df1 ssim  
-db "EMO-SUBSET-80-EMO-MOBILENET_V2-SINGLE"  -nf 3 -r true -lf TEST.out   

agv-project's People

Contributors

ellyuca avatar

Stargazers

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