model_inference_benchmark.md

March 5, 2023 · View on GitHub

Model Inference Benchmark

The benchmark test environment is as follows:

OS: Ubuntu 18.04.5 LTS / 5.4.0-53-generic

MEMORY: 32G DIMM DDR4 Synchronous 2666 MHz

CPU: Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz

GCC: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0

GPU: GeForce RTX 3080

CUDA: CUDA Version: 11.1

GPU Driver: Driver Version: 455.23.04

Image Classification

Model NameInput Image SizeInference Time (ms)FpsBackend
MobilenetV2224x2241.03ms969.7cuda
ResNet-50224x2243.35ms298.8cuda
Densenet-121224x2243.67ms272.8cuda

Image Object Detection

Model NameInput Image SizeInference Time (ms)FpsBackend
YOLOV5-X640x64025.06ms39.9cuda
YOLOV5-L640x64019.92ms50.2cuda
YOLOV5-M640x64016.61ms60.2cuda
YOLOV5-S640x64014.47ms69.1cuda
YOLOV5-N640x64013.21ms75.7cuda
nanodet_plus_m_1x5416x4165.34ms187.3cuda

Image Scene Segmentation

Model NameInput Image SizeInference Time (ms)FpsBackend
BiseNetV2512x102416.20ms61.7cuda

Image Enhancement

Model NameInput Image SizeInference Time (ms)FpsBackend
Attentive-Gan240x320453.72ms2.204cuda
Enlighten-Gan256x2566.81ms146.8cuda

Image Feature Point

Model NameInput Image SizeInference Time (ms)FpsBackend
Superpoint-N120x1600.94ms1064.9cuda
Superpoint-S240x3203.05ms328.1cuda
Superpoint-M480x64014.3ms70.07cuda
Superpoint-L960x128066.6ms15.01cuda

Image OCR

Model NameInput Image SizeInference Time (ms)FpsBackend
DBNet655x44512.02ms83.21cuda

Reference