# PyTorch inference with multiple images

**URL:** <https://discuss.pytorch.org/t/pytorch-inference-with-multiple-images/109022>\
**Category:** vision\
**Created:** [January 16, 2021, 9:37am UTC](https://discuss.pytorch.org/t/pytorch-inference-with-multiple-images/109022 "2021-01-16T09:37:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![1chimaruGin](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/1chimarugin/32/27435_2.png) [@1chimaruGin](https://discuss.pytorch.org/u/1chimaruGin)\
**Post date:** [January 16, 2021, 11:41am UTC](https://discuss.pytorch.org/t/pytorch-inference-with-multiple-images/109022/2 "2021-01-16T11:41:12Z")

</div>

In my case, I used python `concurrent.futures.ProcessPoolExecutor` and `concurrent.futures.ThreadPoolExecutor` to inference 4 images at once.

But, this [one](https://discuss.pytorch.org/t/how-to-load-images-for-inference-in-batch/33329/2) might help you.

---

_[View the full topic](https://discuss.pytorch.org/t/pytorch-inference-with-multiple-images/109022)._
