{"id":13632916,"url":"https://github.com/zllrunning/face-makeup.PyTorch","last_synced_at":"2025-04-18T10:33:37.814Z","repository":{"id":37405567,"uuid":"186823107","full_name":"zllrunning/face-makeup.PyTorch","owner":"zllrunning","description":"Lip and hair color editor using face parsing maps.","archived":false,"fork":false,"pushed_at":"2021-08-04T02:23:48.000Z","size":52036,"stargazers_count":500,"open_issues_count":10,"forks_count":149,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-11-08T10:14:11.717Z","etag":null,"topics":["face-parsing","lipstick","makeup","semantic-segmentation"],"latest_commit_sha":null,"homepage":null,"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}},"created_at":"2019-05-15T12:36:13.000Z","updated_at":"2024-10-26T03:32:40.000Z","dependencies_parsed_at":"2022-07-31T14:39:04.779Z","dependency_job_id":null,"html_url":"https://github.com/zllrunning/face-makeup.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-makeup.PyTorch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zllrunning%2Fface-makeup.PyTorch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zllrunning%2Fface-makeup.PyTorch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zllrunning%2Fface-makeup.PyTorch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zllrunning","download_url":"https://codeload.github.com/zllrunning/face-makeup.PyTorch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223779348,"owners_count":17201161,"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":["face-parsing","lipstick","makeup","semantic-segmentation"],"created_at":"2024-08-01T23:00:15.884Z","updated_at":"2024-11-09T02:30:46.033Z","avatar_url":"https://github.com/zllrunning.png","language":"Python","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# face-makeup.PyTorch\nLip and hair color editor using face parsing maps.\n\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 2: Color --\u003e\n\u003ctr\u003e\n\u003ctd \u003eColor\u003c/td\u003e\n\u003ctd\u003e\u003cimg src=\"makeup/116_0.png\" height=\"256\" width=\"256\" alt=\"Color\"\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cimg src=\"makeup/116_6.png\" height=\"256\" width=\"256\" alt=\"Color\"\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!-- Line 4: Color --\u003e\n\u003ctr\u003e\n\u003ctd\u003eColor\u003c/td\u003e\n\u003ctd\u003e\u003cimg src=\"makeup/116_2.png\" height=\"256\" width=\"256\" alt=\"Color\"\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cimg src=\"makeup/116_4.png\" height=\"256\" width=\"256\" alt=\"Color\"\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\n\u003c/table\u003e\n\n### Using PyTorch 1.0 and python 3.x\n\n## Demo\nChange hair and lip color:\n```Shell\npython makeup.py --img-path imgs/116.jpg\n```\n### Try to use other colors:\nChange the color list in **makeup.py**(line 83)\n```\ncolors = [[230, 50, 20], [20, 70, 180], [20, 70, 180]]\n```\n### Train face parsing model (optional)\nFollow this repo [zllrunning/face-parsing.PyTorch](https://github.com/zllrunning/face-parsing.PyTorch)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzllrunning%2Fface-makeup.PyTorch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzllrunning%2Fface-makeup.PyTorch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzllrunning%2Fface-makeup.PyTorch/lists"}