nihui / ncnn-riscv-vector-test

Repository from Github https://github.comnihui/ncnn-riscv-vector-testRepository from Github https://github.comnihui/ncnn-riscv-vector-test

ncnn-riscv-vector-test

This is ncnn scrfd face detection executable prebuild for riscv rv64gc / rv64gcv / rv64gc_xtheadvector

This is used to test single binary optimization for various riscv extensions.

The program will detect the CPU extensions at runtime and automatically select the best optimization path.

usage

  1. upload executable, model and image to your riscv board
scp scrfd scrfd_500m-opt2.param scrfd_500m-opt2.bin test.jpg root@192.168.1.70:/root/
  1. run face detection
ssh root@192.168.1.70
chmod +x scrfd
./scrfd test.jpg
  1. download output image and see the detection result
scp root@192.168.1.70:/root/image.png .

tested

  • milkv-duo-256m
  • licheepi-4a
  • canmv-k230

About

License:BSD 3-Clause "New" or "Revised" License