Giter Club home page Giter Club logo

clone-wars-gan's Introduction

CS236G Final Project: Clone Wars GAN

Models

  1. dcgan: Popular DCGAN model with 64x64 output.

  2. rel_dcgan: DCGAN model with additional layers for 128x128 output and relativistic discriminator.

  3. ss_rel_dcgan: rel_dcgan with self-supervision.

  4. ss_rel_gan_improved: ss_rel_dcgan with spectral normalization and less frequent generator training.

  5. ss_rel_resgan: ss_rel_gan_improved with residual blocks.

Getting Started

  1. Install conda if you don't have it on your machine, ideally by installing Anaconda.

  2. Create the conda environment for the project.

conda env create -f env.yml
  1. Activate the environment.
conda activate clone-wars
  1. Install pre-commit hooks while in the root of this project.
pre-commit install

Data Retrieval

The dataset contains copyrighted content so we cannot freely distribute it. Please contact us to obtain a private copy of this dataset.

Training Model

  1. Download dataset and place into data/full folder. This folder should contain another folder containing all images as its root.

  2. Be sure to activate the clone-wars conda environment as specified in the Getting Started section.

  3. Change directory into the model of your choice.

  4. Run the training script.

python train.py

Evaluating Model

  1. Be sure you have fully trained a model.

  2. Within the directory of the model of your choice (currently only rel_dcgan and ss_rel_dcgan), run the eval script.

python eval.py -n NUMBER_OF_IMAGES -d DEVICE MODEL_FILENAME

If the device flag is not specified, the model defaults to using GPU (if available). Type in "cpu" to use CPU.

License

MIT

clone-wars-gan's People

Contributors

devloop0 avatar euirim avatar

Watchers

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