CRAFT-pytorch icon indicating copy to clipboard operation
CRAFT-pytorch copied to clipboard

different time run with gpu

Open SabraHashemi opened this issue 5 years ago • 1 comments

i runned this code on gpu cuda10.1 pytorch16 when i run first second third its give me 0.22s for each image process(average) but if i run for forth or fifth (i mean sometimes) it gives 0.11 in average for each image why its different ? Figure_2 Figure_1

SabraHashemi avatar Nov 18 '20 19:11 SabraHashemi

There is concept of GPU Warmup. So for first request it took time but when GPU starts functioning so it performs well. You can also understand it terms of Overhead cost and first time resource allocation.

mohit-217 avatar Nov 07 '22 20:11 mohit-217