This API provides tools to simplify training and running multiple AI models, as well as performing hardware stress tests and automatic performance logging.
-
Train multiple AIs in a stack
-
Run multiple AI models simultaneously with different settings
-
Perform hardware stress tests
-
Generate detailed performance logs
-
Automate log processing and data visualization
-
Configure the AI models in the configuration file
-
(optional) Run data processing
python3 main.py [mode] [-args]
run real-time detection
python3 main.py live [-args]
args:
-
-nvno video -
-capcapture objects (process image) -
-plcreate performance logs -
-rtsplive from video of rtsp server -
-sf [frame_number]skip frames for better performance -
-rec [output_file_name]record -
-f [file_path]live from file
run train :)
python3 main.py train
Note
If segmentation IA, run segmentation from boxes
Generate plots from logs, separating capture objects from non capture objects.
python3 data_processing.py
Processed logs are saved in the logs_processed folder
run annotation call:
python3 main.py annotate -p [path_to_images]
Logs include time, ram usage, gpu usage, cpu usage, cycle time, active AIs and captre objects data.
Important
Logs are always saved on logs folder
All AI settings are defined in the config.yaml file.
-
dataset:dataset path -
weights:weights path for detection -
confidence:confidence for detection -
label:class label -
epochs:train epochs -
device:cpu or gpu -
result folder name:name of folder for train results -
model:AI model -
detect:true or false, activate detection for this AI -
train:true or false, activate train for this AI -
segmentation:true or false, set true if segmentation AI
Create segmentation dataset from bounding boxes dataset
-
Configure paths in segmentation config file
-
In seg_from_boxes folder, run
python3 seg.py
parameters:
-
raw_path:path to folder containing raw images folder and labels folder -
save_path:path to save segmentation dataset -
save_path_prefix:create parent folder for save path, can be empty -
epochs:train epochs