{"id":15026401,"url":"https://github.com/zllrunning/face-parsing.pytorch","last_synced_at":"2025-05-15T13:06:26.203Z","repository":{"id":38421268,"uuid":"181997302","full_name":"zllrunning/face-parsing.PyTorch","owner":"zllrunning","description":"Using modified BiSeNet for face parsing in PyTorch","archived":false,"fork":false,"pushed_at":"2023-05-21T14:00:45.000Z","size":3139,"stargazers_count":2450,"open_issues_count":43,"forks_count":473,"subscribers_count":34,"default_branch":"master","last_synced_at":"2025-05-15T13:06:20.257Z","etag":null,"topics":["bisenet","celeba-hq-dataset","face-parsing","face-segmentation","pytorch","semantic-segmentation"],"latest_commit_sha":null,"homepage":"","language":"Python","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/zllrunning.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}},"created_at":"2019-04-18T01:51:21.000Z","updated_at":"2025-05-15T07:33:48.000Z","dependencies_parsed_at":"2024-09-20T20:31:11.994Z","dependency_job_id":"e4e9271d-42f4-4b6c-bc19-c7d3a1ec9406","html_url":"https://github.com/zllrunning/face-parsing.PyTorch","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/zllrunning%2Fface-parsing.PyTorch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zllrunning%2Fface-parsing.PyTorch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zllrunning%2Fface-parsing.PyTorch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zllrunning%2Fface-parsing.PyTorch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zllrunning","download_url":"https://codeload.github.com/zllrunning/face-parsing.PyTorch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254346624,"owners_count":22055808,"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":["bisenet","celeba-hq-dataset","face-parsing","face-segmentation","pytorch","semantic-segmentation"],"created_at":"2024-09-24T20:04:24.766Z","updated_at":"2025-05-15T13:06:26.180Z","avatar_url":"https://github.com/zllrunning.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# face-parsing.PyTorch\n\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://github.com/zllrunning/face-parsing.PyTorch\"\u003e\n    \u003cimg class=\"page-image\" src=\"https://github.com/zllrunning/face-parsing.PyTorch/blob/master/6.jpg\" \u003e\n\t\u003c/a\u003e\n\u003c/p\u003e\n\n### Contents\n- [Training](#training)\n- [Demo](#Demo)\n- [References](#references)\n\n## Training\n\n1. Prepare training data:\n    -- download [CelebAMask-HQ dataset](https://github.com/switchablenorms/CelebAMask-HQ)\n\n\t--  change file path in the `prepropess_data.py`  and run\n```Shell\npython prepropess_data.py\n```\n\n2. Train the model using CelebAMask-HQ dataset:\nJust run the train script: \n```\n    $ CUDA_VISIBLE_DEVICES=0,1 python -m torch.distributed.launch --nproc_per_node=2 train.py\n```\n\nIf you do not wish to train the model, you can download [our pre-trained model](https://drive.google.com/open?id=154JgKpzCPW82qINcVieuPH3fZ2e0P812) and save it in `res/cp`.\n\n\n## Demo\n1. Evaluate the trained model using:\n```Shell\n# evaluate using GPU\npython test.py\n```\n\n## Face makeup using parsing maps\n[**face-makeup.PyTorch**](https://github.com/zllrunning/face-makeup.PyTorch)\n\u003ctable\u003e\n\n\u003ctr\u003e\n\u003cth\u003e\u0026nbsp;\u003c/th\u003e\n\u003cth\u003eHair\u003c/th\u003e\n\u003cth\u003eLip\u003c/th\u003e\n\u003c/tr\u003e\n\n\u003c!-- Line 1: Original Input --\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cem\u003eOriginal Input\u003c/em\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cimg src=\"makeup/116_ori.png\" height=\"256\" width=\"256\" alt=\"Original Input\"\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cimg src=\"makeup/116_lip_ori.png\" height=\"256\" width=\"256\" alt=\"Original Input\"\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\n\u003c!-- Line 3: Color --\u003e\n\u003ctr\u003e\n\u003ctd\u003eColor\u003c/td\u003e\n\u003ctd\u003e\u003cimg src=\"makeup/116_1.png\" height=\"256\" width=\"256\" alt=\"Color\"\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cimg src=\"makeup/116_3.png\" height=\"256\" width=\"256\" alt=\"Color\"\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\n\u003c/table\u003e\n\n\n## References\n- [BiSeNet](https://github.com/CoinCheung/BiSeNet)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzllrunning%2Fface-parsing.pytorch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzllrunning%2Fface-parsing.pytorch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzllrunning%2Fface-parsing.pytorch/lists"}