Visual-Attention-Network/SegNeXt

about the inference speed

Onehundred0906 opened this issue · 1 comments

Hello, i use image_demo.py to inference a picture, and the inference time is 0.6+s, can you help explain? thanks! maybe my
gpu and cpu are the main cause?
2022-10-19 14-38-32屏幕截图
Screenshot 2022-10-20 155216

There are many reasons that can cause your problem.

  1. Only 1 img in the inference process will make the speed slow a lot. The forward time for the entire dataset should be tested and divided by the number of images.
  2. Different hardware
  3. Different config such as image size.

Please check the various details carefully