This repository has been archived on 2026-02-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Francesco Gatti e91db28756 shortcut cu
2018-12-20 09:53:17 +01:00
2018-12-18 18:21:56 +01:00
2018-12-20 09:53:17 +01:00
2018-12-20 09:53:17 +01:00
2018-12-19 19:39:31 +01:00
2017-08-30 09:12:46 +00:00
2018-12-20 09:53:17 +01:00
2018-09-15 09:04:23 +00:00
2018-12-03 22:04:04 +01:00

tkDNN

tkDNN is a Deep Neural Network library built with cuDNN primitives specifically thought to work on NVIDIA TK1 board.
The main scope is to do high performance inference on already trained models.

this branch actually work on every NVIDIA GPU that support the dependencies:

  • CUDA 8
  • CUDNN 6
  • TENSORRT 2

Workflow

The recommended workflow follow these step:

  • Build and train a model in Keras (on any PC)
  • Export weights and bias
  • Define the model on tkDNN
  • Do inference (on TK1)

Compile the library

Build with cmake

mkdir build
cd build
cmake ..
make

during the cmake configuration it will be dowloaded the weights needed for running the tests

Test

Assumiung you have correctly builded the library these are the test ready to exec:

  • test_simple: a simple convolutional and dense network (CUDNN only)
  • test_mnist: the famous mnist netwok (CUDNN and TENSORRT)
  • test_mnistRT: the mnist network hardcoded in using tensorRT apis (TENSORRT only)
  • test_yolo: YOLO detection network (CUDNN and TENSORRT)
  • test_yolo_tiny: smaller version of YOLO (CUDNN and TENSRRT)

Live detection

For the live detection you need to precompile the tensorRT file by luncing the desidered network test, this is the recommended process:

export TKDNN_MODE=FP16   # set the half floating point optimization
rm yolo.rt		 # be sure to delete(or move) old tensorRT files
./test_yolo              # run the yolo test (is slow)
# with f16 inference the result will be a bit incorrect

this will genereate a yolo.rt file that can be used for live detection:

./live yolo.rt 1 -s -t0.3    # launch detection on device 1 with 0.3 thresh
S
Description
Deep neural network library and toolkit to do high performace inference on NVIDIA jetson platforms [MIRROR]
Readme GPL-2.0 74 MiB
version 0.6 Latest
2021-07-23 14:37:04 +02:00
Languages
C++ 90.9%
Cuda 4%
Python 2.3%
Shell 1.1%
CMake 1.1%
Other 0.6%