SqueezeBrains SDK 1.18
|
Tutorial 13 - Deep Surface - How to create a project, import defects labeling from images, and execute the training (SVL). More...
#include "../common/common.h"
Go to the source code of this file.
Data Structures | |
struct | sb_svl_user_data |
Functions | |
sb_t_err | create_deep_surface_project_file (SB_HANDLE *deep_surface) |
Create a solution file with a Deep Surface project. More... | |
sb_t_err | set_labeling (SB_HANDLE deep_surface) |
Set labeling. More... | |
sb_t_err | execute_training (void) |
Execute training. More... | |
sb_t_err | check_labeling_file_exists (char *img_file, sb_t_folder *folder_defects, int *file_index) |
Check if a labeling mask file exists for the specified image. More... | |
int | main (void) |
Tutorial 13 - Deep Surface - How to create a project, import defects labeling from images, and execute the training (SVL).
This tutorial shows what you should do to train a model from scratch, i.e. without using the SB GUI, starting from a set of images with associated labeling masks. A labeling mask is a grayscale image containing roi defects. On the command line you can specify the memory percentage to leave free.
During the execution the programs shows the status of the svl with the progressive results.
If you use Microsoft Visual Studio, you can stop the SVL using a key combination.
At the end the new SVL is saved in a solution file.
Definition in file deep_surface_svl_simple.c.
sb_t_err check_labeling_file_exists | ( | char * | img_file, |
sb_t_folder * | folder_defects, | ||
int * | file_index | ||
) |
Check if a labeling mask file exists for the specified image.
Definition at line 210 of file deep_surface_svl_simple.c.
Create a solution file with a Deep Surface project.
Definition at line 188 of file deep_surface_svl_simple.c.
sb_t_err execute_training | ( | void | ) |
Execute training.
Definition at line 309 of file deep_surface_svl_simple.c.
int main | ( | void | ) |
In the following the list of the program steps:
Definition at line 137 of file deep_surface_svl_simple.c.
Set labeling.
Definition at line 235 of file deep_surface_svl_simple.c.