add a simple warm_up in yolov5_trt.py#513
Conversation
|
@wwqgtxx thanks, seems warmup is helpful on your device, and seems no need to warmup on my server. But can we not to modify the infer() function? I think it is not the best solution to add if-else condition in infer(). |
|
In my initial thoughts, I copy a new function from |
|
I think we can move imwrite() out of infer(), so that we can use the same infer() to do warmup. like: warmup: infer: |
|
Another question is should we use the first_batch's image data to do warmup or specific use the all zeros data. |
|
I think it doesn't matter what's the data feed into network. |
with warm_up:
without warm_up: