U-2-Net icon indicating copy to clipboard operation
U-2-Net copied to clipboard

Inference time is slow

Open dbAIStudio opened this issue 3 years ago • 1 comments

u2net_test.py It took more than 1 second to detect a single image of 2080, but you can see that it is 30 frames in the 1080 test, what is the reason for this?

dbAIStudio avatar Jan 15 '22 09:01 dbAIStudio

There could be multiple reasons for slow inference:

  1. Slow CPU / GPU.
  2. Not enough RAM leading to paging.
  3. More parameters have been added (probably by changing the output shape), thus taking more computation time.

rdutta1999 avatar Feb 14 '22 14:02 rdutta1999