{"id":20886445,"url":"https://github.com/gsurma/face_generator","last_synced_at":"2025-05-07T16:07:57.394Z","repository":{"id":63692891,"uuid":"170053804","full_name":"gsurma/face_generator","owner":"gsurma","description":"DCGAN face generator 🧑.","archived":false,"fork":false,"pushed_at":"2021-07-09T08:52:29.000Z","size":9783,"stargazers_count":202,"open_issues_count":1,"forks_count":69,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-01-03T07:20:35.297Z","etag":null,"topics":["computer-vision","dcgan","dcgan-tensorflow","deepfake","deepfakes","gan","gan-tensorflow","jupyter-notebook","notebook","python"],"latest_commit_sha":null,"homepage":"https://gsurma.github.io","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/gsurma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"patreon":"gsurma"}},"created_at":"2019-02-11T02:16:12.000Z","updated_at":"2024-12-09T02:45:02.000Z","dependencies_parsed_at":"2022-11-24T02:04:04.811Z","dependency_job_id":null,"html_url":"https://github.com/gsurma/face_generator","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/gsurma%2Fface_generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsurma%2Fface_generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsurma%2Fface_generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsurma%2Fface_generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gsurma","download_url":"https://codeload.github.com/gsurma/face_generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233352251,"owners_count":18663263,"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":["computer-vision","dcgan","dcgan-tensorflow","deepfake","deepfakes","gan","gan-tensorflow","jupyter-notebook","notebook","python"],"created_at":"2024-11-18T08:16:58.228Z","updated_at":"2025-01-10T13:34:28.754Z","avatar_url":"https://github.com/gsurma.png","language":"Jupyter Notebook","funding_links":["https://patreon.com/gsurma"],"categories":[],"sub_categories":[],"readme":"\u003ch3 align=\"center\"\u003e\n  \u003cimg src=\"assets/face_generator_icon_web.png\" width=\"300\"\u003e\n\u003c/h3\u003e\n\n# Face Generator\n\nPython notebook containing TensorFlow DCGAN implementation. It was trained on a [Celebrities](https://www.kaggle.com/greg115/celebrities-100k) dataset.\n\nCheck out corresponding Medium article: [Face Generator - Generating Artificial Faces with Machine Learning 🧑](https://towardsdatascience.com/face-generator-generating-artificial-faces-with-machine-learning-9e8c3d6c1ead).\n\nCheck out corresponding Kaggle kernel: [Face Generator](https://www.kaggle.com/greg115/face-generator-dcgan-celebrities).\n\n\n## DCGAN\nNetwork architecture by [Radford et al., 2015](https://arxiv.org/abs/1511.06434).\n\u003cimg src=\"assets/model.png\"\u003e\n\n## Training\nVisualization of training with the following hyperparameteres.\n\u003cimg src=\"assets/epochs.gif\"\u003e\n\n\tDATASET_SIZE = 100000\n\tIMAGE_SIZE = 128\n\tNOISE_SIZE = 100\n\tLR_D = 0.00004\n\tLR_G = 0.0002\n\tBATCH_SIZE = 64\n\tEPOCHS = 60\n\tBETA1 = 0.5\n\tWEIGHT_INIT_STDDEV = 0.02\n\tEPSILON = 0.00005\n\n\n## Results\n\nGenerated samples after 60 epochs of training.\n\n\u003cimg src=\"assets/final_grid.png\"\u003e\n\n\n## Author\n\n**Greg (Grzegorz) Surma**\n\n[**PORTFOLIO**](https://gsurma.github.io)\n\n[**GITHUB**](https://github.com/gsurma)\n\n[**BLOG**](https://medium.com/@gsurma)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsurma%2Fface_generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgsurma%2Fface_generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsurma%2Fface_generator/lists"}