Closed yandongwei closed 3 years ago
Is there an example of batch prediction?thx!!
You can refer to #23 to export torchscript model with different batch size: e.g. python models/export.py --weights yolov5s.pt --img 640 --batch 2
Then use torch::cat
to concatenate images into batch
thx!