当前位置:网站首页>Yolov5 creates and trains its own data set to realize mask wearing detection
Yolov5 creates and trains its own data set to realize mask wearing detection
2022-07-03 10:24:00 【Shenzhen University of technology affiliated middle school open】
Yolov5 Create and train your own data sets , Realize mask wearing detection
Be careful
- Need to be ahead of time Anaconda Set up well yolov5 Environment , There is no explanation here .
Data sets
Mask identification data set download
Download this file
After downloading, you can extract . Although mixed together , But that's okay .
Data set preprocessing
Go to Roboflow Create an account
Add workspace
Select public
Create a new project
Fill in the name casually
Upload the data set we downloaded
Don't worry about him
Wait for the upload to finish
End upload
export
Note that export TXT Under the YOLO v5 PyTorch This option , download zip Format .
Get ready to train
These three files are required
train and valid Folders are placed in and yolov5 In the same directory
modify data.yaml
0 Change it to no-mask( Don't wear a mask ),1 Change it to mask( Wear a mask )
hold data.yaml Put it in yolov5 Of data Under the folder
Start training
stay anaconda Execute... In a virtual environment , Notice to change to your corresponding path .
python train.py --data data.yaml
End of training
Can be in yolo Find the model file after training under the path of
Test model file
add --weights Parameters can be detected by selecting the corresponding model file .
python detect.py --weights runs/exp/weights/best.pt
Detection effect
Reference material
https://blog.csdn.net/lynxzong/article/details/86647805
https://blog.csdn.net/sinat_28371057/article/details/120598220
https://github.com/ultralytics/yolov5
https://zhuanlan.zhihu.com/p/269587479
https://github.com/ultralytics/yolov5/wiki/Train-Custom-Data
https://public.roboflow.com/
https://codeantenna.com/a/FtLN7QmRtk
http://www.jishudaxue.com/cblog/python/9489.html
https://github.com/ultralytics/yolov5/issues/5086‘
https://www.jb51.net/article/211043.htm
https://blog.csdn.net/qq_36756866/article/details/109111065
https://blog.csdn.net/HJZ11/article/details/109838775
边栏推荐
- [combinatorics] combinatorial existence theorem (three combinatorial existence theorems | finite poset decomposition theorem | Ramsey theorem | existence theorem of different representative systems |
- Implementation of "quick start electronic" window dragging
- [LZY learning notes -dive into deep learning] math preparation 2.5-2.7
- openCV+dlib实现给蒙娜丽莎换脸
- Inverse code of string (Jilin University postgraduate entrance examination question)
- 20220604 Mathematics: square root of X
- 20220531 Mathematics: Happy numbers
- 3.3 Monte Carlo Methods: case study: Blackjack of Policy Improvement of on- & off-policy Evaluation
- Configure opencv in QT Creator
- Label Semantic Aware Pre-training for Few-shot Text Classification
猜你喜欢
一步教你溯源【钓鱼邮件】的IP地址
LeetCode 面试题 17.20. 连续中值(大顶堆+小顶堆)
Matplotlib drawing
CV learning notes convolutional neural network
Leetcode - 895 maximum frequency stack (Design - hash table + priority queue hash table + stack)*
Label Semantic Aware Pre-training for Few-shot Text Classification
2312. Selling wood blocks | things about the interviewer and crazy Zhang San (leetcode, with mind map + all solutions)
Hands on deep learning pytorch version exercise solution - 2.6 probability
LeetCode - 703 数据流中的第 K 大元素(设计 - 优先队列)
Cases of OpenCV image enhancement
随机推荐
Qcombox style settings
Flutter 退出当前操作二次确认怎么做才更优雅?
Leetcode - 1670 design front, middle and rear queues (Design - two double ended queues)
Configure opencv in QT Creator
[LZY learning notes dive into deep learning] 3.4 3.6 3.7 softmax principle and Implementation
LeetCode - 460 LFU 缓存(设计 - 哈希表+双向链表 哈希表+平衡二叉树(TreeSet))*
20220605 Mathematics: divide two numbers
20220606数学:分数到小数
20220531数学:快乐数
Hands on deep learning pytorch version exercise answer - 2.2 preliminary knowledge / data preprocessing
Hands on deep learning pytorch version exercise solution - 2.5 automatic differentiation
Window maximum and minimum settings
CV learning notes - BP neural network training example (including detailed calculation process and formula derivation)
LeetCode 面试题 17.20. 连续中值(大顶堆+小顶堆)
Standard library header file
Policy Gradient Methods of Deep Reinforcement Learning (Part Two)
[LZY learning notes dive into deep learning] 3.1-3.3 principle and implementation of linear regression
Opencv Harris corner detection
20220610 other: Task Scheduler
CV learning notes - edge extraction