Merge pull request #20175 from rogday:dnn_samples_cuda

add cuda and vulkan backends to dnn samples
This commit is contained in:
rogday
2021-06-01 17:00:51 +03:00
committed by GitHub
parent de781b306f
commit 61359a5bd0
13 changed files with 118 additions and 47 deletions
+7 -2
View File
@@ -22,12 +22,17 @@ std::string keys =
"0: automatically (by default), "
"1: Halide language (http://halide-lang.org/), "
"2: Intel's Deep Learning Inference Engine (https://software.intel.com/openvino-toolkit), "
"3: OpenCV implementation }"
"3: OpenCV implementation, "
"4: VKCOM, "
"5: CUDA },"
"{ target | 0 | Choose one of target computation devices: "
"0: CPU target (by default), "
"1: OpenCL, "
"2: OpenCL fp16 (half-float precision), "
"3: VPU }";
"3: VPU, "
"4: Vulkan, "
"6: CUDA, "
"7: CUDA fp16 (half-float preprocess) }";
using namespace cv;
using namespace dnn;