[LEADERG APP] CSPNet

Language:

繁體中文

 

[Introduction]

 

Use CSPResNeXt50 for image classification. An example is to use steel plate defect classification. You can use this APP to train your images for image classification.

 

 

[Operation steps and instructions]

 

Open the APP, please refer to the LEADERG-APP operating instructions.

APP has four main functions: data preparation, training, inference, and others.

 

APP CSPNet.png  

Data preparation :

 

1. Select the data set for AI learning.

If you want to train your image, please click browse to open the file location. It is recommended to copy a default data folder and change it to your own data name.

Then find the train, val, and test folders, delete the old images in the folders and replace them with images that you need to train, infer, and test.

Note:

1) The file name of the image needs to comply with the requirements: The file name of the image must be prefixed with [category name-], for example: inclusion in inclusion-1.jpg is the category name of the image. 

2) The image is recommended as a square. If it is not a square, you can use zoom or crop, etc.

3) The image file and its attached file name must be .jpg or .png or .jpeg.

 

Select dataset.png  

2. Set the number of categories and category names.

  • Set the number of categories, click [Classes num] to open the text file, find classes = 4, the number 4 is the number of categories of your data. For example: the training image has 5 categories => classes = 5.
  • Set the category name, click [Classes name] to open the text file, and set the training category name.
  • Set the path. Please change the data/plate in train, valid, labels, backup to the data/folder name. For example, in the next step to establish their own sample data and name is pcb, this step needs to be set
    • train = data/plate/train.txt => train = data/pcb/train.txt
    • valid = data/plate/valid.txt => valid = data/pcb/valid.txt
    • labels = data/plate/label.names => labels = data/pcb/label.names
    • backup = data/plate/model => backup = data/pcb/model

 

Set the number of categories and category names.png

 

 

  • cfg configuration file. Click [99. edit CSPNet.cfg] and find [avgpool]. Below this you can find filters=4. The number 4 is the number of categories of your data. For example: the training images have 5 categories => filters=5.

 

Set the number of categories of cfg.png

 

3. Click [1. prepare train txt] and [2. prepare val txt] to automatically generate a list of images for training and verification.

 

Generate training and validation lists.png  

 

Training:

 

If you are not training for the first time and you have already trained a model, to continue training, please copy model/csresnext50-omega_best.weights and name it pretrain.weights to overwrite the original pretrain.weights.

If your device supports NVIDIA GPU accelerated computing, please click [3. train (GPU)]; if NVIDIA GPU accelerated computing is not supported, please click [3. train (CPU)].

 

training.png

 

 

Inference:

 

The app provides inferences for a single image or all images in a folder.

Please choose a model with better training effect or directly choose csresnext50-omega_final.weights. If csresnext50-omega_final.weights is not produced yet, but you think the model has converged, you can also choose csresnext50-omega_last.weights.

Then rename the selected model to csresnext50-omega_best.weights to overwrite the original model.

(The model is placed in the model folder and the extension is .weights)

 

1. Inferring a single image : If your device supports NVIDIA GPU accelerated computing, please click [4. inference (GPU)]; if NVIDIA GPU accelerated computing is not supported, please click [4. inference (CPU)].

Then please select an image you want to infer, press [Open] to infer and display the result.

 

Inferring a single image.png  

2. Inference folder: If your device supports NVIDIA GPU accelerated computing, please click [5. inference_folder (GPU)]; if NVIDIA GPU accelerated computing is not supported, please click [5. inference_folder (CPU)].

Then please select the folder you want to infer, press [Open] to infer and display the result.           

Please press any key on the keyboard to switch to the next image on the displayed result image.

 

Inference folder.png

 

Other:

1. Click [99. edit CSPNet.cfg] to open the text file of the CSPNet network structure.

2. Click [99. browse data] to open the data folder.

 

Other functions.png

 

 

[Download]

 

https://d.leaderg.com/CSPNet/download

 

 

[Software Trial]

 

After downloading this software, please use 7zip to unzip it. If you would like to try it, please type "TRY30" to activate it. The 30 days trial is only one time for one computer.

 

 


Recommended Article

1.
LEADERG AOI VISION - AI Image Analysis Software (No Code, Windows User Interface, Deep Learning, Machine Learning)

2.
LEADERG BIG DATA - AI Data Analysis Software (No Code, Windows User Interface, Deep Learning, Machine Learning)

3.
LEADERG AI ZOO - AI Sample Code Software (Save 90% of Development Time, Low Code, Jupyter Lab User Interface, Deep Learning, Machine Learning, Big Data)

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

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.