Giter VIP home page Giter VIP logo

xaigan's Introduction

XAI-GAN

Table of Contents

  • Introduction
  • Usage
  • Report

Introduction

Generative Adversarial Networks (GANs) are a revolutionary class of Deep Neural Networks (DNNs) that have been successfully used to generate realistic images, music, text, and other data. However, GAN training presents many challenges, notably it can be very resource-intensive. A potential weakness in GANs is that it requires a lot of data for successful training and data collection can be an expensive process. Typically, discriminator DNNs provide only one value (loss) of corrective feedback to generator DNNs (namely, the discriminator's assessment of the generated example). By contrast, we propose a new class of GAN we refer to as xAI-GAN that leverages recent advances in explainable AI (xAI) systems to provide a "richer" form of corrective feedback from discriminators to generators.

Source Code

The code of the project is found in the /src/ directory and run using the main.py file.

Reproduce Results

To run any of the GANs specified (with or without xAI):

  1. Go to src/experiment_enums.py and fill out the enums(s) of experiments to run (the file shows what to include)
  2. Run python3 main.py
  3. The results for each experiment (except for the FID scores) will be found under src/results While the source code contains everything necessary to run the experiments, the code for evaluation is not ours. In order to evaluate (using FID scores), do the following:
  4. For CIFAR10, clone https://github.com/bioinf-jku/TTUR/blob/master/fid_example.py and pass the folder of the generated images.
  5. For MNIST or Fashion MNIST, clone https://github.com/mseitzer/pytorch-fid and pass the paths of numpy files generated.
  6. In order to run Differentiable Augmentation technique, copy the https://github.com/mit-han-lab/data-efficient-gans/DiffAugment_pytorch.py file and follow the instructions in https://github.com/mit-han-lab/data-efficient-gans.

xaigan's People

Contributors

logicgan avatar explainable-gan 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.