Add profiler and maxiter for detection models (#3919)
Add profiler and maxiter for detection models (#3919)

* add max_iters and profiler for detection models

* update for detection models

PaddlePaddle/models,PaddlePaddle/models,PaddlePaddle/models