当前位置:网站首页>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
边栏推荐
- Hands on deep learning pytorch version exercise solution -- implementation of 3-2 linear regression from scratch
- 20220604 Mathematics: square root of X
- CV learning notes - Stereo Vision (point cloud model, spin image, 3D reconstruction)
- Hands on deep learning pytorch version exercise solution - 2.4 calculus
- Deep learning by Pytorch
- Opencv notes 17 template matching
- What did I read in order to understand the to do list
- MySQL root user needs sudo login
- Dictionary tree prefix tree trie
- Leetcode - 460 LFU cache (Design - hash table + bidirectional linked hash table + balanced binary tree (TreeSet))*
猜你喜欢
CV learning notes - clustering
LeetCode - 460 LFU 缓存(设计 - 哈希表+双向链表 哈希表+平衡二叉树(TreeSet))*
[LZY learning notes dive into deep learning] 3.1-3.3 principle and implementation of linear regression
LeetCode - 706 设计哈希映射(设计) *
Leetcode - 460 LFU cache (Design - hash table + bidirectional linked hash table + balanced binary tree (TreeSet))*
Leetcode - 5 longest palindrome substring
波士顿房价预测(TensorFlow2.9实践)
Vgg16 migration learning source code
CV learning notes - scale invariant feature transformation (SIFT)
2312. Selling wood blocks | things about the interviewer and crazy Zhang San (leetcode, with mind map + all solutions)
随机推荐
Opencv Harris corner detection
Leetcode - 5 longest palindrome substring
Hands on deep learning pytorch version exercise answer - 2.2 preliminary knowledge / data preprocessing
Octave instructions
Tensorflow2.0 save model
LeetCode - 508. Sum of subtree elements with the most occurrences (traversal of binary tree)
Leetcode-112:路径总和
Leetcode - 1670 design front, middle and rear queues (Design - two double ended queues)
Connect Alibaba cloud servers in the form of key pairs
20220602数学:Excel表列序号
CV learning notes - camera model (Euclidean transformation and affine transformation)
LeetCode - 900. RLE 迭代器
About windows and layout
Leetcode - 1670 conception de la file d'attente avant, moyenne et arrière (conception - deux files d'attente à double extrémité)
[combinatorics] combinatorial existence theorem (three combinatorial existence theorems | finite poset decomposition theorem | Ramsey theorem | existence theorem of different representative systems |
Leetcode - 705 design hash set (Design)
Hands on deep learning pytorch version exercise solution - 2.6 probability
重写波士顿房价预测任务(使用飞桨paddlepaddle)
Anaconda安装包 报错packagesNotFoundError: The following packages are not available from current channels:
20220608其他:逆波兰表达式求值