{"id":15621857,"url":"https://github.com/jacobgil/keras-dcgan","last_synced_at":"2025-04-12T18:49:34.641Z","repository":{"id":50345997,"uuid":"53139743","full_name":"jacobgil/keras-dcgan","owner":"jacobgil","description":"Keras implementation of Deep Convolutional Generative Adversarial Networks ","archived":false,"fork":false,"pushed_at":"2017-07-21T10:12:54.000Z","size":852,"stargazers_count":977,"open_issues_count":24,"forks_count":413,"subscribers_count":42,"default_branch":"master","last_synced_at":"2025-04-03T21:13:43.851Z","etag":null,"topics":["artificial-images","dcgan","deep-learning","gan","keras","keras-dcgan"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jacobgil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-04T14:12:02.000Z","updated_at":"2025-03-30T15:40:32.000Z","dependencies_parsed_at":"2022-09-16T03:40:44.068Z","dependency_job_id":null,"html_url":"https://github.com/jacobgil/keras-dcgan","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/jacobgil%2Fkeras-dcgan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobgil%2Fkeras-dcgan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobgil%2Fkeras-dcgan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobgil%2Fkeras-dcgan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacobgil","download_url":"https://codeload.github.com/jacobgil/keras-dcgan/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248618218,"owners_count":21134199,"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":["artificial-images","dcgan","deep-learning","gan","keras","keras-dcgan"],"created_at":"2024-10-03T09:52:10.231Z","updated_at":"2025-04-12T18:49:34.614Z","avatar_url":"https://github.com/jacobgil.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## KERAS-DCGAN ##\r\rImplementation of http://arxiv.org/abs/1511.06434 with the (awesome) [keras](https://github.com/fchollet/keras) library, for generating artificial images with deep learning.\r\r\r\rThis trains two adversarial deep learning models on real images, in order to produce artificial images that look real.\r\r\r\rThe generator model tries to produce images that look real and get a high score from the discriminator.\r\r\r\rThe discriminator model tries to tell apart between real images and artificial images from the generator.\r\r\r---\r\rThis assumes theano ordering.\rYou can still use this with tensorflow, by setting \"image_dim_ordering\": \"th\" in ~/.keras/keras.json (although this will be slower).\r\r---\r\r## Usage\r\r\r**Training:**\r\r `python dcgan.py --mode train --batch_size \u003cbatch_size\u003e`\r\r\r\r  python dcgan.py --mode train --path ~/images --batch_size 128\r\r\r\r**Image generation:**\r\r`python dcgan.py --mode generate --batch_size \u003cbatch_size\u003e`\r\r\r\r`python dcgan.py --mode generate --batch_size \u003cbatch_size\u003e --nice` : top 5% images according to discriminator\r\r\r\rpython dcgan.py --mode generate --batch_size 128\r\r\r---\r\r\r## Result\r\r\r\r**generated images :** \r\r\r\r![generated_image.png](./assets/generated_image.png)\r\r\r\r\r\r![nice_generated_image.png](./assets/nice_generated_image.png)\r\r\r\r\r\r**train process :**\r\r\r\r![training_process.gif](./assets/training_process.gif)\r\r\r\r\r\r---\r","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacobgil%2Fkeras-dcgan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacobgil%2Fkeras-dcgan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacobgil%2Fkeras-dcgan/lists"}