# yolov7
Implementation of paper - [YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors](https://arxiv.org/abs/2207.02696)
<img src="./figure/performance.png" height="480">
## Performance
MS COCO
| Model | Test Size | AP<sup>test</sup> | AP<sub>50</sub><sup>test</sup> | AP<sub>75</sub><sup>test</sup> | batch 1 fps | batch 32 average time |
| :-- | :-: | :-: | :-: | :-: | :-: | :-: |
| [**YOLOv7**](https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7.pt) | 640 | **51.4%** | **69.7%** | **55.9%** | 161 *fps* | 2.8 *ms* |
| [**YOLOv7-X**](https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7x.pt) | 640 | **53.1%** | **71.2%** | **57.8%** | 114 *fps* | 4.3 *ms* |
| | | | | | | |
| [**YOLOv7-W6**](https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7-w6.pt) | 1280 | **54.9%** | **72.6%** | **60.1%** | 84 *fps* | 7.6 *ms* |
| [**YOLOv7-E6**](https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7-e6.pt) | 1280 | **56.0%** | **73.5%** | **61.2%** | 56 *fps* | 12.3 *ms* |
| [**YOLOv7-D6**](https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7-d6.pt) | 1280 | **56.6%** | **74.0%** | **61.8%** | 44 *fps* | 15.0 *ms* |
| [**YOLOv7-E6E**](https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7-e6e.pt) | 1280 | **56.8%** | **74.4%** | **62.1%** | 36 *fps* | 18.7 *ms* |
## Installation
Docker environment (recommended)
<details><summary> <b>Expand</b> </summary>
```
# create the docker container, you can change the share memory size if you have more.
nvidia-docker run --name yolov7 -it -v your_coco_path/:/coco/ -v your_code_path/:/yolov7 --shm-size=64g nvcr.io/nvidia/pytorch:21.08-py3
# apt install required packages
apt update
apt install -y zip htop screen libgl1-mesa-glx
# pip install required packages
pip install seaborn thop
# go to code folder
cd /yolov7
```
</details>
## Testing
[`yolov7.pt`](https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7.pt) [`yolov7x.pt`](https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7x.pt) [`yolov7-w6.pt`](https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7-w6.pt) [`yolov7-e6.pt`](https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7-e6.pt) [`yolov7-d6.pt`](https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7-d6.pt) [`yolov7-e6e.pt`](https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7-e6e.pt)
```
python test.py --data data/coco.yaml --img 640 --batch 32 --conf 0.001 --iou 0.65 --device 0 --weights yolov7.pt --name yolov7_640_val
```
You will get the results:
```
Average Precision (AP) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.51206
Average Precision (AP) @[ IoU=0.50 | area= all | maxDets=100 ] = 0.69730
Average Precision (AP) @[ IoU=0.75 | area= all | maxDets=100 ] = 0.55521
Average Precision (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.35247
Average Precision (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.55937
Average Precision (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.66693
Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 1 ] = 0.38453
Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 10 ] = 0.63765
Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.68772
Average Recall (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.53766
Average Recall (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.73549
Average Recall (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.83868
```
## Training
The training code and instrument will release soon.
## Citation
```
@article{wang2022yolov7,
title={{YOLOv7}: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors},
author={Wang, Chien-Yao and Bochkovskiy, Alexey and Liao, Hong-Yuan Mark},
journal={arXiv preprint arXiv:2207.02696},
year={2022}
}
```
## Acknowledgements
<details><summary> <b>Expand</b> </summary>
* [https://github.com/AlexeyAB/darknet](https://github.com/AlexeyAB/darknet)
* [https://github.com/WongKinYiu/yolor](https://github.com/WongKinYiu/yolor)
* [https://github.com/WongKinYiu/PyTorch_YOLOv4](https://github.com/WongKinYiu/PyTorch_YOLOv4)
* [https://github.com/WongKinYiu/ScaledYOLOv4](https://github.com/WongKinYiu/ScaledYOLOv4)
* [https://github.com/Megvii-BaseDetection/YOLOX](https://github.com/Megvii-BaseDetection/YOLOX)
* [https://github.com/ultralytics/yolov3](https://github.com/ultralytics/yolov3)
* [https://github.com/ultralytics/yolov5](https://github.com/ultralytics/yolov5)
</details>
没有合适的资源?快使用搜索试试~ 我知道了~
基于yolov7的口罩检测模型
共150个文件
jpg:46个
yaml:26个
py:24个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 37 下载量 43 浏览量
2022-07-14
09:57:13
上传
评论 9
收藏 669.41MB ZIP 举报
温馨提示
1.训练好的yolov7口罩检测模型 2.模型存放在runs文件夹 3.内部有教程 4.精度93%左右 5.有多个训练好的模型可以使用 6.分为3类,戴口罩、未戴口罩和没戴好口罩
资源推荐
资源详情
资源评论
收起资源包目录
基于yolov7的口罩检测模型 (150个子文件)
events.out.tfevents.1657682492.cj-Dell-G15-5510.13620.0 38KB
events.out.tfevents.1657673175.cj-Dell-G15-5510.8965.0 30KB
Dockerfile 821B
.gitignore 47B
yolov7.iml 483B
bus.jpg 476KB
test_batch2_pred.jpg 210KB
test_batch2_labels.jpg 206KB
test_batch1_pred.jpg 206KB
test_batch2_pred.jpg 205KB
test_batch1_labels.jpg 202KB
test_batch2_labels.jpg 202KB
test_batch1_pred.jpg 201KB
test_batch1_pred.jpg 197KB
test_batch2_pred.jpg 197KB
test_batch1_labels.jpg 197KB
test_batch0_pred.jpg 196KB
test_batch2_labels.jpg 194KB
test_batch1_labels.jpg 192KB
test_batch0_pred.jpg 191KB
test_batch0_labels.jpg 191KB
test_batch0_labels.jpg 188KB
test_batch0_pred.jpg 180KB
test_batch0_labels.jpg 178KB
train_batch3.jpg 169KB
train_batch5.jpg 166KB
zidane.jpg 165KB
train_batch0.jpg 162KB
train_batch4.jpg 161KB
train_batch6.jpg 159KB
train_batch1.jpg 156KB
train_batch7.jpg 156KB
train_batch9.jpg 155KB
train_batch8.jpg 148KB
train_batch2.jpg 146KB
image2.jpg 140KB
horses.jpg 130KB
image3.jpg 115KB
image1.jpg 79KB
QR-01016.jpg 41KB
QR-01013.jpg 40KB
QR-01021.jpg 38KB
QR-01008.jpg 37KB
QR-01019.jpg 29KB
QR-01018.jpg 26KB
QR-01010.jpg 23KB
QR-01011.jpg 23KB
QR-01015.jpg 23KB
QR-01009.jpg 21KB
QR-01014.jpg 20KB
QR-01020.jpg 17KB
README.md 5KB
yolov7训练自己的数据集教程.pdf 3.32MB
results.png 234KB
performance.png 165KB
F1_curve.png 157KB
F1_curve.png 155KB
F1_curve.png 152KB
R_curve.png 145KB
R_curve.png 142KB
R_curve.png 137KB
P_curve.png 135KB
P_curve.png 135KB
P_curve.png 131KB
PR_curve.png 126KB
PR_curve.png 124KB
PR_curve.png 117KB
confusion_matrix.png 117KB
confusion_matrix.png 116KB
confusion_matrix.png 115KB
epoch_095.pt 284.63MB
epoch_074.pt 284.63MB
best.pt 71.32MB
last.pt 71.32MB
common.py 82KB
datasets.py 55KB
loss.py 49KB
train.py 36KB
general.py 32KB
yolo.py 25KB
plots.py 18KB
test.py 17KB
wandb_utils.py 16KB
torch_utils.py 15KB
metrics.py 9KB
detect.py 9KB
autoanchor.py 7KB
google_utils.py 5KB
export.py 4KB
experimental.py 4KB
hubconf.py 3KB
activations.py 2KB
resume.py 1KB
log_dataset.py 815B
__init__.py 6B
__init__.py 6B
__init__.py 6B
__init__.py 5B
common.cpython-38.pyc 70KB
datasets.cpython-38.pyc 40KB
共 150 条
- 1
- 2
小俊俊的博客
- 粉丝: 500
- 资源: 35
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 论文(最终)_20240430235101.pdf
- 基于python编写的Keras深度学习框架开发,利用卷积神经网络CNN,快速识别图片并进行分类
- 最全空间计量实证方法(空间杜宾模型和检验以及结果解释文档).txt
- 5uonly.apk
- 蓝桥杯Python组的历年真题
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 前端开发技术实验报告:内含4四实验&实验报告
- Highlight Plus v20.0.1
- 林周瑜-论文.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
- 6
前往页