Simple Pytorch implementation of Stylegan2 that can be completely trained from the command-line, no coding needed. You will need a machine with a GPU and CUDA installed. You can also specify the location where intermediate results and model checkpoints should be stored. You can increase the network capacity (which defaults to 16) to improve generation results, at the cost of more memory. By default, if the training gets cut off, it will automatically resume from the last checkpointed file. Once you have finished training, you can generate images from your latest checkpoint. If a previous checkpoint contained a better generator, (which often happens as generators start degrading towards the end of training), you can load from a previous checkpoint with another flag. A technique used in both StyleGAN and BigGAN is truncating the latent values so that their values fall close to the mean. The small the truncation value, the better the samples will appear at the cost of sample variety.

Features

  • Multi-GPU training
  • Low amounts of Training Data
  • This framework also allows for you to add an efficient form of self-attention to the designated layers of the discriminator
  • The more GPU memory you have, the bigger and better the image generation will be
  • Nvidia recommended having up to 16GB for training 1024x1024 images
  • Deployment on AWS

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Simple StyleGan2 for Pytorch

Simple StyleGan2 for Pytorch Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Simple StyleGan2 for Pytorch!

Additional Project Details

Operating Systems

Windows

Programming Language

Python

Related Categories

Python Generative Adversarial Networks (GAN), Python Generative AI

Registered

2023-03-21