{"id":13454789,"url":"https://github.com/gusgad/capsule-GAN","last_synced_at":"2025-03-24T06:31:26.513Z","repository":{"id":122703720,"uuid":"116372054","full_name":"gusgad/capsule-GAN","owner":"gusgad","description":"Code for my Master thesis on \"Capsule Architecture as a Discriminator in Generative Adversarial Networks\".","archived":false,"fork":false,"pushed_at":"2023-06-07T16:31:11.000Z","size":1793,"stargazers_count":127,"open_issues_count":3,"forks_count":39,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-28T21:41:28.423Z","etag":null,"topics":["capsnet","capsule-network","gan","generative-adversarial-network","keras","python"],"latest_commit_sha":null,"homepage":"https://drive.google.com/file/d/15g9VFyGwjPnGcTzjXEDwvGpfNvPuRXqB/view?usp=sharing","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gusgad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-01-05T10:16:18.000Z","updated_at":"2024-09-20T06:19:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"c13aa689-968f-4f99-9b0d-f359b47af30f","html_url":"https://github.com/gusgad/capsule-GAN","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gusgad%2Fcapsule-GAN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gusgad%2Fcapsule-GAN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gusgad%2Fcapsule-GAN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gusgad%2Fcapsule-GAN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gusgad","download_url":"https://codeload.github.com/gusgad/capsule-GAN/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245222557,"owners_count":20580183,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["capsnet","capsule-network","gan","generative-adversarial-network","keras","python"],"created_at":"2024-07-31T08:00:57.960Z","updated_at":"2025-03-24T06:31:25.819Z","avatar_url":"https://github.com/gusgad.png","language":"Jupyter Notebook","funding_links":[],"categories":["Implementations","Dynamic routing implementations"],"sub_categories":["Tensorflow","Keras"],"readme":"# Capsule GAN\n\n[Link to the paper](https://drive.google.com/file/d/15g9VFyGwjPnGcTzjXEDwvGpfNvPuRXqB/view?usp=sharing)\n\nCode for my Master thesis on \"Capsule Layer as a Discriminator in Generative Adversarial Networks\". In order to reproduce results, follow the \"capsule_gan\" Jupyter notebook that contains:\n* Dataset loading and preprocessing\n* Both Discriminator and Generator structures\n* Training, loss functions\n* Image outputs\n* Metrics visualization\n\n***\n\nBut first you may want to install [Miniconda](https://conda.io/miniconda.html) and corresponding dependencies from environment.yml:\n`conda env create -f environment.yml` within the project directory as well as install [required tools for GPU computing](https://www.tensorflow.org/install/install_windows#requirements_to_run_tensorflow_with_gpu_support). If no GPU is going to be used - delete the `tensorflow-gpu` line from environment.yml.\n\n\n### Generated images\n![MNIST_output](/out_metrics/mnist_output_sample.png?raw=true)\n![CIFAR10_output](/out_metrics/cifar10_output_sample.png?raw=true)\n\n[All generated MNIST images over 30k epochs](https://www.amazon.com/clouddrive/share/BKlDzoKMhrFnIQu9LqH7KcrYvP9ZKoZF1oc5wjMPFRc)\n[All generated CIFAR10 images over 30k epochs](https://www.amazon.com/clouddrive/share/V99W1XhuDg0U7ZABNXwtHBVaacMzqdUCKkI6m9Vp4HG)\n\n\n[Generator weights for MNIST](https://www.amazon.com/clouddrive/share/wSRq5KX7IrWKaxvdsyGZubh9WcffzrfEFW89mEgQdLC)\n[Generator weights for CIFAR10](https://www.amazon.com/clouddrive/share/2CKaZZdGlJqyT5WXnYu1Zbka1Vldtr9yCNffYWwz8Wn)\n\nThanks to @eriklindernoren (\u003chttps://github.com/eriklindernoren/Keras-GAN\u003e) who I borrowed the Keras implementation of DCGAN from and @XifengGuo (\u003chttps://github.com/XifengGuo/CapsNet-Keras\u003e) who I took the squashing function from.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgusgad%2Fcapsule-GAN","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgusgad%2Fcapsule-GAN","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgusgad%2Fcapsule-GAN/lists"}