Giter Site home page Giter Site logo

aslankims / gans-for-1d-signal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lixianghan/gans-for-1d-signal

0.0 0.0 0.0 115.02 MB

implementation of several GANs with pytorch

Home Page: https://github.com/LixiangHan/GANs-for-1D-Signal

License: MIT License

Python 100.00%

gans-for-1d-signal's Introduction

GANs-for-1D-Signal

Introduction

This repo contains pytorch implementations of several types of GANs, including DCGAN, WGAN and WGAN-GP, for 1-D signal. It was used to generate fake data of Raman spectra, which are typically used in Chemometrics as the fingerprints of materials.

If you use these codes, please kindly cite the this repository.

Requirements

  • python 3.7.8
  • pytorch 1.6.0
  • numpy 1.19.2
  • matplotlib 3.3.0

Experiment Result

DCGAN

WGAN

WGAN-GP

NOTE: RMSprop was used in the implementation of wgan-gp, rather than Adam, which was used in its original version, as it seemed like Adam didn't work well in my applications.

Comparison

Usage

data

You need to put all your data in the same folder in txt format, and make sure they are column vector.

network

The length of signal in my application is 1824, you need to modify the networks according to your data.

train

Run python file end with "train".

Reference

[1] Nathan Inkawhich. DCGAN Tutorial [EB/OL]. https://pytorch.org/tutorials/beginner/dcgan_faces_tutorial.html, 2020-10-14.

[2] Yangyangji. GAN-Tutorial [DB/OL]. https://github.com/Yangyangii/GAN-Tutorial, 2020-10-15.

[3] mcclow12. wgan-gp-pytorch [DB/OL]. https://github.com/mcclow12/wgan-gp-pytorch, 2020-10-15.

gans-for-1d-signal's People

Contributors

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