{"id":19195102,"url":"https://github.com/ksachdeva/face-embeddings-generator","last_synced_at":"2025-07-19T04:02:50.325Z","repository":{"id":136497606,"uuid":"140202963","full_name":"ksachdeva/face-embeddings-generator","owner":"ksachdeva","description":"A simple tool to generate face embeddings using dlib and/or facenet networks","archived":false,"fork":false,"pushed_at":"2018-07-25T14:13:16.000Z","size":26954,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-08T23:02:40.053Z","etag":null,"topics":["computer-vision","descriptors","dlib","embeddings","face-detection","face-recognition","neural-network"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ksachdeva.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-07-08T21:11:28.000Z","updated_at":"2024-07-18T06:50:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"8b5eed6a-8704-479c-aa2e-97d251baac25","html_url":"https://github.com/ksachdeva/face-embeddings-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ksachdeva/face-embeddings-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksachdeva%2Fface-embeddings-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksachdeva%2Fface-embeddings-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksachdeva%2Fface-embeddings-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksachdeva%2Fface-embeddings-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ksachdeva","download_url":"https://codeload.github.com/ksachdeva/face-embeddings-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksachdeva%2Fface-embeddings-generator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265886820,"owners_count":23844289,"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","descriptors","dlib","embeddings","face-detection","face-recognition","neural-network"],"created_at":"2024-11-09T12:08:30.894Z","updated_at":"2025-07-19T04:02:50.314Z","avatar_url":"https://github.com/ksachdeva.png","language":"Python","readme":"# Face embeddings generator\r\n\r\nThis is a set of scripts to generate a json file containing the embeddings (descriptors) using various neural networks.\r\n\r\n## Setup / Install instructions\r\n\r\n```bash\r\n# create a python virtual environment\r\nvirtualenv -p python3 .env3\r\n# activate the environment\r\nsource .env3/bin/activate\r\n```\r\n\r\n```bash\r\n# install the required libraries\r\npip install -r requirements.txt\r\n```\r\n\r\n## Download LFW\r\n\r\nYou can download Labeled Faces in the Wild (LFW) database from here -\r\n[http://vis-www.cs.umass.edu/lfw/](http://vis-www.cs.umass.edu/lfw/)\r\n\r\nTo use the FaceNet model for embedding generation, download the model here - \r\n[https://drive.google.com/open?id=1EXPBSXwTaqrSC0OhUdXNmKSh9qJUQ55-](https://drive.google.com/open?id=1EXPBSXwTaqrSC0OhUdXNmKSh9qJUQ55-)\r\n\r\n## Run it\r\n\r\nYou can see various options by issuing the following command\r\n\r\n```bash\r\npython main.py --help\r\n```\r\n\r\nYou will see that there are options to specify various paths (lfw-dir, models-dir and out-dir) as well as\r\noptions related to number of classes to process etc\r\n\r\nHere is an example command -\r\n\r\n```bash\r\n# This command will generate the embeddings for 20 classes where every class in LFW\r\n# has *atleast* 10 images\r\npython main.py dlib --lfw-dir \u003cpath_to_lfw\u003e/lfw --models-dir ./models --max-num-classes 20 --min-images-per-class 10 --out-dir \u003cpath_to_dir_where_you_want_the_output_file\u003e\r\n```\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksachdeva%2Fface-embeddings-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fksachdeva%2Fface-embeddings-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksachdeva%2Fface-embeddings-generator/lists"}