Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P PyTorch-GAN
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 102
    • Issues 102
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 24
    • Merge requests 24
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Erik Linder-Norén
  • PyTorch-GAN
  • Merge requests
  • !106

Gpu selection + Tensorboard + Faster MNIST

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Pierre Bernard requested to merge github/fork/pierrebernard7/master into master May 04, 2020
  • Overview 0
  • Commits 9
  • Pipelines 1
  • Changes 5

Hello there,

First of all thanks for your amazing work on gans. you made them really easy to understand for newbies.

I added a few things to gan.py and cgan.py (which are the only ones I've used so far) :

  • allow to select which gpu to use with a command line argument "--gpu" 0, 1 or 2 etc.
  • tensorboard visualisation of G and D losses
  • improved version of the MNIST dataset class which I found here : https://gist.github.com/y0ast/f69966e308e549f013a92dc66debeeb 4. It bypasses the image resizing which converts the image to PIL object and is slow.. It's only enabled when setting im_size 28 then (original MNIST size). I've seen great improvements (x2 speed)

If you want I can also make those changes to the other gans

Cheers.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/pierrebernard7/master