Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can use the caching function to ensure that this operation is performed only once. Caching saves the optimization results on the hard drive and uses it them for the subsequent analytics runs. 

...

  1. Stop the server (see Starting and stopping the Axxon One Server in Linux OS).

    Note
    titleAttention!

    If the system has the software running on GPU, it is necessary to you must stop its operation.

  2. Login as ngp superuser:

    1. In the command prompt, run the command:

      Code Block
      languagebash
      sudo su ngp
    2. Enter the password for the root superuser.

  3. Create a folder with a custom name to store the cache. For example:

    Code Block
    languagebash
    mkdir /opt/AxxonSoft/AxxonOne/gpucache
  4. Change folder permissions:

    Code Block
    languagebash
    chmod -R 777 /opt/AxxonSoft/AxxonOne/gpucache
  5. Go to the /opt/AxxonSoft/AxxonOne/ folder folder:

    Code Block
    languagebash
    cd /opt/AxxonSoft/AxxonOne/
  6. Open the server configuration file for editing:
    Code Block
    languagebash
    sudo nano instance.conf
    Note
    titleAttention!

    When using you use the server in failover mode, you should:

    1. Open the /etc/AxxonSoft/ folder folder:
      Code Block
      languagebash
      cd /etc/AxxonSoft/
    2. Open the server configuration file for editing:
      Code Block
      languagebash
      sudo nano axxon-one.conf
      Info
    Before making
    1. titleAttention!

      Before you make changes to the axxon-one.conf file,

    it is recommended to read
    1. we recommend reading the instructions on the page Creating system variables for the Axxon One server in the failover mode in Linux OS.

    2. Add the GPU_CACHE_DIR system variable in the configuration file, wherethevaluewillspecify the pathto the cachelocationfolder:
      Code Block
      languagebash
      export GPU_CACHE_DIR="/opt/AxxonSoft/AxxonOne/gpucache"
    3. Save the changes in the server configuration file.
    4. Add the GPU_CACHE_DIR system variable in the /etc/profile file:
      Code Block
      languagebash
      export GPU_CACHE_DIR="/opt/AxxonSoft/AxxonOne/gpucache"
    5. Run the command:
      Code Block
      languagebash
      source /etc/profile
  7. Add the GPU_CACHE_DIR system variable,wherethevaluewillspecify the pathto the cachelocationfolder. For example:

    Code Block
    languagebash
    export GPU_CACHE_DIR="/opt/AxxonSoft/AxxonOne/gpucache"
  8. Save the server configuration file using the Ctrl+O keyboard shortcut.

  9. Exit file editing mode using the Ctrl+X keyboard shortcut.

    Note
    titleAttention!

    When you change the server configuration (see Changing the configuration of the Axxon One Server in Linux OS) or update to the new Axxon One version, the system variables previously added to the instance.conf configuration file will be deleted (see Creating system variables for the Axxon One server in Linux OS).

  10. In the command prompt, run the command that was usedtoadd the systemvariablewiththepathto the cache location folder. For example:
    Code Block
    languagebash
    export GPU_CACHE_DIR="/opt/AxxonSoft/AxxonOne/gpucache"
  11. Go to the /opt/AxxonSoft/DetectorPack/ folder:

    Code Block
    languagebash
    cd /opt/AxxonSoft/DetectorPack
  12. Run the following command:

    Code Block
    languagebash
    ./NeuroPackGpuCacheGenerator
    Note
    titleAttention!

    If more than one Nvidia GPU is available, you will be able to select one. To do this, specify a number from 0 to 3, which corresponds to the required device in the list.

...

  • GeneralNMHuman_v1.0GPU_onnx.ann—person;
  • smokeScanned_v1_onnx.ann (or bestSmoke_v1.ann starting with Detector Pack 3.14)—smoke detection;
  • fireScanned_v1_onnx.ann (or bestFire_v1.ann starting with Detector Pack 3.14)—fire detection;
  • reid_15_0_256__osnetfpn_segmentation_noise_20_common_29_onnx.ann—search for the similar in the Neural tracker (see Similitude search).

...