Giter VIP home page Giter VIP logo

exploring-gans's Introduction

FlairGAN

マディさんとケビンさんの implementation of StyleGAN.

Instructions

  1. Create a virtual environment in the root directory using the command:

    python3 -m venv .venv
  2. Activate the virtual environment using the command:

    source .venv/bin/activate
  3. Install the required dependencies using one of the following commands:

    pip3 install -r requirements_macos.txt
    pip3 install -r requirements_linux.txt

Cleanliness

Use black and isort to keep the code clean! They are installed as part of the development dependencies.

Training

We experimented with training on various platforms and found that the training speed varied widely between platforms. The following numbers were obtained using the original FCGAN network architecture.

  • On a 2017 MacBook Pro with a 3.1 GHz Dual-Core Intel Core i5 processor and 8 GB 2133 MHz LPDDR3 RAM, each epoch took around 89.21 s.
  • With a AMD Ryzen 7 3700X 8-Core Processor and 32 GB 3200 MHz DDR4 RAM, each epoch took around 56.77 s.
  • Using an NVIDIA 3060 Ti GPU, each epoch took just 15.55 s.

Inference

To see the inference results on Linux:

  • Make sure you SSH-ed with the -YC options to enable GUI commands.
  • Install imagemagick with sudo apt install imagemagick.
  • This gives you a tool called display.
  • Use display to display your image from the command line.

Utilities

There is currently a utility script info.py that informs you whether or not CUDA is enabled on your system.

❯ python info.py
CUDA:   Yes

exploring-gans's People

Contributors

kevtan avatar mjyip8 avatar

Watchers

 avatar  avatar

exploring-gans's Issues

Interpolation Animation

Create an animation of the generator output as we interpolate from 0 to 1, 1 to 2, ..., all the way back to 0.

Idea: Generating Multiple Numbers

The current idea with conditional generation is to pass in a one-hot vector and use that to determine what kind of number the neural network will generate. What if we wanted to pass in multiple 1's in that vector?

  • First, experiment to see what the generator actually generates in this situation.
  • It would be nice to have the GAN be able to generate variable-sized outputs that correspond to a sequence of numbers like 567 or 97324 or something along those lines. We'd pass in a matrix with the column representing the different numbers to generate and in what sequence.

Explore latent spaces

Even with just the unconditional GAN.

  • Cluster analysis
  • What numbers have embeddings that are closer together in space?
  • Use PCA to visualize the embeddings space
  • Are there multiple cluster centroids for the same number?

Implement GAN Performance Metrics

It's hard to evaluate to the performance of a GAN. How do you even do so? Look into the literature to see what kind of stuff they're doing and why they work.

Does the discriminator improve too quickly?

One common problem people encounter when training GANs is that the discriminator gets too good too fast because its task is much easier than the generator's. Did we notice that in the course of our experiments?

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.