{"id":16271696,"url":"https://github.com/jianzhnie/dsfd_pytorch","last_synced_at":"2025-09-06T13:32:17.478Z","repository":{"id":103457730,"uuid":"222695550","full_name":"jianzhnie/DSFD_pytorch","owner":"jianzhnie","description":"pytorch 实现的DSFD， 更高效更简洁","archived":false,"fork":false,"pushed_at":"2019-11-19T14:48:03.000Z","size":77060,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-29T13:44:56.398Z","etag":null,"topics":["dsfd","facedetection","resnet","vgg16"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/jianzhnie.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-19T12:52:20.000Z","updated_at":"2021-11-14T09:12:10.000Z","dependencies_parsed_at":"2024-01-21T20:16:58.907Z","dependency_job_id":null,"html_url":"https://github.com/jianzhnie/DSFD_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/jianzhnie%2FDSFD_pytorch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jianzhnie%2FDSFD_pytorch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jianzhnie%2FDSFD_pytorch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jianzhnie%2FDSFD_pytorch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jianzhnie","download_url":"https://codeload.github.com/jianzhnie/DSFD_pytorch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232126164,"owners_count":18476190,"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":["dsfd","facedetection","resnet","vgg16"],"created_at":"2024-10-10T18:14:28.223Z","updated_at":"2025-01-01T20:57:30.314Z","avatar_url":"https://github.com/jianzhnie.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## DSFD: Dual Shot Face Detector ##\r\n[A PyTorch Implementation of Dual Shot Face Detector](https://arxiv.org/abs/1810.10220?utm_source=feedburner\u0026utm_medium=feed\u0026utm_campaign=Feed%3A+arxiv%2FQSXk+%28ExcitingAds%21+cs+updates+on+arXiv.org%29)\r\n\r\n### Description\r\nI use basenet [vgg](https://pan.baidu.com/s/1Q-YqoxJyqvln6KTcIck1tQ) to train DSFD,the model can be downloaded in [DSFD](https://pan.baidu.com/s/17cpDHEwYVxWmOIPqUy5zCQ).the AP in WIDER FACE as following:  \r\n\r\n| Easy MAP | Medium MAP\t|  hard MAP |\r\n| ---------|------------| --------- |\r\n|\t0.946  |    0.937   |  0.880    | \r\n \r\nthe AP in AFW,PASCAL,FDDB as following:\r\n\r\n| \tAFW     |   PASCAL\t|   FDDB   |\r\n| --------- |-----------| ---------|\r\n|\t99.89   |    99.11  |  0.983   |\r\n \r\nI'm using resnet50/resnet101 to train DSFD,the result will be published later on \r\n\r\n### Requirement\r\n* pytorch 1.3 \r\n* opencv \r\n* numpy \r\n* easydict\r\n\r\n### Prepare data \r\n1. download WIDER face dataset\r\n2. modify data/config.py \r\n3. ``` python prepare_wider_data.py```\r\n\r\n\r\n### Train \r\n``` \r\npython main.py --batch_size 4 \r\n\t\t--model vgg\\resnet50\\resnet101 \r\n\t\t--lr 5e-4\r\n``` \r\n\r\n### Evalution\r\naccording to yourself dataset path,modify data/config.py \r\n1. Evaluate on AFW.\r\n```\r\npython tools/afw_test.py\r\n```\r\n2. Evaluate on FDDB \r\n```\r\npython tools/fddb_test.py\r\n```\r\n3. Evaluate on PASCAL  face \r\n``` \r\npython tools/pascal_test.py\r\n```\r\n4. test on WIDER FACE \r\n```\r\npython tools/wider_test.py\r\n```\r\n### Demo \r\nyou can test yourself image\r\n```\r\npython demo.py\r\n```\r\n\r\n### Result\r\n1. demo\r\n\u003cdiv align=\"center\"\u003e\r\n\u003cimg src=\"https://github.com/jianzhnie/DSFD_pytorch/blob/master/img/0_Parade_marchingband_1_488.jpg\" height=\"300px\" alt=\"demo\" \u003e\r\n\u003cimg src=\"https://github.com/jianzhnie/DSFD_pytorch/blob/master/img/0_Parade_marchingband_1_20.jpg\" height=\"300px\" alt=\"demo\" \u003e\r\n\u003c/div\u003e\r\n\r\n\r\n### References\r\n* [Dual Shot Face Detector](https://arxiv.org/abs/1810.10220?utm_source=feedburner\u0026utm_medium=feed\u0026utm_campaign=Feed%3A+arxiv%2FQSXk+%28ExcitingAds%21+cs+updates+on+arXiv.org%29)\r\n* [ssd.pytorch](https://github.com/amdegroot/ssd.pytorch)\r\n* [S3FD_pytorch](https://github.com/jianzhnie/S3FD_pytorch)\r\n* [FaceDetection-DSFD](https://github.com/TencentYoutuResearch/FaceDetection-DSFD)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjianzhnie%2Fdsfd_pytorch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjianzhnie%2Fdsfd_pytorch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjianzhnie%2Fdsfd_pytorch/lists"}