[LEADERG AI ZOO] Jupyter-Image-Object-Detection-YOLOv4-CPP

Language:

繁體中文

 

 

 

[Introduction]

 

The YOLOv4 solution can be applied to factory defect detection, medical image analysis, biological image analysis, industrial safety image analysis, mask image analysis, etc.

 

 

[Instruction]

 

The main process is:

Annotate images -> Generate files needed for training -> Training -> Inference

 

1. 1_annotation_pascal_voc_xml.ipynb

Open the webpage for image annotation.

 

parameter:

--port 8801 is the port used by the webpage. If the port is occupied by the user, please change another port value by yourself.

 

2. 2_convert_yolo_format.ipynb

Convert the voc xml tag file to the yolo format. Before running, please confirm label.names under the label_file path in #parameters and whether the content filled in the category is correct.

supplement:

The content of label.names is the category name without background.

 

3. 3_prepare_train_txt.ipynb

Generate training image path files for training.

 

4. 4_prepare_val_txt.ipynb

Generate verification image path files for training.

 

5. 5_prepare_config_file.ipynb

Generate training files.

If the number of categories is not 4, please be sure to modify the #parameters classes. If there are 5 categories, fill in 5 (not counting background), and so on.

 

6. 6_train_GPU.ipynb or 6_train_CPU.ipynb

Use GPU or CPU for training.

Before training, please make sure that the yolov4.cfg settings are correct. See the yolov4.cfg setting at the end for details.

 

7. 7_inference_GPU.ipynb or 7_inference_CPU.ipynb

Use GPU or CPU to infer a single image.

 

YOLOv4.png

 

8. 8_inference_webcam_GPU.ipynb or 8_inference_webcam_CPU.ipynb

Use GPU or CPU to infer webcam images.

 

9. 9_inference_folder_1_GPU.ipynb or 9_inference_folder_1_CPU.ipynb

Use GPU or CPU to infer the images in the folder.

 

10. 10_inference_api_GPU.ipynb or 10_inference_api_CPU.ipynb

Use the web page to select the image to be inferred, and choose whether to run the GPU or CPU version.

If the port value is not changed, you can run 11_inference_api_browser.ipynb to open the web page.

 

11.  12_inference_folder_demo_GPU.ipynb or 12_inference_folder_demo_CPU.ipynb

Cycle inferences on the data/plate/test folder images.

 

Other functions:

 

99_calculate_anchors.ipynb

Calculate anchor points.

 

99_YOLOv4_auto_labeling_GPU.ipynb

Automatically annotate test images.

 

yolov4.cfg settings:

If you have to modify the number of categories, please modify the classes and filters in the three positions in yolov4.cfg.

 

YOLOv4 APP modify YOLOv4 cfg-1.png

YOLOv4 APP modify YOLOv4 cfg-2.png

YOLOv4 APP modify YOLOv4 cfg-3.png

How to Buy

Welcome to contact us. We will help you buy right products.
Email: leaderg@leaderg.com


Recommended Article

1.
LeaderG App4AI (App for AI, AI Application Software, No Coding, Windows User Interface, AI Model Zoo, Deep Learning, Machine Learning)

2.
LeaderG AI Zoo (Code for AI, Code4AI, AI Algorithm Software, Less Coding, Save 90% of Development Time, Jupyter Lab UI, AI Model Zoo, Machine Learning, Big Data)

3.
LeaderG AI Computer (Deep Learning, PC, workstation, server, NVIDIA GPU, TESLA A100, RTX-3090-24G, Intel VPU, GPU Server)

4.
LeaderG AI Education Solution

Thanks for our customers

Taiwan University, Tsing Hua University, Yang Ming Chiao Tung University, Cheng Kung University, Taipei Medical University, Taipei University of Nursing and Health Sciences, National Chung Hsing University, Chi Nan University, Ilan University, United University, Defence University, Military Academy, Naval Academy, Feng Chia University, Chang Gung University, I-Shou University, Shih Chien University, Taiwan University of Science and Technology, Taichung University of Science and Technology, Yunlin University of Science and Technology, Chin-Yi University of Science, Formosa University, Pintung University of Science and Technology, Kaohsiung University of Science and Technology, Chaoyang University of Technology, Ming Chi University of Technology, Southern Taiwan University of Science and Technology, China University of Technology, Gushan Senior High School, Taipei Veterans General Hospital, Chang Gung Medical Foundation, Tzu Chi Medical Foundation, E-Da Hospital, Industry Technology Research Institute, Institute for Information Industry, Chung-Shan Institute of Science and Technology, Armaments Bureau, Ministry of Justice Investigation Bureau, Institute of Nuclear Energy Research, Endemic Species Research Institute, Institute of Labor, Occupational Safety And Health, Metal Industries Research & Development Centre, Taiwan Instrument Research Institute, Automotive Research & Testing Center, Taiwan Water Corporation, Taiwan Semiconductor Manufacturing Co., Ltd., United Microelectronics Corp., Nanya Technology, Winbond Electronics Corp., Xintec Inc., Arima Lasers Corporation, AU Optronics Corporation, Innolux Corporation, HannStar Display Corporation, Formosa Plastics Group., Formosa Technologies Corporation, Nan Ya Plastics Corp., Formosa Chemicals & Fibre Corporation, Chinese Petroleum Corporation, Logitech, ELAN Microelectronics Corp., Lextar Electronics Corporation, Darfon Electronics Corp., WPG Holdings, Mirle Automation Corporation, Symtek Automation Asia Co., Ltd, ChipMOS Technologies Inc., Dynapack International Technology Corporation, Primax Electronics Ltd., Feng Hsin Steel, China Ecotek, Grade Upon Technology Corp., AAEON Technology Inc., Stark Technology, Inc., Horng Terng Automation Co., Ltd., Zhen Ding Technology Holding Ltd, Boardtek Electronics Corporation, MiTAC International Corporation, Allion Labs, Inc., Sound Land Corp., Hong Hu Tech, etc.