Versions Compared

Key

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

Configuring the Face detector VA

The VA Face Recognition Pack add-on (see Installing DetectorPack add-ons) includes a utility that allows you to create GPU neural network caches without using Axxon One.  The The presence of the cache speeds up the initialization, optimizes video memory consumption, and ensures the start and correct operation of the Face detector VA on the GPU.

Note
titleAttention!

You must recreate the cache when:

  • updating the VA face recognition pack add-on (see Installing DetectorPack add-ons),
  • changing the resolution of the video stream for which the cache is created,
  • changing the Nvidia GPU model,
  • updating Nvidia GPU drivers.

To optimize the operation of the Face detector VA on GPU, do the following:

  1. Stop the server (see

  2. Stopping
  3. Stop the server).

    Note
    titleAttention!

    If the system

  4. has
  5. uses the software that is running on the GPU,

  6. it is necessary to
  7. you must stop its operation. 

  8. Create the GPU_CACHE_DIR system variable (see

  9. Appendix 9.
  10. Creating system variable). In the Variable value field, specify the path to the cache location in Latin characters only. For example, D:\GPU_cache. The specified directory will store the cache for all used detectors and neural networks.

  11. Run the command line as administrator
  12. .To call the utility, enter in the command line: C:\Program Files\Common Files\AxxonSoft\DetectorPack\VaFaceGpuCacheGenerator.exe
  13. .

  14. InfotitleNote
  15. Starting with Detector Pack 3.14

  16. , if necessary, you can enter a query
  17. :

    1. Call the utility, specifying the required

  18. resolution of the
    1. video stream resolutions in the XxX or

  19. [XxX ...] format, for example:
    1. XxX XxX format via the -r key. In this case you must not further specify the video stream resolution.
      Example:

      Code Block
      languageshell
  20. code
    1. C:\Program Files\Common Files\AxxonSoft\DetectorPack\VaFaceGpuCacheGenerator.exe -r 
  21. 3840×2160
    1. 3840x2160 
  22. 2688×1520In this case,
    1. 2688x1520

      If you don't

  23. need to specify further the resolution of the video stream.
    1. specify the resolution explicitly, the utility uses the default 1920x1080 resolution for creating the cache.

      Info
      titleNote

      To get help information, you can enter

  24. a
    1. the query in the command line:

      Code Block
      C:\Program Files\Common Files\AxxonSoft\DetectorPack\VaFaceGpuCacheGenerator.exe --help
    2. Press Enter.

    3. Specify the ID of the required GPU (see Selecting Nvidia GPU when configuring detectors).

    4. Press Enter. As a result, the process of creating the cache starts. If you get the "0" value, it means that the cache is created successfully.

  25. For Detector Pack 3.13 and older:
    1. In the command line, enter the C:\Program Files\Common Files\AxxonSoft\DetectorPack\VaFaceGpuCacheGenerator.exe query to call the utility.
    2. Press Enter.

    3. Specify the ID of the required GPU (see Selecting Nvidia GPU when configuring detectors).

    4. Press Enter.

    5. If you want to change the resolution of the video stream

  26. for the Face detector VA
    1. :

  27. Enter y.
      1. Enter y. If you don't want to change the resolution of the video stream, enter n
      2. Specify the required resolution. For example,

  28.  3840×2160 2688×1520
      1. 3840x2160 2688x1520. The GPU uses the

  29. default
      1. default 1920x1080 video stream

  30. resolutions
      1. resolution.

  31. Changing
      1. If you change the resolution of the video stream from

  32. 1920*1080
      1. 1920x1080 and higher, it increases the percentage of face detection

  33. .
    If you don't want to change the resolution of the video stream for the Face detector VA, enter n
      1. .

  34.  
  35. Press Enter.

  36. The cache creation process starts. The cache creation is successful if the result value is "0"
  37. As a result, the process of creating the cache starts. If you get the 0 value, it means that the cache is created successfully.

The cache must be recreated in the following cases:

...

Optimizing the operation of the Face detector VA on the GPU is complete.

...

titleAttention!

.