Skip to content

ivanhe123/Real-Time-Training-Yolov8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real-Time-Training-Yolov8

For this particular example, the code will run the task of detecting a face while training.

First, while it finished detecting a face in one frame, a function will record the frame without annotation and also record the bbox into yolo_txt format: xywh (x=center of x of bbox/width of frame, y=center of y of bbox/hidth of frame, w=width of bbox/width of frame, and h=height of bbox/height of frame).

Note: the width of frame in opencv-python is frame.shape[1], while the height of fram is frame.shape[0].

a variable will change by one after a record has been made, if the variable is bigger than some constant, for example, 300, the function will start a training function.

The training function is a thread that can run parallel with the detection system.

After the training is complete, the model will be automaticly replaced by the newest one.

For more information, you can try reading the comments in one of the two python files. The one with zh is the Chinese version while the file with en is the English version.

The Chinese explaination is written by me, it can be found in this webpage: https://blog.csdn.net/walchina2017/article/details/130334374

NOTE Only main_en.py and main_zh.py is updated.

Releases

No releases published

Packages

No packages published

Languages