{ "info": { "author": "Unit8", "author_email": "julien@unit8.co", "bugtrack_url": null, "classifiers": [], "description": "# VeGANs\n\nA library providing various existing GANs in PyTorch.\n\nThis library targets mainly GAN users, who want to use existing GAN training techniques with their own generators/discriminators.\nHowever researchers may also find the GAN base class useful for quicker implementation of new GAN training techniques.\n\nThe focus is on simplicity and providing reasonable defaults.\n\n## How to install\n`pip install vegans`\n\n## How to use\nThe basic idea is that the user provides discriminator and generator networks, and the library takes care of training them in a selected GAN setting:\n```\nfrom vegans import WGAN\nfrom vegans.utils import plot_losses, plot_image_samples\n\n# Create your critic and generator\nnetD = Discriminator().to(device)\nnetG = Generator().to(device)\n\n# Build a Wasserstein GAN\ngan = WGAN(netG, netD, dataloader, ngpu=1, nr_epochs=20)\n\n# train it\ngan.train()\n\n# vizualise results\nimg_list, D_losses, G_losses = gan.get_training_results()\nplot_losses(G_losses, D_losses)\nplot_image_samples(img_list, 50)\n```\n\nCurrently the best way to learn more about how to use VeGANs is to have a look at the example [notebooks](https://github.com/unit8co/vegans).\n\n## Contribute\nPRs and suggestions are welcome.\n\n## Credits\nSome of the code has been inspired by some existing GAN implementations:\n* https://github.com/eriklindernoren/PyTorch-GAN\n* https://github.com/martinarjovsky/WassersteinGAN\n* https://pytorch.org/tutorials/beginner/dcgan_faces_tutorial.html\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/unit8co/vegans/", "keywords": "gan gans pytorch generative adversarial networks", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "vegans", "package_url": "https://pypi.org/project/vegans/", "platform": "", "project_url": "https://pypi.org/project/vegans/", "project_urls": { "Homepage": "https://github.com/unit8co/vegans/" }, "release_url": "https://pypi.org/project/vegans/0.1.0/", "requires_dist": [ "numpy (>=1.15.4)", "matplotlib (>=3.0.2)", "torch (>=1.0.0)", "torchvision (>=0.2.1)" ], "requires_python": "", "summary": "A library to easily train various existing GANs in PyTorch.", "version": "0.1.0" }, "last_serial": 4756696, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "2f83c52d6a083adb03713fc846b9c4a8", "sha256": "af9f76ec4cf8763aa437f21437fb280deb00c0abee24b60c469820b31f6e7001" }, "downloads": -1, "filename": "vegans-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "2f83c52d6a083adb03713fc846b9c4a8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9903, "upload_time": "2019-01-29T21:07:31", "url": "https://files.pythonhosted.org/packages/cf/05/1ba6c7edf08ef6a85db5c504eef95382fdfc134914c8094602116b941053/vegans-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e7c534ddcc179405b5fdc2269236d740", "sha256": "ae45ccc8492b04e91a1b6ef344e5383beb127fe0158862f3714d938cecd4fa63" }, "downloads": -1, "filename": "vegans-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e7c534ddcc179405b5fdc2269236d740", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6852, "upload_time": "2019-01-29T21:07:33", "url": "https://files.pythonhosted.org/packages/7c/07/10371d0daf49db6604235f307731998e4a02dd05d643ec2a52bddebca8ee/vegans-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2f83c52d6a083adb03713fc846b9c4a8", "sha256": "af9f76ec4cf8763aa437f21437fb280deb00c0abee24b60c469820b31f6e7001" }, "downloads": -1, "filename": "vegans-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "2f83c52d6a083adb03713fc846b9c4a8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9903, "upload_time": "2019-01-29T21:07:31", "url": "https://files.pythonhosted.org/packages/cf/05/1ba6c7edf08ef6a85db5c504eef95382fdfc134914c8094602116b941053/vegans-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e7c534ddcc179405b5fdc2269236d740", "sha256": "ae45ccc8492b04e91a1b6ef344e5383beb127fe0158862f3714d938cecd4fa63" }, "downloads": -1, "filename": "vegans-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e7c534ddcc179405b5fdc2269236d740", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6852, "upload_time": "2019-01-29T21:07:33", "url": "https://files.pythonhosted.org/packages/7c/07/10371d0daf49db6604235f307731998e4a02dd05d643ec2a52bddebca8ee/vegans-0.1.0.tar.gz" } ] }