{"id":14959119,"url":"https://github.com/jsflo/emotionrectraining","last_synced_at":"2025-10-23T21:40:22.072Z","repository":{"id":187794762,"uuid":"134173645","full_name":"JsFlo/EmotionRecTraining","owner":"JsFlo","description":"Python script using Keras + TensorFlow to train a custom machine learning model to recognize faces using a dataset with human faces and labeled with emotions.","archived":false,"fork":false,"pushed_at":"2018-09-03T16:52:30.000Z","size":2317,"stargazers_count":33,"open_issues_count":2,"forks_count":19,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-31T03:12:21.716Z","etag":null,"topics":["keras","tensorflow","tensorflow-examples","tensorflow-serving"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/JsFlo.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,"governance":null}},"created_at":"2018-05-20T17:55:17.000Z","updated_at":"2023-06-02T00:58:28.000Z","dependencies_parsed_at":"2023-08-12T06:52:18.717Z","dependency_job_id":null,"html_url":"https://github.com/JsFlo/EmotionRecTraining","commit_stats":null,"previous_names":["jsflo/emotionrectraining"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JsFlo%2FEmotionRecTraining","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JsFlo%2FEmotionRecTraining/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JsFlo%2FEmotionRecTraining/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JsFlo%2FEmotionRecTraining/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JsFlo","download_url":"https://codeload.github.com/JsFlo/EmotionRecTraining/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237999679,"owners_count":19399920,"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":["keras","tensorflow","tensorflow-examples","tensorflow-serving"],"created_at":"2024-09-24T13:18:52.577Z","updated_at":"2025-10-23T21:40:17.036Z","avatar_url":"https://github.com/JsFlo.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EmotionRecTraining\n\nPython script using Keras + TensorFlow to train a custom machine learning model\nto recognize faces using a dataset with human faces and labeled with emotions.\n\nI wrote an article explaining this script and model architecture and that can be\nfound here: https://medium.com/@jsflo.dev/training-a-tensorflow-model-to-recognize-emotions-a20c3bcd6468\n\n## Training\nScript: emotionRecTrain.py\n\nRequired args:\n  * `csv_file` - path to the fer2013.csv file\n  * `export_path` - path to save the trained model artifacts\n\nOptional args:\n  * `batch_size` - batch size during training\n  * `n_epochs` - number of training epochs\n  * `debug` - Will override script arguments for batch_size and n_epocs to 10 and 1\n\nRunning\n```\n# required\npython3 emotionRecTrain.py --csv_file=data/fer2013.csv --export_path=model_out/\n\npython3 emotionRecTrain.py --csv_file=data/fer2013.csv --export_path=model_out/ --batch_size=50\npython3 emotionRecTrain.py --csv_file=data/fer2013.csv --export_path=model_out/ --n_epochs=5000\npython3 emotionRecTrain.py --csv_file=data/fer2013.csv --export_path=model_out/ --debug\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsflo%2Femotionrectraining","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsflo%2Femotionrectraining","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsflo%2Femotionrectraining/lists"}