You are here: Start » C# Project Configuration

C# Project Configuration

  1. Installation
  2. GPU Dependencies
  3. Using AVL.NET

Installation

This document describes Aurora Vision Deep Learning Library .NET only. For more information about AVL.NET see its documentation.

Aurora Vision Deep Learning Library .NET is distributed as a NuGet packages containing managed 64-bit assemblies (*.dll) and part of the native dependencies.

Most of the Aurora Vision Deep Learning Library packages target .NET Standard 2.0, making them compatible with most of the .NET implementations and with any operating system that supports the .NET runtime. In particular, supported operating systems include Windows 7+ and Linux, along with such .NET implementations as .NET Core 3.1+, .NET 5+, and most .NET Framework versions.

Only x64 platforms are supported.

The Aurora Vision Deep Learning Library windows installer adds a local NuGet source containing all the necessary packages, thereby simplifying the use of Aurora Vision Deep Learning in the client code to merely installing the selected NuGet packages. Available packages are as follows:

Package Contents
AvlNet.DL.Cpu * Aurora Vision Deep Learning functions for the CPU. Available only in the CPU version.
AvlNet.DL.Gpu * Aurora Vision Deep Learning functions for the GPU. Requires copying additional native dependencies from the installation directory. Available only in the GPU version.
AvlNet.Types * AvlNet type system
AvlNet.Types.WinForms ** Tools specific to WinForms, both .NET Framework and .NET, such as those for converting to and from System.Drawing.Bitmap
* netstandard2.0 (.NET Standard 2.0)
** net48 (.NET Framework 4.8), net6.0-windows, net8.0-windows

It is not necessary to run the Aurora Vision Deep Learning Service when using the Aurora Vision Deep Learning Library for .NET; in fact, it is even discouraged.

GPU Dependencies

For the GPU version of the library, additional native dependencies must be independently copied to the application's output directory. The simplest way to accomplish this is by linking the dependencies and setting their "Copy to Output Directory" property to "Copy if newer". The necessary libraries are as follows:

  • %AVLDL_PATH5_6%\Deps_x64\cublas64_11.dll
  • %AVLDL_PATH5_6%\Deps_x64\cublasLt64_11.dll
  • %AVLDL_PATH5_6%\Deps_x64\cudnn_cnn_infer64_8.dll
  • %AVLDL_PATH5_6%\Deps_x64\cudnn_ops_infer64_8.dll
  • %AVLDL_PATH5_6%\Deps_x64\cudart64_110.dll
  • %AVLDL_PATH5_6%\Deps_x64\zlibwapi.dll

Using AVL.NET

In most cases, the application you create will also utilize AVL.NET. In such cases, ensure that the project setting Application | Auto-generate binding redirects is enabled. Additionally, the version of AVL.NET used should not be older than AvlNet.DL, as this may lead to a CS1705 error.

Next: Function Reference