DeepVAC / libdeepvac

Use PyTorch model in C++ project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libdeepvac的性能测试数据汇总

gemfield opened this issue · comments

树莓派 4b

  • 模块:retinaface模块;
  • Device:CPU
  • 输入:经典test1.jpg(gemfield班级照);
  • 引擎:LibTorch
  • 结果:
gemfield model load time: 0.64975
img2cvmat time: 0.00924529
begin: 0
process time: 92.8428
cv circle and write time: 0.0086217
begin: 1
process time: 92.9481
cv circle and write time: 0.00842767
begin: 2
process time: 92.0108
cv circle and write time: 0.00839388
begin: 3
process time: 91.9794
cv circle and write time: 0.00842672

Nvidia Jetson Xavier NX

CPU

模块:retinaface模块;
Device: CPU (注意:没有使用CUDA)
输入:经典test1.jpg(gemfield班级照);
引擎:LibTorch
结果:

gemfield model load time: 0.820636
img2cvmat time: 0.015335
begin: 0
process time: 34.6497
cv circle and write time: 0.0138636
begin: 1
process time: 40.1728
cv circle and write time: 0.0115601
begin: 2
process time: 40.4349
cv circle and write time: 0.0104319
begin: 3
process time: 40.2891
cv circle and write time: 0.0101229

备注:默认利用了多核?

CUDA

模块:retinaface模块;
Device: CUDA
输入:经典test1.jpg(gemfield班级照);
引擎:LibTorch
结果:

gemfield model load time: 7.0803
img2cvmat time: 0.0125557
begin: 0
process time: 5.30467
cv circle and write time: 0.0108595
begin: 1
process time: 2.23548
cv circle and write time: 0.00856718
begin: 2
process time: 0.353169
cv circle and write time: 0.00802247
begin: 3
process time: 0.345863
cv circle and write time: 0.00752515
begin: 4
process time: 0.340783
cv circle and write time: 0.00888463
begin: 5
process time: 0.34827
cv circle and write time: 0.00705619

备注:begin 0和1为cuda热身。