Git Product home page Git Product logo

passgan-iwgan-tensorflow-2's Introduction

PSA: I will update the project to fix outstanding issues by 1Q2024.maintenance issues are due to lack of nvidia gpu (for tensorflow)

PassGAN Evaluation

This is the release code repository for the evaluation of PassGAN(https://arxiv.org/pdf/1709.00440.pdf) built using Tensorflow 2, Python 3.7, Keras and Numpy to the described specification. It contains my Tensorflow 2 implementation of an Improved Wasserstein GAN (IWGAN) with the intent of comparing the results found in the aformentioned paper. GCP has the fastest cold start time roughly taking 10minutes from start to train depending on the dataset download speed. Simply grab the container in a VM, install Python 3.7, the latest pip (20 and above) and install requirements. You should be ready to go. Training time on an 80% dataset takes almost a week on a V100, but is characteristically IWGAN stable.

Getting Started

python GAN.py -dataset rock_you -batch_size 64 -layer_dim 128 && tensorboard --log_dir logs/gradient_tape

Prerequisites

System Software

Ubuntu 19.10+ or suitable Docker environment https://www.docker.com/get-started
TENSORFLOW-GPU 2.1 https://www.tensorflow.org/
Jetbrains-Pycharm or equivalent

Installing

The easiest way to get started

Setup environment according to the TENSORFLOW setup document included: Ubuntu required
Pull the repository
Import packages via Pycharm packet manager
Run project with python GAN.py to pull dataset and begin training

passgan-iwgan-tensorflow-2's People

Contributors

dependabot[bot] avatar riathoir avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

passgan-iwgan-tensorflow-2's Issues

GitHUb has a 100mb file limit

Github has a 100mb file limit resulting in the rockyou dataset being unable to push to repo.
https://help.github.com/en/enterprise/2.18/user/github/managing-large-files/conditions-for-large-files

A work around solution is to either not commit my dataset or to use an alternative.
This isn't an immediate issue, as I host versioning on a local server but I will combine it with bitbucket offsite as redundancy.

Issue unresolved until github workaround found.

SOLVED EDIT: Dataset Cloud hosted and cached locally

Feature Request: ability to select data source

Currently you're only able to use the rock_you dataset predefined by the DatasetPipeline. It would be nice to see the ability to load a dataset based on a specified file such as a rock_you source hosted locally.

there are some difference and misunderstanding in your code

First , in the original paper , Z is a 128-dimensional vector generated by tf.random.normal (without regard to the batchsize ), then transmit it into the full connection layer . The input dim of the full connection layer is 128 and the output dim is 120*seq_len .

But in youe code , Z is [2,1,32] ?(I dont know why) , and the full connection layer in your code is also different from the original code because the use of keras . In your code , The input dim of the full connection layer is 128*seq_len and the output dim is 128 , whitch is totally different from the core idea of the paper . I am a new learner in PassGAN , I wonder if there is some different ideas or you have taken account of other conditions in your source code?

Looking forward to your reply

How to continue train the model?

Hi, Rachel!
Please tell me, how I can continue training the model from the checkpoint, when I have stopped the training process?

Noob needs help :(

Hi. I'd like to test your software, however I am not understanding the instructions too well. Is there any chance of making the Read Me clearer for noobs like myself? I would really appreciate that very much :)

Multiple errors with clean install from requirements

Hey Rachel, the work you did here is amazing and I am trying to get the code working but Im getting multiple errors. Do you know if the code is working out of the box? Dont know where to start and if you have time to help me out. To be quick I tried using a conda environment with all the requirements installed (from requirements.txt) and another environment with an upgraded version of the libraries. No one worked after trying multiple versions (on libraries which failed) and tweaking the code avoiding warnings. Any recommendation? I dropped TF for pytorch a while ago and Im a bit rusty to say the least :P. Hope u have a nice day and wish u are able to reply :)

Alex

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.