Service launch

Example of service launch from root directory:

python run.py --port=5091 --config=./configs/devconfig.conf --log_suffix=test

Parameters port=5090 and config=./configs/config.conf are default. Note, that python version should be 3.10 or higher.

Running service on a port with configuration file and output to log files having suffix “test”. Port, path to configuration file and custom log files’ suffix are set as command line arguments.

All the SDK estimators can be enabled/disabled via command line arguments, i.e.

python run.py --enable-body-detector=0 --enable-body-attributes-estimator=0 --enable-body-descriptor-estimator=0

A enable-all-estimators-by-default command line arguments allows to disable/enable all estimators and detectors initialization. Default is equal to`true`. Typical usages:

  • disable only several estimators which are not planning to use
    python run.py --enable-all-estimators-by-default=1 --enable-body-attributes-estimator=0
    
  • enable only several estimators which are planning to use
    python run.py --enable-all-estimators-by-default=0 --enable-body-attributes-estimator=1`
    

Complete list of arguments for enabling/disabling SDK estimators can be found in help. By default, all estimators are enabled. If some estimator is disabled, but it is required for another estimator, then both will be initialized, and a warning will be logged.

You can view help

python ./run.py --help