Giter Site home page Giter Site logo

irenepap2 / re_stylex Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 1.0 67.01 MB

This repository contains our experiments in reproducing Lang et.al's "Explaining in Style: Training a GAN to explain a classifier in StyleSpace".

License: MIT License

Jupyter Notebook 96.18% Python 3.21% C++ 0.19% Cuda 0.42%

re_stylex's Introduction

Reproducibility study for "Explaining in Style: Training a GAN to explain a classifier in StyleSpace"

This repository contains our experiments in reproducing Lang et.al's "Explaining in Style: Training a GAN to explain a classifier in StyleSpace".

Original Paper Material: Website GitHub

Requirements

If case you want to run our code locally, you need to activate the following environment in anaconda.

We strongly recommend running both our notebooks in Colab, since this is the environment we used.

conda env create -f environment.yml

Training

To train our implementation of the StylEx model in the PyTorch, run the StylEx.ipynb (inside train folder) notebook:

Open In Colab

Pre-trained Models

To save time we provide our pre-trained models and .py files needed in a .zip file in Google Drive and load them in the following Colab notebook to reproduce our results.

Results

To reproduce the results shown in our paper, run the Att_Find.ipynb notebook:

Open In Colab

Top 4 attributes for the perceived age classifier
drawing


Independent selection strategy - Top-5 detected attributes
drawing


Classification study results
drawing


Verbal description study results
drawing


The files legacy_modified.py and mobilenet_pytorch.py can be used to transfer the original paper's pre-trained models from TensorFlow to Pytorch. For this, the pre-trained models provided in the authors' notebook (GitHub) are needed.

Contributing

All contributions are welcome. All content in this repository is licensed under the MIT license.

License: MIT

re_stylex's People

Contributors

irenepap2 avatar vick9 avatar chasevdg avatar vasilikivas avatar

Stargazers

mi_no avatar  avatar Ettore Candeloro avatar Ren Pang avatar Neko avatar  avatar  avatar Apostolos Panagiotopoulos avatar

Watchers

 avatar

Forkers

vasilikivas

re_stylex's Issues

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.