基于PyTorch的口罩检测与分类mask_detection代码详解

上传者: 32998593 | 上传时间: 2021-03-03 17:53:36 | 文件大小: 49.38MB | 文件类型: ZIP
针对口罩检测,进行调研,包括了分类器的设计,人脸检测的设计。 其中主要分为两阶段,先是人脸检测,然后将检测到的人脸,进行二分类,标签为戴口罩,不戴口罩。包括了pytorch的代码,ppt的讲解,技术文档。 人脸识别是MTCNN,然后分类可以自己训练,我采用的是ResNet-18.

文件下载

资源详情

[{"title":"( 98 个子文件 49.38MB ) 基于PyTorch的口罩检测与分类mask_detection代码详解","children":[{"title":"classifier.py <span style='color:#111;'> 6.30KB </span>","children":null,"spread":false},{"title":"original_model","children":[{"title":"rnet_epoch.pt <span style='color:#111;'> 236.80KB </span>","children":null,"spread":false},{"title":"anno_train.txt <span style='color:#111;'> 3.59MB </span>","children":null,"spread":false},{"title":"pnet_epoch.pt <span style='color:#111;'> 28.58KB </span>","children":null,"spread":false},{"title":"onet_epoch.pt <span style='color:#111;'> 878.87KB </span>","children":null,"spread":false}],"spread":true},{"title":"finetuned_model_resnet18.pth <span style='color:#111;'> 42.73MB </span>","children":null,"spread":false},{"title":"mtcnn","children":[{"title":"config.py <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"train_net","children":[{"title":"train_r_net.py <span style='color:#111;'> 2.60KB </span>","children":null,"spread":false},{"title":"train_o_net.py <span style='color:#111;'> 953B </span>","children":null,"spread":false},{"title":"train.py <span style='color:#111;'> 8.69KB </span>","children":null,"spread":false},{"title":"__pycache__","children":[{"title":"train.cpython-35.pyc <span style='color:#111;'> 6.90KB </span>","children":null,"spread":false},{"title":"__init__.cpython-35.pyc <span style='color:#111;'> 165B </span>","children":null,"spread":false}],"spread":true},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"train_p_net.py <span style='color:#111;'> 2.57KB </span>","children":null,"spread":false}],"spread":true},{"title":"__pycache__","children":[{"title":"__init__.cpython-37.pyc <span style='color:#111;'> 176B </span>","children":null,"spread":false},{"title":"__init__.cpython-35.pyc <span style='color:#111;'> 155B </span>","children":null,"spread":false},{"title":"config.cpython-35.pyc <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false}],"spread":true},{"title":"data_preprocess","children":[{"title":"gen_landmark_48.py <span style='color:#111;'> 4.82KB </span>","children":null,"spread":false},{"title":"assemble_onet_imglist.py <span style='color:#111;'> 687B </span>","children":null,"spread":false},{"title":"gen_Rnet_train_data.py <span style='color:#111;'> 7.63KB </span>","children":null,"spread":false},{"title":"gen_Pnet_train_data.py <span style='color:#111;'> 5.41KB </span>","children":null,"spread":false},{"title":"utils.py <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"__pycache__","children":[{"title":"assemble.cpython-35.pyc <span style='color:#111;'> 1.00KB </span>","children":null,"spread":false},{"title":"BBox_utils.cpython-35.pyc <span style='color:#111;'> 5.58KB </span>","children":null,"spread":false},{"title":"landmark_utils.cpython-35.pyc <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false},{"title":"utils.cpython-35.pyc <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false}],"spread":true},{"title":"assemble_pnet_imglist.py <span style='color:#111;'> 689B </span>","children":null,"spread":false},{"title":"assemble.py <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"gen_Onet_train_data.py <span style='color:#111;'> 6.79KB </span>","children":null,"spread":false},{"title":"assemble_rnet_imglist.py <span style='color:#111;'> 689B </span>","children":null,"spread":false}],"spread":true},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"core","children":[{"title":"models.py <span style='color:#111;'> 9.01KB </span>","children":null,"spread":false},{"title":"resnet_inception_v2.py <span style='color:#111;'> 8.67KB </span>","children":null,"spread":false},{"title":"image_tools.py <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"utils.py <span style='color:#111;'> 3.50KB </span>","children":null,"spread":false},{"title":"__pycache__","children":[{"title":"__init__.cpython-37.pyc <span style='color:#111;'> 181B </span>","children":null,"spread":false},{"title":"detect.cpython-35.pyc <span style='color:#111;'> 14.52KB </span>","children":null,"spread":false},{"title":"models.cpython-37.pyc <span style='color:#111;'> 6.98KB </span>","children":null,"spread":false},{"title":"image_tools.cpython-37.pyc <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"models.cpython-35.pyc <span style='color:#111;'> 7.91KB </span>","children":null,"spread":false},{"title":"vision.cpython-35.pyc <span style='color:#111;'> 3.26KB </span>","children":null,"spread":false},{"title":"__init__.cpython-35.pyc <span style='color:#111;'> 160B </span>","children":null,"spread":false},{"title":"utils.cpython-37.pyc <span style='color:#111;'> 2.64KB </span>","children":null,"spread":false},{"title":"detect.cpython-37.pyc <span style='color:#111;'> 12.96KB </span>","children":null,"spread":false},{"title":"imagedb.cpython-35.pyc <span style='color:#111;'> 4.66KB </span>","children":null,"spread":false},{"title":"vision.cpython-37.pyc <span style='color:#111;'> 2.95KB </span>","children":null,"spread":false},{"title":"utils.cpython-35.pyc <span style='color:#111;'> 2.88KB </span>","children":null,"spread":false},{"title":"image_tools.cpython-35.pyc <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"image_reader.cpython-35.pyc <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false}],"spread":false},{"title":"nms.py <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"detect.py <span style='color:#111;'> 24.64KB </span>","children":null,"spread":false},{"title":"imagedb.py <span style='color:#111;'> 5.15KB </span>","children":null,"spread":false},{"title":"vision.py <span style='color:#111;'> 5.05KB </span>","children":null,"spread":false},{"title":"image_reader.py <span style='color:#111;'> 4.13KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"04.jpg <span style='color:#111;'> 21.25KB </span>","children":null,"spread":false},{"title":"leslie.jpg <span style='color:#111;'> 74.32KB </span>","children":null,"spread":false},{"title":"s_l.jpg <span style='color:#111;'> 18.98KB </span>","children":null,"spread":false},{"title":"l_z.png <span style='color:#111;'> 12.70KB </span>","children":null,"spread":false},{"title":".ipynb_checkpoints","children":[{"title":"mask_classifier-checkpoint.ipynb <span style='color:#111;'> 477.28KB </span>","children":null,"spread":false},{"title":"face_detection-checkpoint.ipynb <span style='color:#111;'> 72B </span>","children":null,"spread":false}],"spread":true},{"title":"mask_classifier.ipynb <span style='color:#111;'> 477.28KB </span>","children":null,"spread":false},{"title":"model_store","children":[{"title":"rnet_epoch.pt <span style='color:#111;'> 236.80KB </span>","children":null,"spread":false},{"title":"pnet_epoch.pt <span style='color:#111;'> 28.58KB </span>","children":null,"spread":false},{"title":"onet_epoch.pt <span style='color:#111;'> 878.87KB </span>","children":null,"spread":false},{"title":"tips.txt <span style='color:#111;'> 75B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"r_4.jpg <span style='color:#111;'> 36.36KB </span>","children":null,"spread":false},{"title":"anno_store","children":[{"title":"pos_12.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"neg_24.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"pos_48.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"neg_48.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"landmark_48.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"part_48.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"anno_train.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"imglist_anno_48.txt <span style='color:#111;'> 2.90MB </span>","children":null,"spread":false},{"title":"part_12.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"tool","children":[{"title":"anno_train.txt <span style='color:#111;'> 53.01KB </span>","children":null,"spread":false},{"title":"anno_train_fixed.txt <span style='color:#111;'> 53.92KB </span>","children":null,"spread":false},{"title":"change.py <span style='color:#111;'> 775B </span>","children":null,"spread":false},{"title":"tips.txt <span style='color:#111;'> 243B </span>","children":null,"spread":false},{"title":"format","children":[{"title":"transform.py <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"wider_loader.py <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"imglist_anno_12.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"part_24.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"neg_12.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"tip.txt <span style='color:#111;'> 40B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"imglist_anno_24.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"pos_24.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":false},{"title":"results","children":[{"title":"r_1.jpg <span style='color:#111;'> 52.58KB </span>","children":null,"spread":false},{"title":"r_4.jpg <span style='color:#111;'> 74.63KB </span>","children":null,"spread":false},{"title":"r_3.jpg <span style='color:#111;'> 85.23KB </span>","children":null,"spread":false},{"title":"r_2.jpg <span style='color:#111;'> 78.73KB </span>","children":null,"spread":false}],"spread":true},{"title":"mask_detection讲解文档.zip <span style='color:#111;'> 4.96MB </span>","children":null,"spread":false},{"title":"data","children":[{"title":"data_read.md <span style='color:#111;'> 201B </span>","children":null,"spread":false}],"spread":false},{"title":"mtcnn_test.py <span style='color:#111;'> 727B </span>","children":null,"spread":false},{"title":"result_new.jpg <span style='color:#111;'> 44.60KB </span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明