DEV Community

SolBeen Kwon
SolBeen Kwon

Posted on

ncnn convert 4 ubuntu

onnx build

  • pth -> onnx convert

ncnn install ncnn

cd ncnn
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DNCNN_VULKAN=ON -DNCNN_SYSTEM_GLSLANG=ON -DNCNN_BUILD_EXAMPLES=ON ..
make -j$(nproc)
Enter fullscreen mode Exit fullscreen mode
$ tar -xzf vulkansdk-linux-x86_64-1.1.xx.y.tar.gz
$ sudo cp $VULKAN_ROOT/x86_64/bin/* /usr/local/bin/
$ sudo cp -R $VULKAN_ROOT/x86_64/lib/* /usr/local/lib/
$ sudo ldconfig

$ sudo mkdir -p /etc/vulkan/explicit_layer.d
$ sudo cp $VULKAN_ROOT/x86_64/etc/vulkan/explicit_layer.d/* /etc/vulkan/explicit_layer.d/

$ sudo cp -R $VULKAN_ROOT/x86_64/include/* /usr/local/include/
Enter fullscreen mode Exit fullscreen mode

Discussion (0)