SRGAN icon indicating copy to clipboard operation
SRGAN copied to clipboard

test time is too high

Open weiyuxingchen opened this issue 7 years ago • 2 comments

When testing, if I change the size of the input image, the test time on the GPU will be very long, without changing the size of the image, the second start time will be normal; this problem was not found on the CPU; is this a problem for tensorflow?

weiyuxingchen avatar Oct 16 '18 02:10 weiyuxingchen

  1. the inferencing speed is related to the size of you input image, it is normal.
  2. for 1st time, tf need time to compile the graph, after that it will run as usual.

zsdonghao avatar Oct 16 '18 13:10 zsdonghao

I mean, super-resolution networks are bound to be compatible with different resolution inputs, and when the resolution of the input image changes (by one pixel), the forward time is very long. I monitored it with timeline and found that the time is spent on kernel scheduling.

weiyuxingchen avatar Oct 17 '18 02:10 weiyuxingchen